Browse Source

[Mod 0000] 均压页面对接细则修改

houzekong 2 days ago
parent
commit
77af200925

+ 1 - 1
src/views/vent/monitorManager/balancePressMonitor/balancePress.data.ts

@@ -73,7 +73,7 @@ export const localFanParam = [
   },
   {
     title: '供风量',
-    code: 'm3_merge',
+    code: 'readData.m3_merge',
     unit: 'm³/min',
   },
   {

+ 6 - 3
src/views/vent/monitorManager/balancePressMonitor/components/balancePressHome.vue

@@ -164,9 +164,12 @@
   async function getDataSource(systemID) {
     const res = await list({ devicetype: 'sys', systemID });
     const result = res.msgTxt;
+    safetyMonitorData.value = [];
+    fanlocalMonitorData.value = [];
+    windowMonitorData.value = [];
     result.forEach((item) => {
       if (item.type.startsWith('safetymonitor')) {
-        safetyMonitorData.value = item.datalist;
+        safetyMonitorData.value.push(...item.datalist);
       }
       if (item.type.startsWith('fanlocal')) {
         item.datalist.forEach((e) => {
@@ -174,10 +177,10 @@
           e.FanfHz = f1Run ? e.readData.Fan1_Frequency : e.readData.Fan2_Frequency;
           e.FanRun = f1Run ? '1#风机' : '2#风机';
         });
-        fanlocalMonitorData.value = item.datalist;
+        fanlocalMonitorData.value.push(...item.datalist);
       }
       if (item.type.startsWith('window')) {
-        windowMonitorData.value = item.datalist;
+        windowMonitorData.value.push(...item.datalist);
       }
     });
   }