From 089e3d72237c5235a482a0e3b1078a402eed00c0 Mon Sep 17 00:00:00 2001
From: 李喆(开发组) <lzhe@yxqiche.com>
Date: 星期二, 15 四月 2025 13:50:15 +0800
Subject: [PATCH] 1

---
 src/views/mdc/realtime-status/index.vue |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/views/mdc/realtime-status/index.vue b/src/views/mdc/realtime-status/index.vue
index 44fe480..65496a2 100644
--- a/src/views/mdc/realtime-status/index.vue
+++ b/src/views/mdc/realtime-status/index.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-04-09 22:11:21
- * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-11-04 11:19:09
+ * @LastEditors: 鏉庡枂(寮�鍙戠粍) lzhe@yxqiche.com
+ * @LastEditTime: 2025-04-15 13:49:08
  * @FilePath: /cps-web/src/views/mdc/realtime-status/index.vue
  瀹炴椂鐪嬫澘
 -->
@@ -194,7 +194,12 @@
 				item.active = false;
 			})
 			this.devicestatus[index].active = true;
-			this.deviceStatus = [item.status];
+			if(item.status == 10) {  //鍏ㄩ儴
+				this.deviceStatus = [];
+			}else {
+				this.deviceStatus = [item.status];
+			}
+			this.current = "1";
 			this.gettimestatus();
 		},
 		prev() {
@@ -350,6 +355,7 @@
 		getdevicestatus() {
 			this.$HTTP.get(`/api/mdc/work-station-analysis/device-status-statistics`).then(res => {
 				if (res.code == 200) {
+					var deviceNumAll = 0;
 					res.data.forEach(item => {
 						item.active = false;
 						this.allwcs.forEach(item1 => {
@@ -360,12 +366,21 @@
 						if (this.$route.query.currentTag == item.status) {
 							item.active = true;
 						}
+						deviceNumAll += item.deviceNum;
 					})
 					res.data[0].icon = "Position";
 					res.data[1].icon = "Loading";
 					res.data[2].icon = "Clock";
 					res.data[3].icon = "Warning";
 					res.data[4].icon = "Odometer";
+					res.data.push({
+						active: false,
+						color: "#08f1f4",
+						deviceNum: deviceNumAll,
+						icon: "price-tag",
+						status: "10",
+						statusName: "鍏ㄩ儴",
+					})
 					this.devicestatus = res.data;
 				}
 			})

--
Gitblit v1.9.3