Browse Source

Merge branch 'master' of http://182.92.126.35:3000/hrx/mky-vent-base

lxh 2 days ago
parent
commit
2b120fc8a4
1 changed files with 12 additions and 2 deletions
  1. 12 2
      src/views/vent/monitorManager/dedustMonitor/index.vue

+ 12 - 2
src/views/vent/monitorManager/dedustMonitor/index.vue

@@ -32,7 +32,7 @@
             ref="historyTable"
             class="vent-margin-t-20"
             :deviceId="optionValue"
-            :device-type="deviceType"
+            :device-type="calcDeviceType"
           />
           <HandleHistory
             v-if="activeKey == 'handler_history'"
@@ -66,8 +66,8 @@
   import { useSystemSelect } from '/@/hooks/vent/useSystemSelect';
   import { useGlobSetting } from '/@/hooks/setting';
 
+  const { sysOrgCode } = useGlobSetting();
   const DedustHomeComponent = computed(() => {
-    const { sysOrgCode } = useGlobSetting();
     // const sysOrgCode = 'sdmtjtbltmk';
     switch (sysOrgCode) {
       // 布尔台
@@ -89,6 +89,16 @@
     activeKey.value = activeValue;
   }
 
+  const calcDeviceType = computed(() => {
+    switch (sysOrgCode) {
+      // 布尔台
+      case 'sdmtjtbetmk':
+        return 'dedustefan';
+      default:
+        return deviceType.value;
+    }
+  });
+
   const {
     options,
     optionValue,