feat(仪表盘):分享filter切换保留是否已分享状态

This commit is contained in:
junjie 2021-05-26 15:36:41 +08:00
parent 7b069ffe26
commit eedc3076a0
2 changed files with 10 additions and 4 deletions

View File

@ -71,9 +71,12 @@ export default {
const arr = obj[this.fieldName]
if (arr.length === 0) {
this.initColumnLabel()
return
} else {
this.columnLabel = this.filter_options[arr[0]].text
}
this.columnLabel = this.filter_options[arr[0]].text
this.$nextTick(() => {
this.setCheckNodes()
})
},
save() {
const rows = this.$refs.table.store.states.selection

View File

@ -78,9 +78,12 @@ export default {
const arr = obj[this.fieldName]
if (arr.length === 0) {
this.initColumnLabel()
return
} else {
this.columnLabel = this.filter_options[arr[0]].text
}
this.columnLabel = this.filter_options[arr[0]].text
this.$nextTick(() => {
this.setCheckNodes()
})
},
save() {