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)
|
off(document, 'mouseup', this._popoverHideFun)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
resetSelectAll() {
|
||||||
|
this.selectAll = false
|
||||||
|
},
|
||||||
selectAllChane(val) {
|
selectAllChane(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.ids = this._checkSum()
|
this.ids = this._checkSum()
|
||||||
|
@ -114,6 +114,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
resetSelectAll() {
|
||||||
|
this.selectAll = false
|
||||||
|
},
|
||||||
setSelect(id) {
|
setSelect(id) {
|
||||||
if (Array.isArray(this.selectValue)) {
|
if (Array.isArray(this.selectValue)) {
|
||||||
return this.selectValue.map(ele => ele.id).includes(id) && 'selected'
|
return this.selectValue.map(ele => ele.id).includes(id) && 'selected'
|
||||||
|
@ -213,7 +213,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clearHandler() {
|
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) {
|
filterMethod(key) {
|
||||||
this.keyWord = key
|
this.keyWord = key
|
||||||
|
@ -213,7 +213,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clearHandler() {
|
clearHandler() {
|
||||||
this.value = null
|
this.value = this.element.options.attrs.multiple ? [] : null
|
||||||
},
|
},
|
||||||
resetDefaultValue(id) {
|
resetDefaultValue(id) {
|
||||||
if (this.inDraw && this.manualModify && this.element.id === id) {
|
if (this.inDraw && this.manualModify && this.element.id === id) {
|
||||||
|
@ -223,7 +223,8 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
clearHandler() {
|
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) {
|
resetDefaultValue(id) {
|
||||||
if (this.inDraw && this.manualModify && this.element.id === id) {
|
if (this.inDraw && this.manualModify && this.element.id === id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user