Quellcode durchsuchen

瓦斯抽采泵界面及接口提交

lxh vor 11 Monaten
Ursprung
Commit
62bf31800f

+ 137 - 0
src/views/vent/monitorManager/gasPumpMonitor/components/ceshi.json

@@ -0,0 +1,137 @@
+{
+    "success": true,
+    "message": "",
+    "code": 200,
+    "result": {
+        "cmd": "monitordata",
+        "msgTxt": [
+            {
+                "datalist": [
+                    {
+                        "msgType": null,
+                        "deviceID": "1775327220752187394",
+                        "strname": "31煤地下瓦斯泵站",
+                        "strinstallpos": "31煤地下瓦斯泵站",
+                        "fsectarea": "null",
+                        "stationname": "31煤瓦斯泵站",
+                        "stationtype": "redis",
+                        "deviceType": "pump_under_31",
+                        "typeName": "31煤地下瓦斯泵站",
+                        "netStatus": 1,
+                        "warnFlag": 0,
+                        "warnLevel": 0,
+                        "warnLevel_str": "正常",
+                        "warnTime": null,
+                        "readTime": "2024-04-03 09:00:43",
+                        "warnDes": "",
+                        "frontGateOpenCtrl": null,
+                        "rearGateOpenCtrl": null,
+                        "readData": {
+                            "SubmarinePump1_MOT4_Ia": "0",
+                            "SubmarinePump2_MOT2_Ia": "0",
+                            "CentrifugalPump1_GVL1_OpenDegree": "100.0",
+                            "sign": "0",
+                            "T102_HighVoltSwitch_Current": "0",
+                            "CentrifugalPump1_MOT1_AvgVoltage": "618.0",
+                            "SubmarinePump2_MOT2_Uab": "1121",
+                            "CentrifugalPump2_FlowSensor2_InputFlux": "0.05",
+                            "CentrifugalPump2_MOT_FrontAxleTemp": "14.84",
+                            "T102_HighVoltSwitch_CBStatus": "1",
+                            "PressureSensor2_Pressure": "-10.38",
+                            "CentrifugalPump2_PU_CtrlMode": "0",
+                            "CentrifugalPump2_VFD_Status": "0",
+                            "CentrifugalPump1_PU_StateWord": "12",
+                            "CentrifugalPump1_PU_CtrlMode": "0",
+                            "CentrifugalPump1_FlowSensor2_InputFlux": "2.53",
+                            "CentrifugalPump2_PU_Temp": "15.0",
+                            "CentrifugalPump2_LiquidLevelSensor3_Level": "344.0",
+                            "SubmarinePump2_MOT3_Uab": "1121",
+                            "CentrifugalPump1_LiquidLevelSensor1_Level": "369.0",
+                            "SubmarinePump1_MOT1_Ia": "3",
+                            "T101_LowVoltSwitch_CBStatus": "1",
+                            "SubmarinePump1_MOT3_Ia": "0",
+                            "CentrifugalPump2_GVL1_OpenDegree": "0.0",
+                            "CentrifugalPump2_VFD_CtrlMode": "0",
+                            "SubmarinePump1_MOT4_Uab": "1140",
+                            "CentrifugalPump1_VFD_CtrlMode": "1.0",
+                            "CentrifugalPump2_FlowSensor1_InputFlux": "0.05",
+                            "CtrlMode": "0.0",
+                            "SubmarinePump2_MOT4_Uab": "1121",
+                            "CentrifugalPump1_VFD_Current": "156.0",
+                            "VFD_GasConcentration1": "0.64",
+                            "VFD_GasConcentration2": "0.08",
+                            "SubmarinePump1_MOT3_Uab": "1140",
+                            "CentrifugalPump1_LiquidLevelSensor2_Level": "344.0",
+                            "CentrifugalPump2_GVL2_OpenDegree": "0.0",
+                            "CentrifugalPump2_VFD_Frequency": "0.0",
+                            "CentrifugalPump1_FlowSensor1_InputFlux": "2.53",
+                            "SubmarinePump2_PU1_Status1": "0",
+                            "CentrifugalPump2_VFD_Current": "0.0",
+                            "CentrifugalPump2_LiquidLevelSensor2_Level": "353.0",
+                            "SubmarinePump1_PU1_Status1": "1",
+                            "SubmarinePump1_MOT2_Ia": "0",
+                            "SubmarinePump1_MOT1_Uab": "1140",
+                            "CentrifugalPump1_FlowSensor3_InputFlux": "0.0",
+                            "CentrifugalPump2_LiquidLevelSensor1_Level": "346.0",
+                            "CentrifugalPump1_GVL3_Status": "0.0",
+                            "CentrifugalPump2_GVL3_Status": "0.0",
+                            "CentrifugalPump1_GVL4_Status": "0.0",
+                            "CentrifugalPump2_GVL4_Status": "0.0",
+                            "PressureSensor1_Pressure": "-10.0",
+                            "CentrifugalPump1_LiquidLevelSensor3_Level": "413.0",
+                            "CentrifugalPump2_VFD_DCBusVoltage": "1177.0",
+                            "CentrifugalPump1_VFD_Frequency": "27.0",
+                            "CentrifugalPump1_GVL2_OpenDegree": "100.0",
+                            "GVL_OpenDegree": "60.0",
+                            "CentrifugalPump1_PU_Temp": "26.77",
+                            "SubmarinePump1_MOT2_Uab": "1140",
+                            "TrackRobot_PipeCO": "0.0",
+                            "CentrifugalPump2_PU_StateWord": "116",
+                            "CentrifugalPump2_MOT1_AvgVoltage": "0.0",
+                            "CentrifugalPump1_VFD_DCBusVoltage": "1133.0",
+                            "SubmarinePump2_MOT3_Ia": "0",
+                            "CentrifugalPump2_GEA_Temp": "15.0",
+                            "CentrifugalPump1_GEA_Temp": "35.17",
+                            "T102_HighVoltSwitch_SysVoltage": "10487",
+                            "T101_LowVoltSwitch_SysVoltage": "1232",
+                            "SubmarinePump2_MOT1_Ia": "0",
+                            "T102_LowVoltSwitch_SysVoltage": "1218",
+                            "CentrifugalPump1_VFD_Status": "1",
+                            "SubmarinePump2_PU2_Status1": "0",
+                            "T102_LowVoltSwitch_Current": "0",
+                            "CentrifugalPump1_MOT_FrontAxleTemp": "33.25",
+                            "T101_HighVoltSwitch_Current": "8",
+                            "VFD_CavityTemp": "18.0",
+                            "CentrifugalPump2_FlowSensor3_InputFlux": "0.05",
+                            "T101_LowVoltSwitch_Current": "70",
+                            "SubmarinePump1_PU2_Status1": "0",
+                            "FlowSensor_InputFlux": "237.94",
+                            "SubmarinePump2_MOT4_Ia": "0",
+                            "SubmarinePump2_MOT1_Uab": "1121",
+                            "isRun": "-2",
+                            "T101_HighVoltSwitch_CBStatus": "1",
+                            "T102_LowVoltSwitch_CBStatus": "1",
+                            "T101_HighVoltSwitch_SysVoltage": "10646"
+                        },
+                        "readDataDes": null,
+                        "summaryHour": [],
+                        "summaryDay": [],
+                        "history": [],
+                        "dayhistory": [],
+                        "totalInfo": null,
+                        "sign": null,
+                        "cameras": [],
+                        "links": [],
+                        "other1": null,
+                        "other2": null,
+                        "other3": null,
+                        "remarkInfo": null,
+                        "linkInfo": null
+                    }
+                ],
+                "type": "pump_under_31"
+            }
+        ]
+    },
+    "timestamp": 1712106043720
+}

+ 604 - 0
src/views/vent/monitorManager/gasPumpMonitor/components/gasPumpHomeNew.vue

@@ -0,0 +1,604 @@
+<template>
+    <div class="monitor-container">
+        <!-- <div id="FlowSensor" class="FlowSensor-box" style="position: absolute; display: none">
+            <div class="elementContent" v-if="deviceType == 'pump_under'">
+                <fourBorderBg>
+                    <template v-for="(item, index) in modelMonitor" :key="index">
+                        <div class="gas-monitor-row">
+                            <div class="title">{{ item.title }}</div>
+                            <div class="value">{{ selectData[item.code] ? selectData[item.code] : '-' }}</div>
+                        </div>
+                    </template>
+</fourBorderBg>
+</div>
+</div> -->
+        <div v-if="selectData['netStatus'] == 0" class="device-state">网络断开</div>
+        <div class="lr left-box">
+            <div class="left-container">
+                <div class="monitor-box">
+                    <ventBox1>
+                        <template #title>
+                            <div>瓦斯泵</div>
+                        </template>
+                        <template #container>
+                            <div v-for="key in 2" :key="key">
+                                <div class="parameter-title group-parameter-title">
+                                    <SvgIcon class="icon" size="14" name="pulp-title" /><span>{{ key }}#变频器</span>
+                                </div>
+                                <div class="input-box">
+                                    <div v-for="(item, index) in pumpMonitorDataNew" class="input-item" :key="index">
+                                        <div class="title">{{ item.title }}:</div>
+                                        <template v-if="item.type !== 'sign' && item.type !== 'warning'">
+                                            <div class="value">{{
+            selectData && selectData[item[`code${key-1}`]]
+                ? formatNum(selectData[item[`code${key-1}`]]) : '-'
+        }}</div>
+                                        </template>
+                                        <template v-else>
+                                            <div class="value">
+                                                <span :class="{
+                'signal-round': true,
+                'signal-round-run': item.type === 'sign' && selectData[item[`code${key-1}`]] == '1',
+                'signal-round-gry': selectData[item[`code${key-1}`]] == '0',
+                'signal-round-warning': item.type === 'warning' && selectData[item[`code${key-1}`]] == '1',
+            }"></span>
+                                            </div>
+                                        </template>
+                                    </div>
+                                </div>
+                            </div>
+                        </template>
+                    </ventBox1>
+
+                    <ventBox1 class="vent-margin-t-10">
+                        <template #title>
+                            <div>水泵</div>
+                        </template>
+                        <template #container>
+                            <div v-for="key in 2" :key="key">
+                                <div class="parameter-title group-parameter-title">
+                                    <SvgIcon class="icon" size="14" name="pulp-title" /><span>{{ key }}#水泵</span>
+                                </div>
+                                <div class="input-box">
+                                    <div v-for="(item, index) in waterPumpDataNew" class="input-item" :key="index">
+                                        <div class="title">{{ item.title }}:</div>
+                                        <template v-if="item.type !== 'sign'">
+                                            <div class="value">{{
+            selectData && selectData[item[`code${key-1}`]]
+                ? formatNum(selectData[item[`code${key-1}`]])
+                : '-'
+        }}</div>
+                                        </template>
+                                        <template v-else>
+                                            <div class="value">
+                                                <span :class="{
+                'signal-round': true,
+                'signal-round-run': selectData[item[`code${key-1}`]],
+                'signal-round-gry': selectData[item[`code${key-1}`]] == '0',
+            }"></span>
+                                            </div>
+                                        </template>
+                                    </div>
+                                </div>
+                            </div>
+                        </template>
+                    </ventBox1>
+                    <ventBox1 class="vent-margin-t-10">
+                        <template #title>
+                            <div>xxx</div>
+                        </template>
+                        <template #container>
+                            <div v-for="key in 2" :key="key">
+                                <div class="parameter-title group-parameter-title">
+                                    <SvgIcon class="icon" size="14" name="pulp-title" /><span>{{ key }}#xxx</span>
+                                </div>
+                                <div class="input-box">
+                                    <div v-for="(item, index) in dewateringPumpDataNew" class="input-item" :key="index">
+                                        <div class="title">{{ item.title }}:</div>
+                                        <template v-if="item.type !== 'sign'">
+                                            <div class="value">{{
+            selectData && selectData[item[`code${key-1}`]]
+                ? formatNum(selectData[item[`code${key-1}`]])
+                : '-'
+        }}</div>
+                                        </template>
+                                        <template v-else>
+                                            <div class="value">
+                                                <span :class="{
+                'signal-round': true,
+                'signal-round-run': selectData[item[`code${key-1}`]],
+                'signal-round-gry': selectData[item[`code${key-1}`]] == '0',
+            }"></span>
+                                            </div>
+                                        </template>
+                                    </div>
+                                </div>
+                            </div>
+                        </template>
+                    </ventBox1>
+                </div>
+            </div>
+        </div>
+        <div class="lr right-box">
+            <div class="item-box sensor-container">
+                <ventBox1 class="vent-margin-t-10">
+                    <template #title>
+                        <div>xxxx</div>
+                    </template>
+                    <template #container>
+                        <div v-for="key in 2" :key="key">
+                            <div class="parameter-title group-parameter-title">
+                                <SvgIcon class="icon" size="14" name="pulp-title" /><span>{{ key }}#xxxx</span>
+                            </div>
+                            <div class="input-box">
+                                <div v-for="(item, index) in otherPumpDataNew" class="input-item" :key="index">
+                                    <div class="title">{{ item.title }}:</div>
+                                    <template v-if="item.type !== 'sign'">
+                                        <div class="value">{{
+            selectData && selectData[item[`code${key-1}`]]
+                ? formatNum(selectData[item[`code${key-1}`]])
+                : '-'
+        }}</div>
+                                    </template>
+                                    <template v-else>
+                                        <div class="value">
+                                            <span :class="{
+                              'signal-round': true,
+                              'signal-round-run': selectData[item[`code${key-1}`]],
+                              'signal-round-gry': selectData[item[`code${key-1}`]] == '0',
+                            }"></span>
+                                        </div>
+                                    </template>
+                                </div>
+                            </div>
+                        </div>
+                    </template>
+                </ventBox1>
+            </div>
+        </div>
+        <div ref="playerRef" class="player-box"></div>
+    </div>
+    <DetailModal @register="register" :device-type="deviceType" :device-id="deviceId" />
+    <PasswordModal :modal-is-show="passwordModalIsShow" modal-title="密码检验" :modal-type="handlerType"
+        @handle-ok="handleOK" @handle-cancel="handleCancel" />
+</template>
+
+<script setup lang="ts">
+import { ref, onMounted, onUnmounted, reactive, defineProps, watch, inject, nextTick, onBeforeUnmount } from 'vue';
+import ventBox1 from '/@/components/vent/ventBox1.vue';
+import { setModelType } from '../gasPump.threejs';
+import ceshi from './ceshi.json'
+import {
+    stateWarningHeader,
+    valveWarningState,
+    pumpMonitorDataNew,
+    waterPumpDataNew,
+    dewateringPumpDataNew,
+    otherPumpDataNew,
+    // modelMonitor,
+    valveCtrlType,
+} from '../gasPump.data';
+import { list } from '../gasPump.api';
+import { SvgIcon } from '/@/components/Icon';
+import { formatNum } from '/@/utils/ventutil';
+import DetailModal from './DetailModal.vue';
+import { useModal } from '/@/components/Modal';
+import { deviceControlApi } from '/@/api/vent/index';
+import PasswordModal from '../../comment/components/PasswordModal.vue';
+import { message } from 'ant-design-vue';
+// import fourBorderBg from '/@/components/vent/fourBorderBg.vue';
+import { useCamera } from '/@/hooks/system/useCamera';
+
+const globalConfig = inject('globalConfig');
+
+const props = defineProps({
+    deviceId: {
+        type: String,
+        require: true,
+    },
+    deviceType: {
+        type: String,
+        require: true,
+    },
+});
+const [register, { openModal }] = useModal();
+const loading = ref(false);
+const passwordModalIsShow = ref(false);
+const handlerType = ref('');
+const playerRef = ref();
+
+// 监测数据
+const selectData = reactive({});
+
+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) {
+                        const data = await getDataSource(props.deviceId);
+                        Object.assign(selectData, data);
+                    }
+                    if (timer) {
+                        timer = null;
+                    }
+                    resolve(null);
+                    await getMonitor();
+                    loading.value = false;
+                },
+                flag ? 0 : 1000
+            );
+        });
+    }
+}
+
+async function getDataSource(systemID) {
+    const res = await list({ devicetype: props.deviceType, ids: systemID });
+    const result={}
+    res.msgTxt.forEach(el=>{
+        Object.assign(result,el['datalist'][0],el['datalist'][0].readData)
+    })
+    console.log(result,'result--------------')
+    return result;
+}
+
+function handler(passWord, paramcode) {
+    let value = '';
+    if (paramcode == 'ykjdqh') {
+        value = selectData['ykjdqh'] == '1' ? '2' : '1';
+    }
+    if (paramcode == 'jxmsqh') {
+        value = selectData['jxmsqh'] == '1' ? '2' : '1';
+    }
+    const data = {
+        deviceid: selectData['deviceID'],
+        devicetype: selectData['deviceType'],
+        paramcode: paramcode,
+        password: passWord,
+        value: value,
+    };
+    deviceControlApi(data)
+        .then((res) => {
+            if (globalConfig.History_Type == 'remote') {
+                message.success('指令已下发至生产管控平台成功!');
+            } else {
+                message.success('指令已下发成功!');
+            }
+        })
+        .catch((err) => {
+            message.success('控制异常');
+        });
+}
+
+function changeCtr(e) {
+    if (e.target.value == 1) {
+        // 就地
+        handlerType.value = 'jxmsqh';
+    } else if (e.target.value == 2) {
+        // 远程
+        handlerType.value = 'jxmsqh';
+    }
+    passwordModalIsShow.value = true;
+}
+
+function changeMode(e) {
+    if (e.target.value == 1) {
+        // 检修开
+        handlerType.value = 'ykjdqh';
+    } else if (e.target.value == 2) {
+        // 检修关
+        handlerType.value = 'ykjdqh';
+    }
+    passwordModalIsShow.value = true;
+}
+
+function handlerFn(paramcode) {
+    handlerType.value = paramcode;
+    passwordModalIsShow.value = true;
+}
+
+function handleOK(passWord, handlerState) {
+    handler(passWord, handlerState);
+    passwordModalIsShow.value = false;
+    handlerType.value = '';
+}
+
+function handleCancel() {
+    passwordModalIsShow.value = false;
+    handlerType.value = '';
+}
+
+
+watch(
+    () => props.deviceType,
+    () => {
+        nextTick(async () => {
+            if (props.deviceType == 'pump_over') {
+                setModelType('gasPump');
+            } else if (props.deviceType == 'pump_under') {
+                setModelType('gasPumpUnder');
+            }
+        });
+    }
+);
+watch(
+    () => props.deviceId,
+    async (deviceID) => {
+        removeCamera();
+        if (deviceID) await getCamera(deviceID, playerRef.value);
+    }
+);
+
+onMounted(async () => {
+    timer = null;
+    await getMonitor(true);
+    if (selectData && selectData['deviceID']) await getCamera(selectData['deviceID'], playerRef.value);
+});
+
+onBeforeUnmount(() => {
+    removeCamera();
+});
+
+onUnmounted(() => {
+    removeCamera();
+    if (timer) {
+        clearTimeout(timer);
+        timer = undefined;
+    }
+});
+</script>
+<style lang="less" scoped>
+@import '/@/design/vent/modal.less';
+@import '../../comment/less/workFace.less';
+@ventSpace: zxm;
+
+// .elementContent {
+//     :deep(.main-container) {
+//         display: flex;
+//         flex-wrap: wrap;
+//         width: 690px;
+//         padding: 10px 12px 10px 15px;
+//         border: 1px solid #d3e1ff33;
+//         background-color: #061c2a55;
+//         box-shadow: 0 0 15px #3b567f55;
+//         background-color: #38383833;
+
+//         .gas-monitor-row {
+//             display: flex;
+//             flex-direction: row;
+//             flex-wrap: wrap;
+//             color: #fff;
+//             line-height: 32px;
+
+//             .title {
+//                 width: 250px;
+//                 color: #baeaff;
+//             }
+
+//             .value {
+//                 width: 80px;
+//                 color: #efae05;
+//             }
+//         }
+//     }
+// }
+
+.device-state {
+    width: 100%;
+    position: absolute;
+    top: 20px;
+    color: #e90000;
+    display: flex;
+    justify-content: center;
+    font-size: 20px;
+}
+
+.lr {
+    margin-top: 0 !important;
+}
+
+.left-box {
+    width: 360px !important;
+    direction: rtl;
+    overflow-y: auto;
+    overflow-x: hidden;
+    height: calc(100% - 60px);
+    margin-top: 30px !important;
+
+    .left-container {
+        direction: ltr;
+    }
+}
+
+.right-box {
+    width: 350px !important;
+    overflow-y: auto;
+    overflow-x: hidden;
+
+    .environment-monitor {
+        .item {
+            flex: 1;
+            margin: 0 5px;
+
+            .title {
+                color: #7ae5ff;
+                text-align: center;
+                margin-bottom: 2px;
+            }
+
+            .num {
+                width: 100%;
+                height: 30px;
+                text-align: center;
+                border-top: 2px solid #50c8fc;
+                border-radius: 4px;
+                background-image: linear-gradient(#2e4d5955, #3780b499, #2e465955);
+            }
+        }
+    }
+
+    .pool-box {
+        width: 327px;
+        height: 65px;
+        padding: 0 5px;
+        background: url('/@/assets/images/vent/pump1.png') no-repeat;
+        background-size: cover;
+        background-origin: content-box;
+        margin-top: 2px;
+
+        .num {
+            color: aqua;
+        }
+
+        .center {
+            padding-right: 5px;
+        }
+    }
+}
+
+.player-box {
+    position: absolute;
+    //   height: 100%;
+    //   width: 100%;
+    //   padding: 0 20px 0 20px;
+    z-index: 9999;
+    display: flex;
+    align-items: end;
+    //   bottom: 80px;
+    top: 30px;
+    left: 380px;
+
+    :deep(#LivePlayerBox) {
+        display: flex;
+        justify-content: end;
+    }
+}
+
+.control-group {
+    display: flex;
+    // justify-content: space-around;
+    flex-wrap: wrap;
+    margin: 4px 0;
+
+    .control-item {
+        display: flex;
+        flex-direction: column;
+        justify-content: center;
+        align-items: center;
+        padding: 1px 10px;
+
+        .control-item-title {
+            color: #a6dce9;
+            position: relative;
+        }
+
+        .control-item-state {
+            width: 86px;
+            height: 31px;
+            background: url('/@/assets/images/vent/control-switch-bg1.png');
+            display: flex;
+            justify-content: center;
+            align-items: center;
+            color: #fff;
+        }
+
+        .button-box {
+            position: relative;
+            padding: 5px;
+            border: 1px transparent solid;
+            background-clip: border-box;
+            border-radius: 5px;
+            margin-left: 8px;
+        }
+
+        .a-button {
+            pointer-events: auto;
+        }
+
+        &::v-deep .a-button--mini {
+            padding: 6px 10px;
+        }
+
+        &::v-deep .a-button--mini.is-round {
+            padding: 6px 10px;
+        }
+    }
+}
+
+.input-box {
+    width: calc(100%);
+    display: flex;
+    flex-direction: row !important;
+    flex-wrap: wrap !important;
+
+    .input-item {
+        width: calc(50% - 8px);
+        padding: 0 2px;
+
+        &:nth-child(2n) {
+            margin-left: 4px;
+        }
+    }
+}
+
+.btn-group {
+    display: flex;
+    justify-content: space-around;
+
+    .btn-item {
+        width: 82px;
+        text-align: center;
+    }
+}
+
+.top-btn {
+    .btn-group {
+        margin-bottom: 8px;
+
+        .btn-item {
+            width: calc(50% - 16px);
+            margin: 0 4px;
+        }
+    }
+
+    .control-item {
+        margin-left: 10px;
+        margin-bottom: 8px;
+        display: flex;
+
+        .control-title {
+            width: 150px;
+            color: #73e8fe;
+        }
+    }
+}
+
+.state-header {
+    display: flex;
+    color: #73e8fe;
+
+    .header-item {
+        width: 25%;
+        text-align: center;
+    }
+}
+
+.device-row {
+    display: flex;
+    margin-top: 10px;
+
+    .state {
+        width: 25%;
+        text-align: center;
+        font-size: 13px;
+    }
+}
+
+:deep(.@{ventSpace}-tabs-tabpane-active) {
+    overflow: auto;
+}
+</style>

+ 341 - 0
src/views/vent/monitorManager/gasPumpMonitor/gasPump.data.ts

@@ -1,5 +1,346 @@
 import { reactive } from 'vue';
 
+//lxh
+export const pumpMonitorDataNew=[
+  {
+    title: '电机电流',
+    code0: 'CentrifugalPump1_VFD_Current',
+    code1:'CentrifugalPump2_VFD_Current',
+    type: '',
+  },
+  {
+    title: '电机频率',
+    code0: 'CentrifugalPump1_VFD_Frequency',
+    code1:'CentrifugalPump2_VFD_Frequency',
+    type: '',
+  },
+  {
+    title: '输入电压',
+    code0: 'CentrifugalPump1_VFD_DCBusVoltage',
+    code1: 'CentrifugalPump2_VFD_DCBusVoltage',
+    type: '',
+  },
+  {
+    title: '状态',
+    code0: 'CentrifugalPump1_VFD_Status',
+    code1: 'CentrifugalPump2_VFD_Status',
+    type: '',
+  },
+  {
+    title: '除尘控制',
+    code0: 'CentrifugalPump1_VFD_CtrlMode',
+    code1: 'CentrifugalPump2_VFD_CtrlMode',
+    type: '',
+  },
+  {
+    title: '除尘流量',
+    code0: 'CentrifugalPump1_FlowSensor3_InputFlux',
+    code1: 'CentrifugalPump2_FlowSensor3_InputFlux',
+    type: '',
+  },
+  {
+    title: '控制模式',
+    code0: 'CentrifugalPump1_PU_CtrlMode',
+    code1: 'CentrifugalPump2_PU_CtrlMode',
+    type: '',
+  },
+ 
+];
+//lxh
+export const waterPumpDataNew = [
+  {
+    title: '进气阀开度',
+    code0: 'CentrifugalPump1_GVL1_OpenDegree',
+    code1: 'CentrifugalPump2_GVL1_OpenDegree',
+    type: '',
+  },
+  {
+    title: '排气阀开度',
+    code0: 'CentrifugalPump1_GVL2_OpenDegree',
+    code1: 'CentrifugalPump2_GVL2_OpenDegree',
+    type: '',
+  },
+  {
+    title: '进水阀状态',
+    code0: 'CentrifugalPump1_GVL4_Status',
+    code1:'CentrifugalPump2_GVL4_Status',
+    type: '',
+  },
+  {
+    title: '排水阀状态',
+    code0: 'CentrifugalPump1_GVL3_Status',
+    code1: 'CentrifugalPump2_GVL3_Status',
+    type: '',
+  },
+  {
+    title: '水泵1电压',
+    code0: 'SubmarinePump1_MOT1_Uab',
+    code1: 'SubmarinePump2_MOT1_Uab',
+    type: '',
+  },
+  {
+    title: '水泵1电流',
+    code0: 'SubmarinePump1_MOT1_Ia',
+    code1: 'SubmarinePump2_MOT1_Ia',
+    type: '',
+  },
+  {
+    title: '水泵2电压',
+    code0: 'SubmarinePump1_MOT2_Uab',
+    code1: 'SubmarinePump2_MOT2_Uab',
+    type: '',
+  },
+  {
+    title: '水泵2电流',
+    code0: 'SubmarinePump1_MOT2_Ia',
+    code1: 'SubmarinePump2_MOT2_Ia',
+    type: '',
+  },
+  {
+    title: '水泵1状态',
+    code0: 'SubmarinePump1_PU1_Status1',
+    code1: 'SubmarinePump2_PU1_Status1',
+    type: '',
+  },
+  {
+    title: '水泵2状态',
+    code0: 'SubmarinePump1_PU2_Status1',
+    code1: 'SubmarinePump2_PU2_Status1',
+    type: '',
+  },
+  {
+    title: '高压泵电流',
+    code0: 'SubmarinePump1_MOT3_Ia',
+    code1: 'SubmarinePump2_MOT3_Ia',
+    type: '',
+  },
+  {
+    title: '高压泵电压',
+    code0: 'SubmarinePump1_MOT3_Uab',
+    code1: 'SubmarinePump2_MOT3_Uab',
+    type: '',
+  },
+  {
+    title: '加药泵电流',
+    code0: 'SubmarinePump1_MOT4_Ia',
+    code1: 'SubmarinePump2_MOT4_Ia',
+    type: '',
+  },
+  {
+    title: '加药泵电压',
+    code0: 'SubmarinePump1_MOT4_Uab',
+    code1: 'SubmarinePump2_MOT4_Uab',
+    type: '',
+  },
+];
+//lxh
+export const dewateringPumpDataNew=[
+  {
+    title: '流量1',
+    code0: 'CentrifugalPump1_FlowSensor1_InputFlux',
+    code1: 'CentrifugalPump2_FlowSensor1_InputFlux',
+    type: '',
+  },
+  {
+    title: '流量2',
+    code0: 'CentrifugalPump1_FlowSensor2_InputFlux',
+    code1: 'CentrifugalPump2_FlowSensor2_InputFlux',
+    type: '',
+  },
+  {
+    title: '泵轴温',
+    code0: 'CentrifugalPump1_PU_Temp',
+    code1: 'CentrifugalPump2_PU_Temp',
+    type: '',
+  },
+  {
+    title: '减速机轴温',
+    code0: 'CentrifugalPump1_GEA_Temp',
+    code1: 'CentrifugalPump2_GEA_Temp',
+    type: '',
+  },
+  {
+    title: '水封液位1',
+    code0: 'CentrifugalPump1_LiquidLevelSensor1_Level',
+    code1: 'CentrifugalPump2_LiquidLevelSensor1_Level',
+    type: '',
+  },
+  {
+    title: '水封液位2',
+    code0: 'CentrifugalPump1_LiquidLevelSensor2_Level',
+    code1: 'CentrifugalPump2_LiquidLevelSensor2_Level',
+    type: '',
+  },
+  {
+    title: '水封液位3',
+    code0: 'CentrifugalPump1_LiquidLevelSensor3_Level',
+    code1: 'CentrifugalPump2_LiquidLevelSensor3_Level',
+    type: '',
+  },
+  {
+    title: '电机轴温',
+    code0: 'CentrifugalPump1_MOT_FrontAxleTemp',
+    code1: 'CentrifugalPump2_MOT_FrontAxleTemp',
+    type: '',
+  },
+  {
+    title: '电机电压',
+    code0: 'CentrifugalPump1_MOT1_AvgVoltage',
+    code1: 'CentrifugalPump2_MOT1_AvgVoltage',
+    type: '',
+  },
+]
+//lxh
+export const otherPumpDataNew=[
+  {
+    title: '控制状态',
+    code0: 'FeedSG101_ControlState',
+    code1: 'FeedSG102_ControlState',
+    type: 'sign',
+  },
+  {
+    title: '健康状态',
+    code0: 'FeedSG101_Healthy',
+    code1: 'FeedSG102_Healthy',
+    type: 'sign',
+  },
+  {
+    title: '联动准备好',
+    code0: 'CentrifugalPump1_PU_InterlockReady',
+    code1: 'CentrifugalPump2_PU_InterlockReady',
+    type: 'sign',
+  },
+  {
+    title: '联动启动失败',
+    code0: 'CentrifugalPump1_PU_InterlockStartFail',
+    code1: 'CentrifugalPump2_PU_InterlockStartFail',
+    type: 'sign',
+  },
+  {
+    title: '联动启动中',
+    code0: 'CentrifugalPump1_PU_InterlockStarting',
+    code1: 'CentrifugalPump2_PU_InterlockStarting',
+    type: 'sign',
+  },
+  {
+    title: '联动停止中',
+    code0: 'CentrifugalPump1_PU_InterlockStoping',
+    code1: 'CentrifugalPump2_PU_InterlockStoping',
+    type: 'sign',
+  },
+  {
+    title: '后轴超温报警',
+    code0: 'CentrifugalPump1_MOT_BackAxleOverTempAlarm',
+    code1: 'CentrifugalPump2_MOT_BackAxleOverTempAlarm',
+    type: 'sign',
+  },
+  {
+    title: 'PLC通讯状态',
+    code0: 'Starter1_PLCState',
+    code1: 'Starter2_PLCState',
+    type: 'sign',
+  },
+  {
+    title: '低压电压',
+    code0: 'T101_LowVoltSwith_SysVoltage',
+    code1: 'T102_LowVoltSwith_SysVoltage',
+    type: '',
+  },
+  {
+    title: '低压电流',
+    code0: 'T101_LowVoltSwith_Current',
+    code1: 'T102_LowVoltSwith_Current',
+    type: '',
+  },
+  {
+    title: '高压电压',
+    code0: 'T101_HighVoltSwitch_SysVoltage',
+    code1: 'T102_HighVoltSwitch_SysVoltage',
+    type: '',
+  },
+  {
+    title: '高压电流',
+    code0: 'T101_HighVoltSwitch_Current',
+    code1: 'T102_HighVoltSwitch_Current',
+    type: '',
+  },
+  {
+    title: '高压温度',
+    code0: 'T101_HighVoltSwitch_Temp',
+    code1: 'T102_HighVoltSwitch_Temp',
+    type: '',
+  },
+ 
+  {
+    title: 'Uca',
+    code0: 'FeedSG101_Uca',
+    code1: 'FeedSG102_Uca',
+    type: '',
+  },
+  {
+    title: 'C相绕组温度',
+    code0: 'CentrifugalPump1_MOT_PhaseCTemp',
+    code1: 'CentrifugalPump2_MOT_PhaseCTemp',
+    type: '',
+  },
+  {
+    title: 'B相超温报警',
+    code0: 'CentrifugalPump1_MOT_PhaseBTempAlarm',
+    code1: 'CentrifugalPump2_MOT_PhaseBTempAlarm',
+    type: 'sign',
+  },
+  {
+    title: 'B相绕组温度',
+    code0: 'CentrifugalPump1_MOT_PhaseBTemp',
+    code1: 'CentrifugalPump2_MOT_PhaseBTemp',
+    type: '',
+  },
+  {
+    title: 'A相超温报警',
+    code0: 'CentrifugalPump1_MOT_PhaseATempAlarm',
+    code1: 'CentrifugalPump2_MOT_PhaseATempAlarm',
+    type: '',
+  },
+  {
+    title: 'A相绕组温度',
+    code0: 'CentrifugalPump1_MOT_PhaseATemp',
+    code1: 'CentrifugalPump2_MOT_PhaseATemp',
+    type: '',
+  },
+  {
+    title: '前轴温度',
+    code0: 'CentrifugalPump1_MOT_FrontAxleTemp',
+    code1: 'CentrifugalPump2_MOT_FrontAxleTemp',
+    type: '',
+  },
+  {
+    title: '前轴超温报警',
+    code0: 'CentrifugalPump1_MOT_FrontAxleOverTempAlarm',
+    code1: 'CentrifugalPump2_MOT_FrontAxleOverTempAlarm',
+    type: '',
+  },
+  {
+    title: '后轴温度',
+    code0: 'CentrifugalPump1_MOT_BackAxleTemp',
+    code1: 'CentrifugalPump2_MOT_BackAxleTemp',
+    type: '',
+  },
+  
+  {
+    title: '计时器开',
+    code0: 'Starter1_RunTimerOpen',
+    code1: 'Starter2_RunTimerOpen',
+    type: '',
+  },
+  {
+    title: '计时器关',
+    code0: 'Starter1_RunTimerClose',
+    code1: 'Starter2_RunTimerClose',
+    type: '',
+  },
+]
+
+
 export const warningConfig = reactive({
   header: ['设备名称', '预警信息', '时间'],
   data: [

+ 2 - 1
src/views/vent/monitorManager/gasPumpMonitor/index.vue

@@ -30,7 +30,8 @@ import customHeader from '/@/components/vent/customHeader.vue';
 import { onBeforeMount, ref, onMounted, onUnmounted, reactive, toRaw } from 'vue';
 import { list } from './gasPump.api';
 import BottomMenu from '/@/views/vent/comment/components/bottomMenu.vue';
-import gasPumpHome from './components/gasPumpHome.vue';
+// import gasPumpHome from './components/gasPumpHome.vue';
+import gasPumpHome from './components/gasPumpHomeNew.vue';
 import gasPumpHistory from './components/gasPumpHistory.vue';
 import gasPumpHandleHistoryVue from './components/gasPumpHandleHistory.vue';
 import gasPumpAlarmHistory from './components/gasPumpAlarmHistory.vue';