Browse Source

1. 注氮bug修复

hongrunxia 2 months ago
parent
commit
dc6b6c286b

+ 2 - 2
src/views/vent/monitorManager/compressor/components/nitrogenHome_dltj.vue

@@ -10,7 +10,7 @@
       <fourBorderBg :class="`kyj${groupNum}`" :id="`nitrogenMonitor${groupNum}`">
         <!-- <div class="title">空压机{{ groupNum }} </div> -->
         <div class="title">
-          {{ monitorData ? monitorData['strname' + groupNum] : '注氮机' + groupNum }}
+          {{ monitorData && monitorData['strname' + groupNum] ? monitorData['strname' + groupNum] : '注氮机' + groupNum }}
           <span :style="{ color: monitorData && monitorData['Status' + groupNum] == '1' ? '#67fc00' : '#e9170b' }">
             {{ monitorData && monitorData['Status' + groupNum] == '1' ? '运行' : '停止' }}
@@ -108,7 +108,7 @@
           <div class="item item-l" v-for="groupNum in monitorDataGroupNum" :key="groupNum">
             <ventBox1>
               <template #title>
-                <div>{{ monitorData ? monitorData['strname' + groupNum] : '注氮机' + groupNum }}</div>
+                <div>{{ monitorData && monitorData['strname' + groupNum] ? monitorData['strname' + groupNum] : '注氮机' + groupNum }}</div>
               </template>
               <template #container>
                 <div class="monitor-box">