Browse Source

[Fix 0000] 修复石圪台注氮监测页面echarts 不显示问题
[Feat 0000] 添加防火门详情跳转

hongrunxia 3 weeks ago
parent
commit
4852241302

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

@@ -405,6 +405,7 @@
           if (dataArr.length <= 5) {
             monitorData.value.forEach((el, index) => {
               airCompressor[`InputFlux${index + 1}`] = el['InputFlux'] || 0;
+              airCompressor['InputFlux'] = el['InputFlux'] || 0;
             });
             dataArr.push(airCompressor);
           } else {
@@ -414,7 +415,7 @@
           echartData.value = dataArr;
         }
       });
-      if (flag) monitorDataGroupNum.value = monitorData.value.length;
+      monitorDataGroupNum.value = monitorData.value.length;
       refresh.value = true;
       nextTick(() => {
         refresh.value = false;

+ 4 - 3
src/views/vent/monitorManager/compressor/nitrogen.data.ts

@@ -223,6 +223,7 @@ export function getMonitorComponent() {
     case 'sdmtjtltmk':
     case 'sdmtjtsgtmk': // 石圪台
     case 'sdmtjtbetmk': // bet
+    case 'sdmtjtcctmk': // bet
       nitrogenHome = defineAsyncComponent(() => import('./components/nitrogenHome_bet.vue'));
       return nitrogenHome;
     case 'sdmtjtbdmk': // bd
@@ -234,9 +235,9 @@ export function getMonitorComponent() {
       // debugger;
       nitrogenHome = defineAsyncComponent(() => import('./components/nitrogenHome_blt.vue'));
       return nitrogenHome;
-    case 'sdmtjtcctmk': // 寸草塔
-      nitrogenHome = defineAsyncComponent(() => import('./components/nitrogenHome_blt.vue'));
-      return nitrogenHome;
+    // case 'sdmtjtcctmk': // 寸草塔
+    //   nitrogenHome = defineAsyncComponent(() => import('./components/nitrogenHome_blt.vue'));
+    //   return nitrogenHome;
     // case 'sdmtjtjjmk': // 锦界
     //   nitrogenHome = defineAsyncComponent(() => import('./components/nitrogenHome_lt.vue'));
     //   return nitrogenHome;

+ 1 - 0
src/views/vent/monitorManager/deviceMonitor/components/device/device.data.ts

@@ -527,6 +527,7 @@ export const haveHandlerArr = [
   'spray',
   'dustdev',
   'gate_linkdlfm',
+  'door',
   // 'firemon',
 ]; // table无操作
 export const noWarningArr = [

+ 4 - 1
src/views/vent/monitorManager/deviceMonitor/components/device/index.vue

@@ -1087,7 +1087,7 @@
       if (deviceType.value.startsWith('fiber')) {
         currentModal.value = FiberModal;
         modalVisible.value = true;
-      } else if (deviceType.value.startsWith('dusting')) {
+      }else if (deviceType.value.startsWith('dusting')) {
         currentModal.value = DustModal;
         modalVisible.value = true;
       } else if (deviceType.value.startsWith('bundletube')) {
@@ -1106,6 +1106,9 @@
       } else if (deviceType.value.startsWith('gaspatrol')) {
         currentModal.value = GaspatrolModal;
         modalVisible.value = true;
+      } else if (deviceType.value.startsWith('door')) {
+        const newPage = router.resolve({ path: '/monitorChannel/monitor-firedoor', query: { id: activeID.value, deviceType: deviceType.value } });
+        window.open(newPage.href, '_blank');
       } else if (deviceType.value.indexOf('gate') != -1) {
         const newPage = router.resolve({ path: '/monitorChannel/monitor-gate', query: { id: activeID.value, deviceType: deviceType.value } });
         window.open(newPage.href, '_blank');