فهرست منبع

路宁注氮更新

lxh 1 سال پیش
والد
کامیت
3c57f3c48d
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      src/views/vent/monitorManager/compressor/components/nitrogenHome_new.vue

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

@@ -74,7 +74,7 @@
                 </div>
                 <!-- 左边监测数据 -->
                 <div class="lr-box left-box">
-                    <ventBox1>
+                    <ventBox1 v-if="monitorData[0]['deviceType'] == 'nitrogen_auto'">
                         <template #title>
                             <div>注氮机监测</div>
                         </template>
@@ -246,9 +246,10 @@ async function getDataSource(systemID) {
     const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
     if (res) {
         const result = res;
+        // let result = ceshi.result
         if (!result || result.msgTxt.length < 1) return;
         result.msgTxt.forEach((item) => {
-            if (item.type && item.type.startsWith('nitrogen')) {
+            if (item.type && item.type.startsWith('sys')) {
                 airCompressorState.length = 0;
                 // let netStatus = 0;
                 // monitorData.value = Object.assign(item['datalist'][0], item['datalist'][0]['readData']);