From d72bfc760302c524622e4484ad5175d03ca45ce7 Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期一, 19 五月 2025 12:08:24 +0800 Subject: [PATCH] change --- src/components/tools/LayerTree.vue | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/tools/LayerTree.vue b/src/components/tools/LayerTree.vue index 7a44b05..1b44d8f 100644 --- a/src/components/tools/LayerTree.vue +++ b/src/components/tools/LayerTree.vue @@ -184,6 +184,18 @@ } return; } + if (label === "缁煎悎鐩戞祴璁惧淇℃伅") { + simStore.DeviceShowSwitch = checked; + if (checked) { + if (!treeMap.get("缁煎悎鐩戞祴璁惧淇℃伅")) { + } else { + toggleLayerVisible("缁煎悎鐩戞祴璁惧淇℃伅", true); + } + } else { + toggleLayerVisible("缁煎悎鐩戞祴璁惧淇℃伅", false); + } + return; +} // 鍏朵粬鍥惧眰鐨勫鐞嗛�昏緫 const list = treeMap.get(label); @@ -219,7 +231,7 @@ } else if (entityList && typeof entityList.show !== "undefined") { entityList.show = checked; } else { - console.error(`鏃犳硶璁剧疆鍥惧眰 ${name} 鐨勫彲瑙佹�); + // console.error(`鏃犳硶璁剧疆鍥惧眰 ${name} 鐨勫彲瑙佹�); } } @@ -233,7 +245,7 @@ item.deviceName?.includes("瀛欒儭娌�") ); }; - +// 榛樿鍔犺浇閮ㄥ垎宸叉浛鎹㈣嚦Device.vue涓紝閫昏緫淇敼涓烘牴鎹綋鍓嶉�夋嫨鍦板舰鍒囨崲璁惧鐐规樉绀� async function initDevicePoint() { let list = []; await getDevicetList(); @@ -325,7 +337,7 @@ * 鍒濆鍖栨墍鏈夋暟鎹� */ function getData() { - initDevicePoint(); + // initDevicePoint(); // initDistrictPoint(); initDuanmianPoint(); addTetrahedron(); -- Gitblit v1.9.3