diff --git a/nezha-fronted/src/components/common/elementSet.vue b/nezha-fronted/src/components/common/elementSet.vue index b552261df..5f491dee1 100644 --- a/nezha-fronted/src/components/common/elementSet.vue +++ b/nezha-fronted/src/components/common/elementSet.vue @@ -77,7 +77,7 @@ export default { batchHandler (state) { for (let index = 0; index < this.custom.length; index++) { if (this.custom[index].type != 'title') { - if ((index == 0 || index == 1 || this.custom[index].NotSet || this.custom[index].visibility=='disabled')) { + if ((index == 0 || index == 1 || this.custom[index].NotSet || this.custom[index].visibility == 'disabled')) { this.custom[index].show = true } else { this.custom[index].show = state @@ -87,7 +87,7 @@ export default { }, // 单选 handler (val, index) { - if (!this.allowedAll && !val.allowed && (index == 0 || index == 1 || val.NotSet)) { + if (!this.allowedAll && !val.allowed && (index == 0 || index == 1 || val.NotSet || val.visibility == 'disabled')) { // this.custom[index].show = true; } else { this.custom[index].show = !this.custom[index].show