forked from github/dataease
Merge pull request #2963 from dataease/pr@dev@fix_reset_button_and_select_all
fix(仪表板-清空按钮): 过滤器全选后清空按钮无法重置全选状态
This commit is contained in:
commit
7edebc36cd
@ -229,6 +229,9 @@ export default {
|
||||
off(document, 'mouseup', this._popoverHideFun)
|
||||
},
|
||||
methods: {
|
||||
resetSelectAll() {
|
||||
this.selectAll = false
|
||||
},
|
||||
selectAllChane(val) {
|
||||
if (val) {
|
||||
this.ids = this._checkSum()
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user