浏览代码

1. 大柳塔注氮bug修复

hongrunxia 2 月之前
父节点
当前提交
158c86345e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/vent/monitorManager/compressor/components/nitrogenHome_dltj.vue

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

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