From 8352d3042b208f5b02dcb8fdc3b3e512acb70406 Mon Sep 17 00:00:00 2001 From: hzz Date: Thu, 25 May 2023 11:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=BA=E6=A2=B0=E5=88=86?= =?UTF-8?q?=E5=8E=82=E8=AE=BE=E5=A4=87=E4=BA=8C=E7=BA=A7=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/module/Mechanics.ts | 6 +++++- src/views/Mechanics/content/chart/gateway.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/store/module/Mechanics.ts b/src/store/module/Mechanics.ts index f2509af..e25c4f7 100644 --- a/src/store/module/Mechanics.ts +++ b/src/store/module/Mechanics.ts @@ -172,8 +172,12 @@ export const useMechanicsStore = defineStore(Names.Mechanics, { this.mechanicsData.forEach((ele) => { ele.data?.forEach((item) => { if (item.id == val.id) { + if (val.realStatus) { + item.status == val.status?'':item.status = val.status; + } else { + item.status == val.status?'':item.status = 'H_IDLE'; + } - item.status == val.status?'':item.status = val.status; } }); }); diff --git a/src/views/Mechanics/content/chart/gateway.vue b/src/views/Mechanics/content/chart/gateway.vue index 1d79deb..5a10abe 100644 --- a/src/views/Mechanics/content/chart/gateway.vue +++ b/src/views/Mechanics/content/chart/gateway.vue @@ -45,7 +45,7 @@ const gatewayvalue = reactive({ title: null, counts: null, gateway: null, - iconname: "", + iconname: "icon-beikongshuiwupingtaimenhu-tubiao_zhinengwangguan", }); let boxWH=reactive({ width:'0px',