From 4c8e56927ad10ee8e7b0b0fb4bb379900582a17b Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期二, 08 十月 2024 15:42:17 +0800
Subject: [PATCH] #
---
src/main/webapp/views/wcsmap/wcsmap.html | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/views/wcsmap/wcsmap.html b/src/main/webapp/views/wcsmap/wcsmap.html
index 2a548c3..b5db182 100644
--- a/src/main/webapp/views/wcsmap/wcsmap.html
+++ b/src/main/webapp/views/wcsmap/wcsmap.html
@@ -76,6 +76,7 @@
},
getSiteInfo() {
+ let _this = this
$.ajax({
url: baseUrl + "/console/latest/data/site",
headers: { 'token': localStorage.getItem('token') },
@@ -87,8 +88,13 @@
// updateColor(item, item.originColor);
for (let site of sites) {
if (site.siteId == item.title) {
- var conve = this.conveyor.find(con => con.title == site.siteId)
-
+ var conve = _this.conveyor.find(con => con.title == site.siteId)
+ // var conve;
+ // for (let cc of this.conveyor) {
+ // if (cc.title == site.siteId) {
+ // conve = cc
+ // }
+ // }
if (site.siteStatus == 'site-auto-run-id') {
// 鑷姩+鏈夌墿+ID
conve.background = 0xFC3030
@@ -109,7 +115,7 @@
// 闈炶嚜鍔�/鎵嬪姩
conve.background = 0xB8B8B8
}
- this.updateColor(item, conve)
+ _this.updateColor(item, conve)
}
}
// for (let k of this.sites) {
--
Gitblit v1.9.1