From 9516d95bdcc481b71d4b090bbdcfff39a84b26d6 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期一, 07 十月 2024 22:38:23 +0800
Subject: [PATCH] 1

---
 src/views/mdc/realtime-status/index.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/views/mdc/realtime-status/index.vue b/src/views/mdc/realtime-status/index.vue
index c5457e3..aaa191b 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-10-07 00:51:38
+ * @LastEditTime: 2024-10-07 21:48:45
  * @FilePath: /mdc/Users/mache/Documents/demo/cps-web/src/views/mdc/realtime-status/index.vue
  瀹炴椂鐪嬫澘
 -->
@@ -194,11 +194,18 @@
 			this.$HTTP.get("/api/blade-cps/group/get-mdc-group").then(res => {
 				if (res.code == 200) {
 					this.stationlabelList = res.data;
-					this.stationlabel = res.data[0].groupName;
+					if(res.data.length != 0) {
+						this.stationlabel = res.data[0].groupName;
+					}
 				}
 			})
 		},
 		changestatus(name) {
+			if(this.stationlabelList.length == 0) {
+				this.station = "鐘舵�佽鍥�";
+				//this.$message.error("涓嶈兘鐐瑰嚮");
+				return;
+			}
 			this.station = name;
 			if (this.station == '鐘舵�佽鍥�') {
 				this.workStationGroupIdList = [];
@@ -241,7 +248,8 @@
 			}
 		},
 		goSet() {
-			this.$router.push('/mdc/configuration');
+			//console.log(this.$TOOL.data.get("MENU"));name == "閰嶇疆涓績"
+			this.$router.push('/mdc/configuration');  //鍒嗘瀽璁剧疆
 		},
 		gostatus(item) {
 			this.$router.push('/mdc/station-live?code=' + item.id);
@@ -382,7 +390,6 @@
 							}
 						});
 					};
-					console.log(this.timestatus,214)
 					// var len = res.data.records.length;
 					// intervalId = setInterval(function() {  
 					// 	if (num === len) {  

--
Gitblit v1.9.3