瀏覽代碼

哈拉沟注浆详情界面及功能开发

lxh 2 周之前
父節點
當前提交
9cfff7249a

+ 0 - 404
src/views/vent/monitorManager/groutMonitor/components/ceshi.json

@@ -1,404 +0,0 @@
-{
-    "success": true,
-    "message": "",
-    "code": 200,
-    "result": {
-        "deviceInfo": {
-            "pulping": {
-                "warnInfo": {
-                    "maxLevel": 0,
-                    "warnNum": 0,
-                    "maxLevel_str": "正常",
-                    "alarmNum": 0,
-                    "warndes": "正常"
-                },
-                "datalist": [
-                    {
-                        "msgType": null,
-                        "deviceID": "1657545388451663014",
-                        "strname": "制浆机1",
-                        "strinstallpos": "制浆机1",
-                        "fsectarea": "11.0",
-                        "stationname": "测试分站",
-                        "stationtype": "plc",
-                        "deviceType": "pulping_auto",
-                        "typeName": "制浆机",
-                        "netStatus": 1,
-                        "warnFlag": 0,
-                        "warnLevel": 0,
-                        "warnLevel_str": "正常",
-                        "warnTime": null,
-                        "readTime": "2024-04-03 16:35:15",
-                        "warnDes": "",
-                        "frontGateOpenCtrl": null,
-                        "rearGateOpenCtrl": null,
-                        "readData": {
-                            "A87": "0",
-                            "A88": "0",
-                            "A89": "0",
-                            "A1": "0",
-                            "A2": "0",
-                            "A3": "0",
-                            "A4": "0",
-                            "A5": "0",
-                            "A6": "0",
-                            "A7": "0",
-                            "A8": "0",
-                            "A90": "0",
-                            "A9": "0",
-                            "A91": "0",
-                            "A92": "0",
-                            "A93": "0",
-                            "A94": "0.0",
-                            "A95": "0.0",
-                            "A96": "0.0",
-                            "A97": "0.0",
-                            "A98": "0.0",
-                            "A10": "0",
-                            "A11": "0",
-                            "A99": "0",
-                            "A12": "0",
-                            "A13": "0",
-                            "A14": "0",
-                            "A15": "0",
-                            "A16": "0",
-                            "A17": "0",
-                            "A18": "0",
-                            "A19": "0",
-                            "A20": "0",
-                            "A21": "0.022605896",
-                            "A22": "-0.0045212507",
-                            "A23": "-25.011305",
-                            "A24": "1.6",
-                            "A25": "0.0",
-                            "A26": "0.6917443",
-                            "A27": "2.0",
-                            "A28": "0.0",
-                            "A29": "0.0",
-                            "A30": "0.0",
-                            "A31": "0.0",
-                            "A32": "0.0",
-                            "A33": "0.0",
-                            "A34": "0.0",
-                            "A35": "0.0",
-                            "A36": "0.0",
-                            "A37": "0.0",
-                            "A38": "0.0",
-                            "A39": "0.0",
-                            "A40": "0",
-                            "A41": "0",
-                            "A42": "0",
-                            "A43": "0",
-                            "A44": "1",
-                            "A45": "1",
-                            "A46": "0",
-                            "A47": "1",
-                            "A48": "0",
-                            "A49": "1",
-                            "sign": "0",
-                            "A50": "0",
-                            "A51": "0",
-                            "A52": "0",
-                            "A53": "0",
-                            "A54": "0",
-                            "A55": "0",
-                            "A56": "0",
-                            "A57": "0",
-                            "A58": "0",
-                            "A59": "0",
-                            "A60": "0",
-                            "A61": "0",
-                            "A62": "0",
-                            "A63": "0",
-                            "A64": "0",
-                            "A65": "0",
-                            "A66": "1",
-                            "A67": "0",
-                            "A68": "1",
-                            "A69": "0",
-                            "A70": "0",
-                            "A71": "0",
-                            "A72": "1",
-                            "A73": "0",
-                            "A74": "0",
-                            "A75": "0",
-                            "A76": "0",
-                            "A77": "0",
-                            "A78": "0",
-                            "A79": "0",
-                            "A80": "0",
-                            "A81": "0",
-                            "A82": "0",
-                            "isRun": "-2",
-                            "A83": "0",
-                            "A84": "0",
-                            "A85": "0",
-                            "A86": "0"
-                        
-                        },
-                        "readDataDes": null,
-                        "summaryHour": [],
-                        "summaryDay": [],
-                        "history": [
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:40:26"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:40:31"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:40:36"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:40:41"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:40:46"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:40:51"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:40:56"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:01"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:06"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:11"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:16"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:21"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:26"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:31"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:36"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:41"
-                            },
-                            {
-                                "o2val": "0.13",
-                                "time": "2024-03-21 23:41:46"
-                            },
-                            {
-                                "o2val": "1.33",
-                                "time": "2024-03-21 23:42:26"
-                            },
-                            {
-                                "o2val": "0.54",
-                                "time": "2024-03-21 23:42:31"
-                            },
-                            {
-                                "o2val": "1.75",
-                                "time": "2024-03-21 23:42:36"
-                            },
-                            {
-                                "o2val": "0.25",
-                                "time": "2024-03-21 23:42:41"
-                            },
-                            {
-                                "o2val": "0.22",
-                                "time": "2024-03-22 00:52:51"
-                            },
-                            {
-                                "o2val": "0.55",
-                                "time": "2024-03-22 00:52:56"
-                            },
-                            {
-                                "o2val": "1.67",
-                                "time": "2024-03-22 00:53:01"
-                            },
-                            {
-                                "o2val": "0.37",
-                                "time": "2024-03-22 00:53:06"
-                            },
-                            {
-                                "o2val": "1.82",
-                                "time": "2024-03-22 00:53:11"
-                            },
-                            {
-                                "o2val": "1.36",
-                                "time": "2024-03-22 01:00:16"
-                            },
-                            {
-                                "o2val": "1.36",
-                                "time": "2024-03-22 01:00:21"
-                            },
-                            {
-                                "o2val": "1.36",
-                                "time": "2024-03-22 01:00:26"
-                            },
-                            {
-                                "o2val": "1.36",
-                                "time": "2024-03-22 01:00:31"
-                            },
-                            {
-                                "o2val": "1.36",
-                                "time": "2024-03-22 01:00:36"
-                            },
-                            {
-                                "o2val": "1.02",
-                                "time": "2024-03-22 01:00:41"
-                            },
-                            {
-                                "o2val": "1.1",
-                                "time": "2024-03-22 01:00:46"
-                            },
-                            {
-                                "o2val": "1.86",
-                                "time": "2024-03-22 01:00:51"
-                            },
-                            {
-                                "o2val": "0.67",
-                                "time": "2024-03-22 01:00:56"
-                            },
-                            {
-                                "o2val": "1.24",
-                                "time": "2024-03-22 01:01:01"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:06"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:11"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:16"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:21"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:26"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:31"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:36"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:41"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:46"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:51"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:01:56"
-                            },
-                            {
-                                "o2val": "1.94",
-                                "time": "2024-03-22 01:02:01"
-                            },
-                            {
-                                "o2val": "0.77",
-                                "time": "2024-03-22 01:02:41"
-                            },
-                            {
-                                "o2val": "1.34",
-                                "time": "2024-03-22 01:16:52"
-                            }
-                        ],
-                        "dayhistory": [
-                            {
-                                "o2val": "0.8",
-                                "time": "2024-03-16 17:08:46"
-                            },
-                            {
-                                "o2val": "1.81",
-                                "time": "2024-03-17 22:57:56"
-                            },
-                            {
-                                "o2val": "1.23",
-                                "time": "2024-03-18 01:07:11"
-                            },
-                            {
-                                "o2val": "0.56",
-                                "time": "2024-03-19 10:29:27"
-                            },
-                            {
-                                "o2val": "1.35",
-                                "time": "2024-03-21 18:10:41"
-                            },
-                            {
-                                "o2val": "0.22",
-                                "time": "2024-03-22 00:52:51"
-                            }
-                        ],
-                        "totalInfo": null,
-                        "sign": null,
-                        "cameras": [],
-                        "links": [],
-                        "other1": null,
-                        "other2": null,
-                        "other3": null,
-                        "remarkInfo": null,
-                        "linkInfo": null
-                    }
-                ],
-                "avgInfo": {
-                    "o2val_datainfo": {
-                        "dayMaxTime": null,
-                        "dayAvg": null,
-                        "dayMin": null,
-                        "dayMinTime": null,
-                        "avgHour": 0,
-                        "hourMinTime": "2024-04-02 10:20:20",
-                        "hourNum": 4,
-                        "hourMax": 1.41,
-                        "hourAvg": 3.72,
-                        "hourMin": 0.52,
-                        "dayNum": null,
-                        "hourMaxTime": "2024-04-02 10:20:15",
-                        "dayMax": null
-                    }
-                },
-                "typeName": "制浆",
-                "type": "pulping"
-            }
-        }
-    },
-    "timestamp": 1712210742179
-}

+ 537 - 0
src/views/vent/monitorManager/groutMonitor/components/groutHomehlg.vue

@@ -0,0 +1,537 @@
+<template>
+    <div class="monitor-container">
+      <div class="area-box lr-box">
+        <div class="item item-l" v-for="groupNum in monitorDataGroupNum" :key="groupNum">
+          <ventBox1>
+            <template #title>
+              <div>注浆站输出监测</div>
+            </template>
+            <template #container>
+              <div class="monitor-box">
+                <div class="monitor-item">
+                  <div class="state-item" v-for="(preFan, index) in groutFanMonitorDataHlg" :key="index">
+                    <div class="state-title">{{ preFan.title }}</div>
+                    <div v-if="preFan.unit !== 'signal'" class="state-val">{{
+                      monitorData[preFan.code] >= 0 ? formatNum(Number(monitorData[preFan.code])) : '-'
+                    }}</div>
+                      <div
+                      v-else-if="preFan.code=='Running'"
+                      :class="{
+                        'signal-round': true,
+                        'signal-round-warning': monitorData[preFan.code] == '0',
+                        'signal-round-run': monitorData[preFan.code] == '1',
+                        'signal-round-gry': monitorData[preFan.code] != '0' && monitorData[preFan.code] != '1',
+                      }"
+                    ></div>
+                    <div
+                      v-else
+                      :class="{
+                        'signal-round': true,
+                        'signal-round-warning': monitorData[preFan.code] == '1',
+                        'signal-round-run': monitorData[preFan.code] == '0',
+                        'signal-round-gry': monitorData[preFan.code] != '0' && monitorData[preFan.code] != '1',
+                      }"
+                    ></div>
+                  </div>
+                </div>
+              </div>
+            </template>
+          </ventBox1>
+        </div>
+      </div>
+      <div class="header-box">
+        <div class="header-container">
+          <div class="device-detail">
+            <div class="device-title">&nbsp</div>
+            <div class="device-val">故障代码</div>
+            <div class="device-val">警告代码</div>
+          </div>
+          <div v-for="(device, key) in deviceMonitorListHlg" class="device-detail" :key="key">
+            <div class="device-title">{{ device.title }}</div>
+            <div v-for="(detailItem, index) in device.dataList" :key="detailItem.code" class="device-val">
+              <span v-if="index == 0" :style="{ color: monitorData[detailItem.code] == '0' ? '#BFBFBF' : '#10BC79' }">{{
+                monitorData[detailItem.code] 
+              }}</span>
+              <span v-if="index == 1" :style="{ color: monitorData[detailItem.code] == '0' ? '#BFBFBF' : '#10BC79' }">{{
+                monitorData[detailItem.code]
+              }}</span>
+            
+            </div>
+          </div>
+        </div>
+      </div>
+     
+  
+      <div ref="playerRef" style="z-index: 9999; position: absolute; top: 0px; right: 15px; height: 100%; margin: auto; pointer-events: none"> </div>
+    </div>
+  </template>
+  
+  <script setup lang="ts">
+    import { watch, ref, onMounted, onUnmounted, defineProps, reactive } from 'vue';
+    import ventBox1 from '/@/components/vent/ventBox1.vue';
+    import { mountedThree, destroy, setModelType } from '../grout.threejs';
+    import { formatNum } from '/@/utils/ventutil';
+    import { deviceMonitorListHlg, groutFanMonitorDataHlg } from '../grout.data';
+    import { list } from '../grout.api';
+    import { useCamera } from '/@/hooks/system/useCamera';
+  
+    const props = defineProps({
+      deviceId: {
+        type: String,
+        require: true,
+      },
+      deviceType: {
+        type: String,
+        require: true,
+      },
+    });
+  
+    let monitorDataGroupNum = ref(1);
+  
+    const loading = ref(false);
+    const monitorData = ref({});
+  
+    const playerRef = ref();
+    const { getCamera, removeCamera } = useCamera();
+  
+    // https获取监测数据
+    let timer: null | NodeJS.Timeout = null;
+    function getMonitor(flag?) {
+      if (Object.prototype.toString.call(timer) === '[object Null]') {
+        return new Promise((resolve) => {
+          timer = setTimeout(
+            async () => {
+              if (props.deviceId) {
+                await getDataSource(props.deviceId);
+              }
+              if (timer) {
+                timer = null;
+              }
+              resolve(null);
+              await getMonitor();
+            },
+            flag ? 0 : 1000
+          );
+        });
+      }
+    }
+  
+    async function getDataSource(systemID) {
+      const res = await list({ devicetype: 'pulping_auto', systemID, pagetype: 'normal' });
+    if(res && res.result.msgTxt[0]){
+        const result = res.result.msgTxt[0];
+        if (result.type.startsWith('pulping')) {
+          monitorData.value = Object.assign(result['datalist'][0], result['datalist'][0]['readData']);
+        }
+        loading.value = false;
+    }else {
+        monitorData.value={}
+    }
+    }
+  
+    watch(
+      () => props.deviceId,
+      async (deviceId) => {
+        if (deviceId) {
+          await getCamera(deviceId, playerRef.value, 'pulping');
+        }
+      }
+    );
+  
+    onMounted(() => {
+      getMonitor(true)?.then(async () => {
+        if (props.deviceId) await getCamera(props.deviceId, playerRef.value, 'pulping');
+      });
+      loading.value = true;
+      mountedThree().then(async () => {
+        // await setModelType('groutBase');
+        await setModelType('bertaiBase');
+        loading.value = false;
+        timer = null;
+      });
+    });
+    onUnmounted(() => {
+      destroy();
+      removeCamera();
+      if (timer) {
+        clearTimeout(timer);
+        timer = undefined;
+      }
+    });
+  </script>
+  <style lang="less" scoped>
+    @import '/@/design/theme.less';
+    @import '/@/design/vent/modal.less';
+    @ventSpace: zxm;
+  
+    @{theme-deepblue} {
+      .monitor-container {
+        --box-shadow: #316b92;
+        --border-color: #0a80fad4;
+      }
+    }
+  
+    .monitor-container {
+      --box-shadow: #0099b8;
+      --border-color: #00baffd4;
+      position:relative;
+      width: 100%;
+      height: 100%;
+      // height: 550px;
+      // border: 1px solid #fff;
+      margin-top: 80px;
+    //   display: flex;
+    //   justify-content: space-between;
+      // justify-content: center;
+      padding: 0 5px;
+  
+      .header-box {
+        position:absolute;
+        bottom:20px;
+        left:50%;
+        transform:translate(-50%,0%);
+        // margin: 50px 15px 0px 15px;
+  
+        .header-container {
+          height: auto;
+          display: flex;
+          flex-direction: row;
+          justify-content: center;
+          color: #fff;
+          box-shadow: 0 0 30px var(--box-shadow) inset;
+          margin-top: 500px;
+        }
+  
+        .device-title {
+          width: 130px;
+          text-align: center;
+          border-top: 1px solid var(--border-color);
+          border-left: 1px solid var(--border-color);
+          line-height: 46px;
+          color: var(--vent-table-action-link);
+          background-color: #00bbff21;
+          backdrop-filter: blur(5px);
+        }
+  
+        .device-detail {
+          text-align: center;
+  
+          &:first-child {
+            background-color: #00bbff11;
+          }
+  
+          &:last-child {
+            .device-val,
+            .device-title {
+              border-right: 1px solid var(--border-color);
+            }
+          }
+  
+          .device-val {
+            line-height: 36px;
+            border-top: 1px solid var(--border-color);
+            border-left: 1px solid var(--border-color);
+  
+            &:last-child {
+              border-bottom: 1px solid var(--border-color);
+            }
+          }
+        }
+      }
+  
+      .lr-box {
+        height: 100%;
+        display: flex;
+        flex-direction: column;
+        position: relative;
+        // overflow: hidden;
+        z-index: 9999;
+        pointer-events: auto;
+        overflow-y: auto;
+        overflow-x: hidden;
+      }
+  
+      .area-box {
+        width: 335px;
+        margin-top: 50px;
+  
+        .input-item {
+          display: flex;
+          justify-content: space-between;
+          align-items: center;
+          padding: 4px 8px;
+          margin: 6px 0;
+          background-image: linear-gradient(to right, #39deff15, #3977e500);
+  
+          .title {
+            width: 200px;
+          }
+  
+          .title-auto {
+            width: auto;
+          }
+  
+          .input-value {
+            width: 80px;
+            height: 28px;
+            line-height: 28px !important;
+            background: transparent !important;
+            border-color: #228da2 !important;
+            color: #fff !important;
+          }
+  
+          .value {
+            width: 100px;
+            color: #00d8ff;
+            padding-right: 20px;
+          }
+  
+          .unit {
+            width: 80px;
+          }
+        }
+      }
+  
+      .item {
+        width: 305px;
+        height: 450px;
+        position: relative;
+        border-radius: 5px;
+        margin-top: 10px;
+        margin-bottom: 0px;
+        pointer-events: auto;
+        color: #fff;
+        // overflow: hidden;
+  
+        &:first-child {
+          margin-top: 0px;
+        }
+  
+        .base-title {
+          color: #fff;
+          margin-bottom: 8px;
+          padding-left: 10px;
+          position: relative;
+          font-size: 16px;
+  
+          &::after {
+            content: '';
+            position: absolute;
+            display: block;
+            width: 4px;
+            height: 12px;
+            top: 7px;
+            left: 0px;
+            background: #45d3fd;
+            border-radius: 4px;
+          }
+        }
+  
+        .monitor-item {
+          width: 100%;
+          display: flex;
+          flex-direction: row;
+          flex-wrap: wrap;
+  
+          .state-item {
+            width: 50%;
+            padding: 5px;
+            display: flex;
+            align-items: center;
+            justify-content: space-between;
+  
+            .state-title {
+              width: 100px;
+              color: #ffffffdd;
+              flex: 9;
+              font-size: 14px;
+  
+              .unit {
+                // color: #ffffffbb;
+              }
+            }
+  
+            .state-val {
+              flex: 1;
+              color: #e4a300;
+              margin-right: 5px;
+              text-align: right;
+              font-size: 14px;
+            }
+          }
+        }
+  
+        .signal-box {
+          margin: 5px 0;
+          display: flex;
+          align-items: center;
+  
+          .signal-title {
+            color: #7af5ff;
+            margin: 0 5px;
+          }
+  
+          &:last-child {
+            margin-right: 0px;
+          }
+        }
+  
+        .list-item {
+          padding: 0 10px;
+          display: flex;
+          justify-content: space-between;
+          align-items: center;
+  
+          .item-data-key {
+            color: #ffffff99;
+          }
+        }
+  
+        .item-data-box {
+          color: #fff;
+  
+          .state-icon {
+            display: inline-block;
+            width: 12px;
+            height: 12px;
+            border-radius: 12px;
+          }
+  
+          .open {
+            border: 5px solid #133a56;
+            background: #4ecb73;
+          }
+  
+          .close {
+            border: 5px solid #192961;
+            background: #6d7898;
+          }
+        }
+      }
+  
+      .item-l {
+        width: 100%;
+  
+        .monitor-box {
+          width: 100%;
+  
+          .parameter-title {
+            position: relative;
+            width: 100%;
+            height: 14px;
+            margin-top: 10px;
+  
+            .icon,
+            span {
+              position: absolute;
+              top: -10px;
+            }
+          }
+  
+          .group-parameter-title {
+            background-image: linear-gradient(to right, #39a3ff50, #39a3ff00);
+  
+            .icon {
+              left: -12px;
+              top: -17px;
+            }
+  
+            span {
+              left: 18px;
+            }
+  
+            .item-col {
+              background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
+            }
+          }
+  
+          .device-parameter-title {
+            background-image: linear-gradient(to right, #3df6ff40, #3df6ff00);
+  
+            .icon {
+              left: -10px;
+              top: -14px;
+            }
+  
+            span {
+              left: 18px;
+            }
+  
+            .item-col {
+              background-image: linear-gradient(to right, #3df6ff10, #3df6ff00);
+            }
+          }
+        }
+      }
+  
+      .signal-round {
+        display: inline-block;
+        width: 8px;
+        height: 8px;
+        border-radius: 50%;
+        // margin: 0 10px;
+        margin: 0 5px;
+        position: relative;
+  
+        &::after {
+          display: block;
+          content: '';
+          position: absolute;
+          width: 12px;
+          height: 12px;
+          top: -2px;
+          left: -2px;
+          border-radius: 50%;
+        }
+      }
+  
+      .signal-round-gry {
+        background-color: #858585;
+  
+        &::after {
+          background-color: #85858544;
+          box-shadow: 0 0 1px 1px #85858599;
+        }
+      }
+  
+      .signal-round-run {
+        background-color: #67fc00;
+  
+        &::after {
+          background-color: #67fc0044;
+          box-shadow: 0 0 1px 1px #c6ff77;
+        }
+      }
+  
+      .signal-round-warning {
+        background-color: #e9170b;
+  
+        &::after {
+          background-color: #e9170b44;
+          box-shadow: 0 0 1px 1px #e9170b;
+        }
+      }
+    }
+  
+    :deep(.@{ventSpace}-tabs-tabpane-active) {
+      overflow: auto;
+    }
+  
+    .input-box {
+      display: flex;
+      align-items: center;
+      padding-left: 10px;
+  
+      .input-title {
+        color: #73e8fe;
+        width: auto;
+      }
+  
+      .@{ventSpace}-input-number {
+        border-color: #ffffff88 !important;
+      }
+  
+      margin-right: 10px;
+    }
+  </style>
+  

+ 105 - 3
src/views/vent/monitorManager/groutMonitor/grout.data.ts

@@ -174,6 +174,51 @@ export const deviceMonitorListLt = [
     ],
   },
 ];
+//哈拉沟
+//lxh
+export const deviceMonitorListHlg = [
+  {
+    title: '第一档',
+    dataList: [
+      {
+        title: '故障代码',
+        code: 'Fault1',
+      },
+      {
+        title: '警告代码',
+        code: 'AlarmCode1',
+      },
+    ],
+  },
+
+  {
+    title: '第二档',
+    dataList: [
+      {
+        title: '故障代码',
+        code: 'Fault2',
+      },
+      {
+        title: '警告代码',
+        code: 'AlarmCode2',
+      },
+    ],
+  },
+  {
+    title: '第三档',
+    dataList: [
+      {
+        title: '故障代码',
+        code: 'Fault3',
+      },
+      {
+        title: '警告代码',
+        code: 'AlarmCode3',
+      },
+    ],
+  },
+ 
+];
 //lxh
 export const preFanMonitorData = [
   {
@@ -333,7 +378,60 @@ export const groutFanMonitorData = [
     unit: '',
   },
 ];
-
+//哈拉沟
+export const groutFanMonitorDataHlg = [
+  {
+    title: '设备故障',
+    code: 'Fault',
+    unit: 'signal',
+  },
+  {
+    title: '设备警告',
+    code: 'AlarmCode',
+    unit: 'signal',
+  },
+  {
+    title: '设备运行',
+    code: 'Running',
+    unit: 'signal',
+  },
+  {
+    title: '电机当前转速',
+    code: 'MainDriverRotioPer',
+    unit: '',
+  },
+  {
+    title: '变频器输出频率(Hz)',
+    code: 'Frequency',
+    unit: '',
+  },
+  {
+    title: '变频器输出电流(A)',
+    code: 'VFDExitCurrent',
+    unit: '',
+  },
+  {
+    title: '变频器输出电压(V)',
+    code: 'DCBusVoltage',
+    unit: '',
+  },
+  {
+    title: '变频器输出功率(KW)',
+    code: 'Power',
+    unit: '',
+  },
+  {
+    title: '环境温度(℃)',
+    code: 'ModuleTemp',
+    unit: '',
+  },
+  {
+    title: '黄泥液位',
+    code: 'Level',
+    unit: '',
+  },
+ 
+];
 export const warningConfig = reactive({
   header: ['设备名称', '预警信息', '时间'],
   data: [
@@ -656,9 +754,13 @@ export function getMonitorComponent() {
     case 'sdmtjtltmk': //柳塔
       groutHome = defineAsyncComponent(() => import('./components/groutHomelt.vue'));
       return groutHome;
+      case 'sdmtjthlgmk': //哈拉沟
+      groutHome = defineAsyncComponent(() => import('./components/groutHomehlg.vue'));
+      return groutHome;
     default:
-      groutHome = defineAsyncComponent(() => import('./components/groutHomeHjt.vue'));
-      // groutHome = defineAsyncComponent(() => import('./components/groutHomelt.vue'));
+      // groutHome = defineAsyncComponent(() => import('./components/groutHomeHjt.vue'));
+      // groutHome = defineAsyncComponent(() => import('./components/groutHomeJj.vue'));
+      groutHome = defineAsyncComponent(() => import('./components/groutHomehlg.vue'));
       return groutHome;
   }
 }