From cb7718b006e9de64e1732b005f28dedffdd16209 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Mon, 30 Oct 2023 09:48:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Data=20Recevice=20status=20Monitoring=20?= =?UTF-8?q?=E5=8F=B3=E4=BE=A7=E5=9B=BE=E8=A1=A8legend=E6=9C=AA=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stationOperation/components/MapPane.vue | 2 ++ src/views/stationOperation/components/RealTimeDataChart.vue | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/stationOperation/components/MapPane.vue b/src/views/stationOperation/components/MapPane.vue index 5f62093..4f19197 100644 --- a/src/views/stationOperation/components/MapPane.vue +++ b/src/views/stationOperation/components/MapPane.vue @@ -147,6 +147,7 @@ :footer="null" @fullscreen="onModalFullScreen" :getContainer="getModalContainer" + destroy-on-close >
@@ -624,6 +625,7 @@ export default { // 打开分析弹窗 handleOpenAnalyzeModal(stationInfo) { this.stationInfo = stationInfo + this.statusList = [] this.dataStatusModalVisible = true }, diff --git a/src/views/stationOperation/components/RealTimeDataChart.vue b/src/views/stationOperation/components/RealTimeDataChart.vue index 73b7961..f76725a 100644 --- a/src/views/stationOperation/components/RealTimeDataChart.vue +++ b/src/views/stationOperation/components/RealTimeDataChart.vue @@ -97,7 +97,7 @@ export default { }, data() { return { - legendList, + legendList: cloneDeep(legendList), option: {} } }, @@ -168,7 +168,6 @@ export default { const option = cloneDeep(initialOption) const { grid, xAxis, yAxis, series, dataZoom } = option this.list.forEach((item, index) => { - console.log('%c [ item ]-185', 'font-size:13px; background:pink; color:#bf2c9f;', item) grid.push({ left: 70, right: 20, @@ -238,7 +237,7 @@ export default { const endTime = new Date(item.endTime * 1000).getTime() const duration = endTime - startTime const index = typeList.findIndex(type => item.type == type) - const find = legendList.find(legendItem => legendItem.title == item.status) + const find = this.legendList.find(legendItem => legendItem.title == item.status) if (find.isShow) { data.push({ name: item.status,