mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
perf: 优化工单账号组件
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user