perf: 优化工单账号组件

This commit is contained in:
“huailei000”
2023-02-17 20:49:43 +08:00
committed by huailei
parent 63e51e0e45
commit 265870eff7

View File

@@ -88,14 +88,14 @@ export default {
if (item.value === this.SPEC) {
this.showSpecAccounts = checked
} else if (item.value === this.ALL) {
this.showSpecAccounts = !checked
this.showSpecAccounts = checked ? false : checked
}
if (this.showSpecAccounts) {
this.choicesSelected = this.choicesSelected.filter(i => i !== this.ALL)
} else {
if (item.value === this.ALL) {
this.choicesSelected = this.choicesSelected.filter(i => i !== this.SPEC)
}
if (item.value === this.SPEC) {
this.choicesSelected = this.choicesSelected.filter(i => i !== this.ALL)
}
this.outputValue()
},
handleTagChange(val) {