From cea8b8704b4d370c386f6d84f56e399844d52849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Sat, 7 Jun 2025 15:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/index.vue | 149 ++++++++++++++++++++++++++++---------- 1 file changed, 110 insertions(+), 39 deletions(-) diff --git a/src/views/board/index.vue b/src/views/board/index.vue index e636452..c727c5e 100644 --- a/src/views/board/index.vue +++ b/src/views/board/index.vue @@ -26,18 +26,30 @@
温度设备 + ( + + 离线)
温湿度设备 + ( + + 离线)
振动设备 + ( + + 离线)
报警设备 + ( + + 离线)
@@ -99,16 +111,21 @@
{{ i }}
-
-
-
- {{ deviceMap[ii] }} -
-
- : -
-
- {{ deviceData.E0013[i][ii] }} +
+ 离线 +
+
+
+
+
+ {{ deviceMap[ii] }} +
+
+ : +
+
+ {{ deviceData.E0013[i][ii] }} +
@@ -117,7 +134,9 @@
-
+
@@ -141,7 +160,9 @@
-
+
@@ -165,7 +186,9 @@
-
+
@@ -189,7 +212,9 @@
-
+
@@ -213,7 +238,9 @@
-
+
@@ -237,7 +264,9 @@
-
+
@@ -261,7 +290,9 @@
-
+
@@ -285,7 +316,9 @@
-
+
@@ -309,7 +342,9 @@
-
+
@@ -333,7 +368,9 @@
-
+
@@ -357,7 +394,9 @@
-
+
@@ -381,7 +420,9 @@
-
+
@@ -405,7 +446,9 @@
-
+
@@ -429,7 +472,9 @@
-
+
@@ -453,7 +498,9 @@
-
+
@@ -477,7 +524,9 @@
-
+
@@ -501,7 +550,9 @@
-
+
@@ -525,7 +576,9 @@
-
+
@@ -549,7 +602,9 @@
-
+
@@ -573,7 +628,9 @@
-
+
@@ -597,7 +654,9 @@
-
+
@@ -621,7 +680,9 @@
-
+
@@ -645,7 +706,9 @@
-
+
@@ -669,7 +732,9 @@
-
+
@@ -693,7 +758,9 @@
-
+
@@ -717,7 +784,9 @@
-
+
@@ -741,7 +810,9 @@
-
+
@@ -825,7 +896,7 @@ export default { vibrationAcceleration: '振动-加速度', vibrationTemp: '振动-温度', }, - + isOnline: {} } }, @@ -833,6 +904,7 @@ export default { console.log(document.getElementsByClassName('scTable1')[0]) document.getElementsByClassName('scTable1')[0].style.display = 'block' this.$bus.$on('websocket-device-data', (e) => { + this.isOnline[e.deviceParam.monitorId] = new Date().getTime() let deviceID = e?.deviceParam?.monitorId?.split('_')?.[0] if (Object.keys(this.deviceData).includes(deviceID)) { this.$set(this.deviceData[deviceID], e.deviceParam.monitorId, { @@ -852,7 +924,6 @@ export default { }, methods: {}, beforeDestroy() { - console.log(1122, '31231') document.getElementsByClassName('scTable1')[0].style.display = 'none' } }