From 3448b85f72c4f648ebf7396e7a569174e01a99c5 Mon Sep 17 00:00:00 2001 From: hwj Date: Thu, 15 Jan 2026 09:26:59 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E6=95=B0=E6=8D=AE=E9=87=87?= =?UTF-8?q?=E9=9B=86-=E8=AE=BE=E5=A4=87=E8=BF=90=E8=A1=8C=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=88=86=E6=9E=90-=E6=A0=91=E7=8A=B6=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/deviceParamAnalysis/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/iot/deviceParamAnalysis/index.vue b/src/views/iot/deviceParamAnalysis/index.vue index 74226294..493a93ac 100644 --- a/src/views/iot/deviceParamAnalysis/index.vue +++ b/src/views/iot/deviceParamAnalysis/index.vue @@ -4,8 +4,7 @@
-
@@ -15,8 +14,7 @@ ref="treeRef" v-loading="treeLoading" :data="treeData" :props="treeProps" node-k - @@ -409,8 +407,10 @@ const handleTreeNodeClick = async (data: DeviceTreeNode) => { return } + + const isEmptyOrgNode = typeof data?.id === 'string' && data.id.startsWith('org-') const isEquipmentNode = typeof data?.id === 'string' && data.id.startsWith('equipment-') - if (isEquipmentNode && (data.paramCount ?? 0) <= 0) { + if (isEquipmentNode && (data.paramCount ?? 0) <= 0 || isEmptyOrgNode) { selectedParam.value = data selectedDeviceId.value = undefined selectedModelId.value = undefined