From f0711d334be47d376f9677191a296f0b8405a331 Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Thu, 26 Sep 2024 16:11:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=8A=98=E5=8F=A0=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E7=BB=91=E5=AE=9A=E5=80=BC=E5=AF=BC=E8=87=B4=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E7=9B=91=E6=8E=A7=E4=BE=BF=E6=90=BA=E5=BC=8F=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E9=A1=B6=E9=83=A8=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tree/device.vue | 6 +++--- src/components/tree/point.vue | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/tree/device.vue b/src/components/tree/device.vue index eecd438..9c67830 100644 --- a/src/components/tree/device.vue +++ b/src/components/tree/device.vue @@ -16,8 +16,7 @@
- + @@ -190,7 +189,8 @@ const changeDevice = (val: any) => { }) treeRef1.value && treeRef1.value.setCurrentKey(arr1[0].id) emit('changeDeviceType', activeName.value, arr1[0]) - } else { + } + if (val == '1') { arr1.map((item: any) => { item.checked = false }) diff --git a/src/components/tree/point.vue b/src/components/tree/point.vue index c49f071..056f7ef 100644 --- a/src/components/tree/point.vue +++ b/src/components/tree/point.vue @@ -183,7 +183,8 @@ const changeDevice = (val: any) => { }) treeRef1?.value && treeRef1.value.setCurrentKey(arr1[0]?.id) emit('changePointType', activeName.value, arr1[0]) - } else { + } + if (val == '1') { arr1.map((item: any) => { item.checked = false })