From f34ad4c3d2d3e2a7f45bbd978e49fd4b54475d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=AF=E9=BE=99=20=E6=9B=B9?= <1805857645@QQ.com> Date: Wed, 28 Aug 2024 17:54:32 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=E4=BF=AE=E6=94=B9=E6=9B=B2=E7=BA=BF?= =?UTF-8?q?=E5=8F=AA=E6=98=BE=E7=A4=BA=E7=9B=B8=E5=BA=94=E8=83=BD=E6=BA=90?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=9A=84=E6=9B=B2=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ems/report/currentIOTCurve/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/ems/report/currentIOTCurve/index.vue b/src/views/ems/report/currentIOTCurve/index.vue index 7a03699..51417e3 100644 --- a/src/views/ems/report/currentIOTCurve/index.vue +++ b/src/views/ems/report/currentIOTCurve/index.vue @@ -359,7 +359,7 @@ export default { // areaStyle: { // color: "rgba(5,140,255, 0.2)", // }, - data: data.dataList.map(e => e.tempreture) + data: data.monitorTypeArr.includes('温度')?data.dataList.map(e => e.tempreture):[] }, { tooltip:{ @@ -381,7 +381,7 @@ export default { // areaStyle: { // color: "rgba(5,140,255, 0.2)", // }, - data: data.dataList.map(e => e.humidity) + data: data.monitorTypeArr.includes('湿度') ?data.dataList.map(e => e.humidity):[] }, { tooltip:{ @@ -403,7 +403,7 @@ export default { // areaStyle: { // color: "rgba(5,140,255, 0.2)", // }, - data: data.dataList.map(e => e.noise) + data: data.monitorTypeArr.includes('噪声') ? data.dataList.map(e => e.noise):[] }, { tooltip:{ @@ -425,7 +425,7 @@ export default { // areaStyle: { // color: "rgba(5,140,255, 0.2)", // }, - data: data.dataList.map(e =>e.illuminance) + data: data.monitorTypeArr.includes('照度') ? data.dataList.map(e =>e.illuminance):[] }, { tooltip:{ @@ -447,7 +447,7 @@ export default { // areaStyle: { // color: "rgba(5,140,255, 0.2)", // }, - data: data.dataList.map(e =>e.concentration) + data: data.monitorTypeArr.includes('气体浓度') ? data.dataList.map(e =>e.concentration):[] } ] }