mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-18 06:47:39 +00:00
Fixed: Label Click
This commit is contained in:
parent
9262ce56d1
commit
aa8c2da715
@ -338,6 +338,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleTagClick(v, k) {
|
handleTagClick(v, k) {
|
||||||
let unableChange = false
|
let unableChange = false
|
||||||
|
|
||||||
for (const field of this.options) {
|
for (const field of this.options) {
|
||||||
if (field.value === v.key) {
|
if (field.value === v.key) {
|
||||||
if (field.type === 'choice') {
|
if (field.type === 'choice') {
|
||||||
@ -346,15 +347,20 @@ export default {
|
|||||||
if (field.type === 'boolean') {
|
if (field.type === 'boolean') {
|
||||||
unableChange = true
|
unableChange = true
|
||||||
}
|
}
|
||||||
|
if (field.type === 'labeled_choice') {
|
||||||
|
unableChange = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (unableChange) {
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unableChange) return
|
||||||
|
|
||||||
if (this.filterValue.length !== 0) {
|
if (this.filterValue.length !== 0) {
|
||||||
this.handleConfirm()
|
this.handleConfirm()
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$delete(this.filterTags, k)
|
this.$delete(this.filterTags, k)
|
||||||
|
|
||||||
this.filterKey = v.key
|
this.filterKey = v.key
|
||||||
this.filterValue = v.value
|
this.filterValue = v.value
|
||||||
this.$refs.SearchInput.focus()
|
this.$refs.SearchInput.focus()
|
||||||
|
Loading…
Reference in New Issue
Block a user