From 75fa05ed0a49e04a8c60b9e29db0523062c03e40 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Tue, 3 Nov 2020 17:29:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4=E9=83=A8=E9=85=8D=E7=BD=AE=E7=BB=84=E4=BB=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/elementSet.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nezha-fronted/src/components/common/elementSet.vue b/nezha-fronted/src/components/common/elementSet.vue index bd17fa46f..bc0cb9249 100644 --- a/nezha-fronted/src/components/common/elementSet.vue +++ b/nezha-fronted/src/components/common/elementSet.vue @@ -84,10 +84,12 @@ export default { //全选all true 或者全取消cancel false按钮 batchHandler(state) { for (let index = 0; index < this.custom.length; index++) { - if (index == 0 || index == 1 || this.custom[index].NotSet) { - this.custom[index].show = true; - } else { - this.custom[index].show = state; + if(this.custom[index].type != 'title'){ + if ((index == 0 || index == 1 || this.custom[index].NotSet)) { + this.custom[index].show = true; + } else { + this.custom[index].show = state; + } } } }, @@ -114,7 +116,7 @@ export default { isCancel() { let isCancel = true; for (let i = 0; i < this.custom.length; i++) { - if (!this.custom[i].show) { + if (!this.custom[i].show&&this.custom[i].type != 'title') { isCancel = false; break; }