From 0b0c5f22a12b885571e26a33f4f5e52b127e0709 Mon Sep 17 00:00:00 2001 From: dengj <209192278@qq.com> Date: Wed, 13 Dec 2023 13:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E4=BC=A0=E6=84=9F?= =?UTF-8?q?=E5=99=A8=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/content/airInfo/AirInfo.vue | 4 +- .../content/badGasInfo/BadGasInfo.vue | 90 ++++++++----------- .../badGasInfo/childComps/GasInfoItem.vue | 1 - src/views/tunnel/index.vue | 6 +- 4 files changed, 41 insertions(+), 60 deletions(-) diff --git a/src/components/content/airInfo/AirInfo.vue b/src/components/content/airInfo/AirInfo.vue index 92c9b9a..a5fd82b 100644 --- a/src/components/content/airInfo/AirInfo.vue +++ b/src/components/content/airInfo/AirInfo.vue @@ -39,13 +39,13 @@ watch(() => props.airData, (now) => { getAirInfo(now.sensorList) }, {deep: true}); -const changeData = (item, flag) => { +const changeData = (item) => { return { equipmentId: item.equipmentId, icon: changeIcon(item.equipmentType), name: item.equipmentName.slice(0, 2), max: 120, - value: flag ? flag.value : item.value, + value: item.value, point: item.valueThreshold, unit: item.unit } diff --git a/src/components/content/badGasInfo/BadGasInfo.vue b/src/components/content/badGasInfo/BadGasInfo.vue index 900ace3..9c3764e 100644 --- a/src/components/content/badGasInfo/BadGasInfo.vue +++ b/src/components/content/badGasInfo/BadGasInfo.vue @@ -2,70 +2,52 @@