From d348383a743c4edc75d9a84e4146ca05b173870b Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 1 Apr 2026 16:44:43 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E8=AE=BE=E5=A4=87=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/device/index.vue | 1712 -------------------- src/views/iot/map/components/DeviceMap.vue | 2 +- src/views/iot/map/index.vue | 8 +- 3 files changed, 5 insertions(+), 1717 deletions(-) delete mode 100644 src/views/iot/device/index.vue diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue deleted file mode 100644 index ce699d1..0000000 --- a/src/views/iot/device/index.vue +++ /dev/null @@ -1,1712 +0,0 @@ - - - - - diff --git a/src/views/iot/map/components/DeviceMap.vue b/src/views/iot/map/components/DeviceMap.vue index af1dc64..df310fc 100644 --- a/src/views/iot/map/components/DeviceMap.vue +++ b/src/views/iot/map/components/DeviceMap.vue @@ -48,7 +48,7 @@ const overlays = ref([]) const getMarkerStatus = (item: any) => { const total = Number(item.total || 0) const offline = Number(item.offline || 0) - if (item.alarm > 0) return 'status-alarm' + // if (item.alarm > 0) return 'status-alarm' if (total > 0 && offline >= total) return 'status-offline' return 'status-normal' } diff --git a/src/views/iot/map/index.vue b/src/views/iot/map/index.vue index af0c42c..48a4f9d 100644 --- a/src/views/iot/map/index.vue +++ b/src/views/iot/map/index.vue @@ -57,7 +57,7 @@
图例说明
运行正常
-
存在报警
+
离线设备
点击设备标记查看详细统计
@@ -89,10 +89,10 @@ 离线设备 {{ selectedCountry.offline }}
-
+
@@ -230,7 +230,7 @@ const topStats = computed(() => [ ]) const getItemStatus = (item: MapItem) => { - if (item.alarm > 0) return 'alarm' + // if (item.alarm > 0) return 'alarm' if (item.total > 0 && item.offline >= item.total) return 'offline' return 'normal' }