From 2d2cab2d02ea478ab8a178f0e7244c03bac74376 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 26 Jun 2023 10:34:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?NEZ-2920=20fix=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20Tools=20=E5=A4=96=E5=B1=82=E5=88=A0=E9=99=A4=E6=97=B6=20=20?= =?UTF-8?q?=E6=9C=AA=E6=A3=80=E6=9F=A5all=20=E7=9A=84=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/tool/ping.vue | 3 +++ nezha-fronted/src/components/page/tool/trace.vue | 3 +++ 2 files changed, 6 insertions(+) diff --git a/nezha-fronted/src/components/page/tool/ping.vue b/nezha-fronted/src/components/page/tool/ping.vue index 155ed7e8e..6378b5f7e 100644 --- a/nezha-fronted/src/components/page/tool/ping.vue +++ b/nezha-fronted/src/components/page/tool/ping.vue @@ -281,6 +281,9 @@ export default { event.cancelBubble = true } this.checked = this.checked.filter(dcId => dcId !== id) + const checkedCount = this.checked.length + this.checkAll = checkedCount === this.dataCenter.length + this.isIndeterminate = checkedCount > 0 && checkedCount < this.dataCenter.length }, // 开始任务 startTask () { diff --git a/nezha-fronted/src/components/page/tool/trace.vue b/nezha-fronted/src/components/page/tool/trace.vue index 0b1ab5bc4..7ecf66341 100644 --- a/nezha-fronted/src/components/page/tool/trace.vue +++ b/nezha-fronted/src/components/page/tool/trace.vue @@ -272,6 +272,9 @@ export default { event.cancelBubble = true } this.checked = this.checked.filter(dcId => dcId !== id) + const checkedCount = this.checked.length + this.checkAll = checkedCount === this.dataCenter.length + this.isIndeterminate = checkedCount > 0 && checkedCount < this.dataCenter.length }, // 开始任务 startTask () { From 4ebea0b205309c6644fb2a4890321fa32cf80008 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 26 Jun 2023 10:37:30 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=20Dashboard?= =?UTF-8?q?=20templates=E4=B8=AD=E6=96=87=E4=B8=8B=E6=9C=AA=E5=AF=B9type?= =?UTF-8?q?=E5=88=97=E5=86=85=E5=AE=B9=E8=BF=9B=E8=A1=8C=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/common/table/settings/dashboardTmplTable.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/common/table/settings/dashboardTmplTable.vue b/nezha-fronted/src/components/common/table/settings/dashboardTmplTable.vue index 1c4e81369..62a0c8e97 100644 --- a/nezha-fronted/src/components/common/table/settings/dashboardTmplTable.vue +++ b/nezha-fronted/src/components/common/table/settings/dashboardTmplTable.vue @@ -37,9 +37,9 @@