From 241a031cc5e432e88614459c0bdb60ad6d961d1c Mon Sep 17 00:00:00 2001 From: dengj <209192278@qq.com> Date: Wed, 13 Dec 2023 11:02:41 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=82=93=E6=B4=81=20:=20=E9=A6=96=E5=B1=8F?= =?UTF-8?q?=E9=A3=8E=E5=8E=8B=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 --- .../content/windPressure/WindPressureList.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/content/windPressure/WindPressureList.vue b/src/components/content/windPressure/WindPressureList.vue index 5ab861d..fd9a7e8 100644 --- a/src/components/content/windPressure/WindPressureList.vue +++ b/src/components/content/windPressure/WindPressureList.vue @@ -16,21 +16,25 @@ const props = defineProps({ }); const wpList = ref([]); watch(() => props.list, (now, old) => { - now.map(item=>{ - item.unit='Pa' + wpList.value.forEach(item=>{ + now.forEach(item2=>{ + if(item.equipmentId === item2.equipmentId){ + item.value = item2.value + } + }) }) - wpList.value = now }, {deep: true}); watch(() => props.winData, (now) => { - getScreenInfo(now) + getScreenInfo(now.windPressureSensorList) }, {deep: true}); const getScreenInfo = (now) => { let windPressureObj = {} let windPressureArr = [] - now.windPressureSensorList.map(item => { + now.map(item => { windPressureObj = { + equipmentId:item.equipmentId, max: 120, value: item.value, point: item.valueThreshold, From 2d1fbb27ca8bf359372c258bab6bd532899043a1 Mon Sep 17 00:00:00 2001 From: dengj <209192278@qq.com> Date: Wed, 13 Dec 2023 12:52:59 +0800 Subject: [PATCH 2/3] =?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 | 106 +++++++----------- .../content/airInfo/childComps/ItemInfo.vue | 25 ++--- .../content/windPressure/WindPressureList.vue | 8 +- .../childComps/WindPressureItem.vue | 6 +- 4 files changed, 58 insertions(+), 87 deletions(-) diff --git a/src/components/content/airInfo/AirInfo.vue b/src/components/content/airInfo/AirInfo.vue index d4616a2..92c9b9a 100644 --- a/src/components/content/airInfo/AirInfo.vue +++ b/src/components/content/airInfo/AirInfo.vue @@ -3,98 +3,78 @@
-
风速进风:13m/s
-
出风:13m/s
+
风速进风:{{ windSpeed }}m/s
+
出风:{{windSpeed}}m/s
- - - diff --git a/src/components/content/airInfo/childComps/ItemInfo.vue b/src/components/content/airInfo/childComps/ItemInfo.vue index 38dbe3b..a877532 100644 --- a/src/components/content/airInfo/childComps/ItemInfo.vue +++ b/src/components/content/airInfo/childComps/ItemInfo.vue @@ -2,7 +2,6 @@
- {{ params.name }}
@@ -16,8 +15,6 @@