Merge pull request #2963 from dataease/pr@dev@fix_reset_button_and_select_all

fix(仪表板-清空按钮): 过滤器全选后清空按钮无法重置全选状态
This commit is contained in:
fit2cloud-chenyw 2022-08-29 10:27:10 +08:00 committed by GitHub
commit 7edebc36cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 3 deletions

View File

@ -229,6 +229,9 @@ export default {
off(document, 'mouseup', this._popoverHideFun)
},
methods: {
resetSelectAll() {
this.selectAll = false
},
selectAllChane(val) {
if (val) {
this.ids = this._checkSum()

View File

@ -114,6 +114,9 @@ export default {
})
},
methods: {
resetSelectAll() {
this.selectAll = false
},
setSelect(id) {
if (Array.isArray(this.selectValue)) {
return this.selectValue.map(ele => ele.id).includes(id) && 'selected'

View File

@ -213,7 +213,8 @@ export default {
},
methods: {
clearHandler() {
this.value = null
this.value = this.element.options.attrs.multiple ? [] : null
this.$refs.deSelect && this.$refs.deSelect.resetSelectAll && this.$refs.deSelect.resetSelectAll()
},
filterMethod(key) {
this.keyWord = key

View File

@ -213,7 +213,7 @@ export default {
},
methods: {
clearHandler() {
this.value = null
this.value = this.element.options.attrs.multiple ? [] : null
},
resetDefaultValue(id) {
if (this.inDraw && this.manualModify && this.element.id === id) {

View File

@ -223,7 +223,8 @@ export default {
methods: {
clearHandler() {
this.value = null
this.value = this.element.options.attrs.multiple ? [] : null
this.$refs.deSelectTree && this.$refs.deSelectTree.resetSelectAll && this.$refs.deSelectTree.resetSelectAll()
},
resetDefaultValue(id) {
if (this.inDraw && this.manualModify && this.element.id === id) {