From 1988d77f4df3c01a9137303e0c959b3442c14377 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期一, 30 九月 2024 22:10:30 +0800
Subject: [PATCH] 1

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

diff --git a/src/views/mdc/realtime-status/index.vue b/src/views/mdc/realtime-status/index.vue
index 904247d..642affb 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: gaosp
- * @LastEditTime: 2024-09-04 22:11:55
+ * @LastEditors: lzhe lzhe@example.com
+ * @LastEditTime: 2024-09-09 11:23:54
  * @FilePath: /mdc/Users/mache/Documents/demo/cps-web/src/views/mdc/realtime-status/index.vue
  瀹炴椂鐪嬫澘
 -->
@@ -127,6 +127,7 @@
 		}
 	},
 	mounted() {
+		this.deviceStatus = this.$route.query.currentTag?[...this.$route.query.currentTag]:[];
 		this.getstationlabelList();  //鑾峰彇鏍囩瑙嗗浘涓嬬殑list
 		this.setIntervalTime();   //鍗佺澧炲姞鏃堕棿
 		this.getprocess(); //鑾峰彇棰滆壊==銆嬭幏鍙栭《閮╰itle==銆嬭缃嚑琛屽嚑鍒�==銆媤s
@@ -277,7 +278,7 @@
 				workStationGroupIdList: this.workStationGroupIdList
 			}
 			this.timestatus = [];
-			this.$HTTP.post(`/api/blade-cps/workstation/real-time-status?current=${this.current || 0}&size=${this.size || 0}`, obj).then(res => {
+			this.$HTTP.post(`/api/blade-cps/workstation/real-time-status?current=${this.current || 0}&size=${this.size || 6}`, obj).then(res => {
 				if (res.code == 200) {
 					var ids = [];
 					console.log(this.allwcs, res.data)
@@ -411,6 +412,9 @@
 								item.color = item1.color;
 							}
 						})
+						if (this.$route.query.currentTag == item.status) {
+							item.active = true;
+						}
 					})
 					res.data[0].icon = "Position";
 					res.data[1].icon = "Loading";

--
Gitblit v1.9.3