Browse Source

寸二预警管控修改-提交

lxh 8 months ago
parent
commit
16f56050b8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/vent/monitorManager/alarmMonitor/index.vue

+ 3 - 1
src/views/vent/monitorManager/alarmMonitor/index.vue

@@ -490,13 +490,15 @@ async function getList() {
       ? res.info.sysInfo.fireS.summaryInfo.external.coval.value
       : '';
 
-  if (res.bundletubeInfo.msgTxt[0].datalist.length != 0) {
+  if (res.bundletubeInfo.msgTxt.length!=0 && res.bundletubeInfo.msgTxt[0].datalist.length != 0) {
     res.bundletubeInfo.msgTxt[0].datalist.forEach((el, ind) => {
       fireMonitor1.push({
         value: el.readData.internalFireWarnLevel,
         value1: el.strinstallpos,
       });
     });
+  }else {
+    fireMonitor1.length=0
   }
   gasMonitor.length = 0;
   gasData.sums = 0;