Sfoglia il codice sorgente

[Mod 0000] 大海则5.5首页去除漏风率

houzekong 20 ore fa
parent
commit
5949920b87
1 ha cambiato i file con 11 aggiunte e 6 eliminazioni
  1. 11 6
      src/views/vent/home/colliery/index.vue

+ 11 - 6
src/views/vent/home/colliery/index.vue

@@ -34,10 +34,12 @@
                 <div class="nav-item" v-if="(item.valList && item.valList.length > 0) || item.val">
                   <div class="item-label">{{ item.name }}</div>
                   <div class="item-value">
-                    <div v-if="item.isShow" class="bg-box" v-for="(ite, ind) in item.valList" :key="ind">
-                      <div class="box-line"></div>
-                      <div class="value-text">{{ ite.val }}</div>
-                    </div>
+                    <template v-if="item.isShow">
+                      <div class="bg-box" v-for="(ite, ind) in item.valList" :key="ind">
+                        <div class="box-line"></div>
+                        <div class="value-text">{{ ite.val }}</div>
+                      </div>
+                    </template>
                     <div v-else class="value-text1">{{ item.val }}</div>
                   </div>
                 </div>
@@ -136,7 +138,6 @@
   const centerModalRef = ref();
   const fullModalRef = ref();
 
-  const globSetting = useGlobSetting();
   const pageType = ref('');
   let router = useRouter();
   const pageResult = ref({});
@@ -164,7 +165,6 @@
 
   function getList() {
     list({}).then((res) => {
-      console.log(res, 'res-----------');
       fanLocalList.length = 0;
       fanLocalList.push(res.fanlocal);
       mainList.value = res.fanmain || [];
@@ -225,6 +225,11 @@
       }
       warnData.value = res.warn || [];
       deviceData.value = res.device || {};
+
+      // 大海则不需要漏风率
+      if (sysOrgCode === 'sdtljtdhzmk') {
+        navList[4].val = 0;
+      }
     });
   }