|
@@ -1,62 +1,117 @@
|
|
|
<template>
|
|
|
<div id="compressor3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"></div>
|
|
|
- <div id="compressorCss3D" class="threejs-Object-CSS"
|
|
|
+ <div v-show="monitorDataGroupFlag == 1" id="compressorCss3D" class="threejs-Object-CSS compressorCss3D-box"
|
|
|
style="width: 100%; height: 100%; position: absolute; pointer-events: none; overflow: hidden; z-index: 2; top: 0px; left: 0px">
|
|
|
- <a-spin :spinning="loading" />
|
|
|
- <div v-for="groupNum in monitorDataGroupNum" :key="groupNum" class="modal-monitor">
|
|
|
+ <!-- <a-spin :spinning="loading" /> -->
|
|
|
+ <div v-for="(groupNum, index) in monitorDataGroupNum1" :key="index" class="modal-monitor">
|
|
|
<fourBorderBg :class="`kyj${groupNum}`" :id="`nitrogenMonitor${groupNum}`">
|
|
|
<div class="title">{{ groupNum }}号空压机 </div>
|
|
|
<div class="monitor-item">
|
|
|
- <span class="monitor-title">排气压力:</span>
|
|
|
- <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1]['compressExhaustPressF1'] ?
|
|
|
- monitorData[groupNum - 1]['compressExhaustPressF1'] : '-' }}</span><span class="unit">Mpa</span></span>
|
|
|
+ <span class="monitor-title">机头温度:</span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[`PRE${groupNum}_CPR_HeadTemp`] ?
|
|
|
+ monitorData[`PRE${groupNum}_CPR_HeadTemp`] : '-' }}</span><span class="unit"></span>℃</span>
|
|
|
</div>
|
|
|
<div class="monitor-item">
|
|
|
- <span class="monitor-title">分离压力:</span>
|
|
|
- <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1]['compressSeparatePressF1'] ?
|
|
|
- monitorData[groupNum - 1]['compressSeparatePressF1'] : '-' }}</span><span class="unit">Mpa</span></span>
|
|
|
+ <span class="monitor-title">冷却温度:</span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[`PRE${groupNum}_CPR_CoolantTemp`] ?
|
|
|
+ monitorData[`PRE${groupNum}_CPR_CoolantTemp`] : '-' }}</span><span class="unit">℃</span></span>
|
|
|
</div>
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">排气温度:</span>
|
|
|
- <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1]['exhaustTemp'] ? monitorData[groupNum
|
|
|
- - 1]['exhaustTemp'] : '-' }}</span><span class="unit">℃</span></span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[`PRE${groupNum}_CPR_ExhaustTemp`] ? monitorData[`PRE${groupNum}_CPR_ExhaustTemp`] : '-' }}</span><span class="unit">℃</span></span>
|
|
|
</div>
|
|
|
<div class="signal-item">
|
|
|
<div class="signal"><span class="monitor-title">运行信号</span><span
|
|
|
- :class="{ 'signal-round': true, 'signal-round-run': monitorData[groupNum - 1]['compressRunSigF1'], 'signal-round-gry': !monitorData[groupNum - 1]['compressRunSigF1'] }"></span>
|
|
|
+ :class="{ 'signal-round': true, 'signal-round-run': monitorData[`PRE${groupNum}_MOT_Running`] == '1', 'signal-round-gry': monitorData[`PRE${groupNum}_MOT_Running`] != '1' }"></span>
|
|
|
</div>
|
|
|
- <div class="signal"><span class="monitor-title">加载信号</span><span
|
|
|
- :class="{ 'signal-round': true, 'signal-round-run': monitorData[groupNum - 1]['compressLoadSigF1'], 'signal-round-gry': !monitorData[groupNum - 1]['compressLoadSigF1'] }"></span>
|
|
|
+ <div class="signal"><span class="monitor-title">故障信号</span><span
|
|
|
+ :class="{ 'signal-round': true, 'signal-round-warning': monitorData[`PRE${groupNum}_MOT_Fault`] == '1', 'signal-round-gry': monitorData[`PRE${groupNum}_MOT_Fault`] != '1' }"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</fourBorderBg>
|
|
|
<fourBorderBg :class="`cqg${groupNum}`" :id="`cqgMonitor${groupNum}`">
|
|
|
- <div class="title">{{ cqgs[groupNum - 1] }}</div>
|
|
|
+ <div class="title">{{ groupNum }}号储气罐 </div>
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">气囊温度:</span>
|
|
|
- <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1]['airReceiverTemp'] ?
|
|
|
- monitorData[groupNum - 1]['airReceiverTemp'] : '-' }}</span><span class="unit">℃</span></span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[`PRE${groupNum}_VLS_Temp`] ?
|
|
|
+ monitorData[`PRE${groupNum}_VLS_Temp`] : '-' }}</span><span class="unit">℃</span></span>
|
|
|
</div>
|
|
|
- <div class="monitor-item">
|
|
|
+ <!-- <div class="monitor-item">
|
|
|
<span class="monitor-title">气囊压力<span class="unit"></span>:</span>
|
|
|
- <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1]['airReceiverPress'] ?
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1] && monitorData[groupNum - 1]['airReceiverPress'] ?
|
|
|
monitorData[groupNum - 1]['airReceiverPress'] : '-' }}</span><span class="unit">Mpa</span></span>
|
|
|
</div>
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">气囊流量<span class="unit"></span>:</span>
|
|
|
- <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1]['airReceiverFlow'] ?
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1] && monitorData[groupNum - 1]['airReceiverFlow'] ?
|
|
|
monitorData[groupNum - 1]['airReceiverFlow'] : '-' }}</span><span class="unit">m³/k</span></span>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</fourBorderBg>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div v-show="monitorDataGroupFlag == 2" id="compressorCss3D1" class="threejs-Object-CSS compressorCss3D-box"
|
|
|
+ style="width: 100%; height: 100%; position: absolute; pointer-events: none; overflow: hidden; z-index: 3; top: 0px; left: 0px">
|
|
|
+ <div v-for="(groupNum, index) in monitorDataGroupNum2" :key="index" class="modal-monitor">
|
|
|
+ <fourBorderBg :class="`kyj${groupNum}`" :id="`nitrogenMonitor${groupNum}`">
|
|
|
+ <div class="title">{{ groupNum }}号空压机 </div>
|
|
|
+ <div class="monitor-item">
|
|
|
+ <span class="monitor-title">机头温度:</span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[`PRE${groupNum}_CPR_HeadTemp`] ?
|
|
|
+ monitorData[`PRE${groupNum}_CPR_HeadTemp`] : '-' }}</span><span class="unit"></span>℃</span>
|
|
|
+ </div>
|
|
|
+ <div class="monitor-item">
|
|
|
+ <span class="monitor-title">冷却温度:</span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[`PRE${groupNum}_CPR_CoolantTemp`] ?
|
|
|
+ monitorData[`PRE${groupNum}_CPR_CoolantTemp`] : '-' }}</span><span class="unit">℃</span></span>
|
|
|
+ </div>
|
|
|
+ <div class="monitor-item">
|
|
|
+ <span class="monitor-title">排气温度:</span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[`PRE${groupNum}_CPR_ExhaustTemp`] ? monitorData[`PRE${groupNum}_CPR_ExhaustTemp`] : '-' }}</span><span class="unit">℃</span></span>
|
|
|
+ </div>
|
|
|
+ <div class="signal-item">
|
|
|
+ <div class="signal"><span class="monitor-title">运行信号</span><span
|
|
|
+ :class="{ 'signal-round': true, 'signal-round-run': monitorData[`PRE${groupNum}_MOT_Running`] == '1', 'signal-round-gry': monitorData[`PRE${groupNum}_MOT_Running`] != '1' }"></span>
|
|
|
+ </div>
|
|
|
+ <div class="signal"><span class="monitor-title">故障信号</span><span
|
|
|
+ :class="{ 'signal-round': true, 'signal-round-warning': monitorData[`PRE${groupNum}_MOT_Fault`] == '1', 'signal-round-gry': monitorData[`PRE${groupNum}_MOT_Fault`] != '1' }"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </fourBorderBg>
|
|
|
+ <fourBorderBg :class="`cqg${groupNum}`" :id="`cqgMonitor${groupNum}`">
|
|
|
+ <div class="title">{{ groupNum }}号储气罐 </div>
|
|
|
+ <div class="monitor-item">
|
|
|
+ <span class="monitor-title">气囊温度:</span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[`PRE${groupNum}_VLS_Temp`] ?
|
|
|
+ monitorData[`PRE${groupNum}_VLS_Temp`] : '-' }}</span><span class="unit">℃</span></span>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="monitor-item">
|
|
|
+ <span class="monitor-title">气囊压力<span class="unit"></span>:</span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1] && monitorData[groupNum - 1]['airReceiverPress'] ?
|
|
|
+ monitorData[groupNum - 1]['airReceiverPress'] : '-' }}</span><span class="unit">Mpa</span></span>
|
|
|
+ </div>
|
|
|
+ <div class="monitor-item">
|
|
|
+ <span class="monitor-title">气囊流量<span class="unit"></span>:</span>
|
|
|
+ <span class="monitor-val"><span class="val">{{ monitorData[groupNum - 1] && monitorData[groupNum - 1]['airReceiverFlow'] ?
|
|
|
+ monitorData[groupNum - 1]['airReceiverFlow'] : '-' }}</span><span class="unit">m³/k</span></span>
|
|
|
+ </div> -->
|
|
|
+ </fourBorderBg>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="nitrogen-home">
|
|
|
+ <div style="position: absolute; color: #fff; top: 30px; pointer-events: auto; display: flex;">
|
|
|
+ <span class="tab-button-box" :class="{'tab-button-box-active': monitorDataGroupFlag == 1}" @click="setMonitorGroupNum(monitorDataGroupNum1, 1)">压风系统1</span>
|
|
|
+ <span class="tab-button-box" :class="{ 'tab-button-box-active': monitorDataGroupFlag == 2 }" @click="setMonitorGroupNum(monitorDataGroupNum2, 2)">压风系统2</span>
|
|
|
+ </div>
|
|
|
+ <div class="total-data">
|
|
|
+ <div class="item">总流量(m³/min):<span class="val">{{ monitorData[`PreSys_TotalOutPipeFlow${monitorDataGroupFlag}`] ? monitorData[`PreSys_TotalOutPipeFlow${monitorDataGroupFlag}`] : '-' }}</span></div>
|
|
|
+ <div class="item">总压力(bar):<span class="val">{{ monitorData[`PreSys_TotalOutPipePre${monitorDataGroupFlag}`] ? monitorData[`PreSys_TotalOutPipePre${monitorDataGroupFlag}`] : '-' }}</span></div>
|
|
|
+ </div>
|
|
|
<div class="nitrogen-container">
|
|
|
<div class="top-box">
|
|
|
<!-- 左边监测数据 -->
|
|
|
<div class="lr-box left-box">
|
|
|
<div class="left-container">
|
|
|
- <div class="item item-l" v-for="groupNum in monitorDataGroupNum" :key="groupNum">
|
|
|
+ <div class="item item-l" v-for="(groupNum, index) in monitorDataGroupNum" :key="index">
|
|
|
<div class="monitor-box">
|
|
|
<ventBox1>
|
|
|
<template #title>
|
|
@@ -66,13 +121,13 @@
|
|
|
<div class="state-item" v-for="(data, index) in showMonitorData" :key="index">
|
|
|
<div class="item-col">
|
|
|
<span class="state-title">{{ Object.values(data)[0] }} :</span>
|
|
|
- <span class="state-val">{{ (monitorData.length > 0 && monitorData[groupNum - 1][Object.keys(data)[0]])
|
|
|
- >= 0 ? monitorData[groupNum - 1][Object.keys(data)[0]] : '-' }}</span>
|
|
|
+ <span class="state-val">{{ (monitorData[Object.keys(data)[0].replace('PRE', 'PRE'+ groupNum)])
|
|
|
+ >= 0 ? Number(monitorData[Object.keys(data)[0].replace('PRE', 'PRE' + groupNum)]) : '-' }}</span>
|
|
|
</div>
|
|
|
<div class="item-col">
|
|
|
<span class="state-title">{{ Object.values(data)[1] }} :</span>
|
|
|
- <span class="state-val">{{ (monitorData.length > 0 && monitorData[groupNum - 1][Object.keys(data)[1]])
|
|
|
- >= 0 ? monitorData[groupNum - 1][Object.keys(data)[1]] : '-' }}</span>
|
|
|
+ <span class="state-val">{{ (monitorData[Object.keys(data)[0].replace('PRE', 'PRE' + groupNum)])
|
|
|
+ >= 0 ? Number(monitorData[Object.keys(data)[0].replace('PRE', 'PRE' + groupNum)]) : '-' }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -82,7 +137,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 右边控制状态 -->
|
|
|
- <div class="lr-box right-box">
|
|
|
+ <div class="lr-box right-box" style="display: none;">
|
|
|
<ventBox1>
|
|
|
<template #title>
|
|
|
<div>远程控制</div>
|
|
@@ -151,71 +206,17 @@
|
|
|
<script lang="ts" setup name="nitrogenHome">
|
|
|
import { onMounted, onUnmounted, ref, watch } from 'vue'
|
|
|
import fourBorderBg from '../../../comment/components/fourBorderBg.vue'
|
|
|
-import { mountedThree, destroy } from '../nitrogen.threejs'
|
|
|
+import { mountedThree, destroy, setModelType, clearCssText } from '../nitrogen.threejs'
|
|
|
import { list } from '../nitrogen.api'
|
|
|
import ventBox1 from '/@/components/vent/ventBox1.vue'
|
|
|
+import { monitorDataGroupNum1, monitorDataGroupNum2, airCompressorState, showMonitorData, monitorData } from '../nitrogen.data'
|
|
|
|
|
|
const loading = ref(true)
|
|
|
-
|
|
|
+const monitorDataGroupNum = ref(monitorDataGroupNum1)
|
|
|
+const monitorDataGroupFlag = ref(1)
|
|
|
const kyjs = ['1号空压机', '2号空压机', '3号空压机', '4号空压机'];
|
|
|
const cqgs = ['1号储气罐', '2号储气罐', '3号储气罐', '4号储气罐'];
|
|
|
|
|
|
-const monitorDataGroupNum = ref(3);
|
|
|
-
|
|
|
-const airCompressorState = ref([
|
|
|
- {
|
|
|
- id: '',
|
|
|
- compressRunSigF1: false,
|
|
|
- controlModel: false
|
|
|
- },
|
|
|
- {
|
|
|
- id: '',
|
|
|
- compressRunSigF1: false,
|
|
|
- controlModel: false
|
|
|
- },
|
|
|
- {
|
|
|
- id: '',
|
|
|
- compressRunSigF1: false,
|
|
|
- controlModel: false
|
|
|
- },
|
|
|
- {
|
|
|
- id: '',
|
|
|
- compressRunSigF1: false,
|
|
|
- controlModel: false
|
|
|
- }
|
|
|
-]);
|
|
|
-const showMonitorData = [
|
|
|
- {
|
|
|
- supVolt1: '电流A(A)',
|
|
|
- supVolt2: '电流B(A)',
|
|
|
- },
|
|
|
- {
|
|
|
- supVolt3: '电流C(A)',
|
|
|
- current: '电源电压(V)',
|
|
|
- },
|
|
|
- {
|
|
|
- shock1: '震动X(mm/s)',
|
|
|
- shock2: '震动Y(mm/s)',
|
|
|
- },
|
|
|
- {
|
|
|
- shock3: '震动Z(mm/s)',
|
|
|
- noise: '噪声',
|
|
|
- },
|
|
|
- {
|
|
|
- ambTempCol: '环境温度(℃)',
|
|
|
- },
|
|
|
-];
|
|
|
-const monitorData = ref(new Array(4).fill({
|
|
|
- strName: '空压机',
|
|
|
- compressGroupName: '',
|
|
|
- compressExhaustPressF1: '-',
|
|
|
- compressSeparatePressF1: '-',
|
|
|
- compressHostTempF1: '-',
|
|
|
- compressCrewTempF1: '-',
|
|
|
- compressRunTimeF1: '-',
|
|
|
- controlModel: 'LOC'
|
|
|
-}));
|
|
|
-
|
|
|
// https获取监测数据
|
|
|
let timer: null | NodeJS.Timeout = null;
|
|
|
async function getMonitor(flag?) {
|
|
@@ -231,21 +232,166 @@ async function getMonitor(flag?) {
|
|
|
};
|
|
|
|
|
|
async function getDataSource() {
|
|
|
- const res = await list({ devicetype: 'pressurefan', pagetype: 'normal' });
|
|
|
- const dataSource = res.msgTxt[0].datalist || [];
|
|
|
- dataSource.forEach((data, index) => {
|
|
|
- const item = data.readData;
|
|
|
- Object.assign(item, data);
|
|
|
- item.compressRunSigF1 = item.compressRunSigF1 ? true : false
|
|
|
- airCompressorState.value[index].id = item.id
|
|
|
- airCompressorState.value[index].compressRunSigF1 = item.compressRunSigF1
|
|
|
- airCompressorState.value[index].controlModel = item.controlModel === 'LOC' ? true : false
|
|
|
- monitorData.value[index] = item
|
|
|
- });
|
|
|
- monitorDataGroupNum.value = monitorData.value.length
|
|
|
+ const res = await list({ devicetype: 'forcFan', pagetype: 'normal' });
|
|
|
+ let dataSource = res.msgTxt[0].datalist[0];
|
|
|
+ // dataSource =
|
|
|
+ // {
|
|
|
+ // "msgType": null,
|
|
|
+ // "deviceID": "1705212847586627592",
|
|
|
+ // "strname": "压风机系统",
|
|
|
+ // "strinstallpos": "压风机系统",
|
|
|
+ // "fsectarea": "null",
|
|
|
+ // "stationname": "压风机系统分站",
|
|
|
+ // "deviceType": "forcFan",
|
|
|
+ // "typeName": null,
|
|
|
+ // "netStatus": 1,
|
|
|
+ // "warnFlag": 0,
|
|
|
+ // "warnLevel": null,
|
|
|
+ // "warnLevel_str": null,
|
|
|
+ // "warnTime": null,
|
|
|
+ // "readTime": "2023-10-24 08:47:27",
|
|
|
+ // "warnDes": "",
|
|
|
+ // "frontGateOpenCtrl": null,
|
|
|
+ // "rearGateOpenCtrl": null,
|
|
|
+ // "readData": {
|
|
|
+ // "PRE1_MOT_PhaseATemp": "526",
|
|
|
+ // "PRE3_CPR_CoolantTemp": "12",
|
|
|
+ // "PRE4_CPR_HeadTemp": "13",
|
|
|
+ // "PRE2_MOT_PhaseATempAlarm": "0",
|
|
|
+ // "PRE5_MOT_Fault": "0",
|
|
|
+ // "PRE4_MOT_PhaseATempStop": "0",
|
|
|
+ // "PRE4_CPR_LoadPre": "65",
|
|
|
+ // "PRE5_CPR_LoadPre": "62",
|
|
|
+ // "PRE4_MOT_CtrlMode": "1",
|
|
|
+ // "PRE2_CPR_LoadorUnload": "1",
|
|
|
+ // "PRE3_MOT_PhaseBTemp": "133",
|
|
|
+ // "PRE1_CPR_ExhaustPre": "66",
|
|
|
+ // "PRE1_MOT_PhaseATempAlarm": "0",
|
|
|
+ // "PRE5_CPR_UnLoadPre": "69",
|
|
|
+ // "PRE4_MOT_PhaseATemp": "129",
|
|
|
+ // "PRE5_MOT_PhaseCTemp": "685",
|
|
|
+ // "PRE5_MOT_PhaseATemp": "681",
|
|
|
+ // "PRE5_VLS_Temp": "590",
|
|
|
+ // "PRE1_CPR_LoadTime": "8344",
|
|
|
+ // "PRE2_CPR_LoadTime": "5553",
|
|
|
+ // "PRE4_CPR_LoadorUnload": "0",
|
|
|
+ // "PRE5_MOT_PhaseATempAlarm": "0",
|
|
|
+ // "PRE3_CPR_LoadTime": "4511",
|
|
|
+ // "PRE5_CPR_LoadTime": "6032",
|
|
|
+ // "PRE1_MOT_PhaseATempStop": "0",
|
|
|
+ // "PRE2_MOT_CompProtFault": "0",
|
|
|
+ // "PRE5_MOT_PhaseATempStop": "0",
|
|
|
+ // "PRE3_MOT_PhaseATempStop": "0",
|
|
|
+ // "PRE1_VLS_Temp": "436",
|
|
|
+ // "PRE2_CPR_ExhaustPre": "71",
|
|
|
+ // "PRE5_MOT_CtrlMode": "1",
|
|
|
+ // "PRE3_CPR_ExhaustTemp": "10",
|
|
|
+ // "PRE3_MOT_TotalRunTime": "5342",
|
|
|
+ // "P RE2_MOT_PhaseATemp": "541",
|
|
|
+ // "PRE4_MOT_PhaseCTemp": "130",
|
|
|
+ // "PRE4_MOT_PhaseATempAlarm": "0",
|
|
|
+ // "timestamp": "1698108447720",
|
|
|
+ // "PRE3_VLS_Temp": "219",
|
|
|
+ // "PRE1_HostorLoc": "0",
|
|
|
+ // "PRE2_MOT_Running": "1",
|
|
|
+ // "PRE1_CPR_LoadPre": "65",
|
|
|
+ // "PRE1_MOT_Running": "1",
|
|
|
+ // "PRE4_MOT_Fault": "0",
|
|
|
+ // "PRE2_CPR_LoadPre": "65",
|
|
|
+ // "PRE3_MOT_Running": "0",
|
|
|
+ // "PRE4_MOT_Running": "0",
|
|
|
+ // "PRE3_CPR_LoadPre": "65",
|
|
|
+ // "PRE1_MOT_CtrlMode": "1",
|
|
|
+ // "PRE3_MOT_CtrlMode": "1",
|
|
|
+ // "PRE3_CPR_LoadorUnload": "0",
|
|
|
+ // "PRE2_MOT_PhaseCTemp": "550",
|
|
|
+ // "PRE1_CPR_CoolantTemp": "71",
|
|
|
+ // "PRE1_MOT_PhaseBTemp": "539",
|
|
|
+ // "PRE3_MOT_PhaseATempAlarm": "0",
|
|
|
+ // "PRE5_MOT_Running": "1",
|
|
|
+ // "PRE1_MOT_Fault": "0",
|
|
|
+ // "PRE4_CPR_ExhaustPre": "66",
|
|
|
+ // "PRE4_CPR_CoolantTemp": "12",
|
|
|
+ // "PRE5_CPR_ExhaustTemp": "76",
|
|
|
+ // "PRE2_CPR_HeadTemp": "89",
|
|
|
+ // "PRE3_MOT_PhaseCTemp": "135",
|
|
|
+ // "PRE4_CPR_LoadTime": "5084",
|
|
|
+ // "sign": "0",
|
|
|
+ // "PRE1_CPR_UnLoadPre": "72",
|
|
|
+ // "PRE4_HostorLoc": "0",
|
|
|
+ // "PRE4_MOT_CompProtFault": "0",
|
|
|
+ // "PRE1_CPR_LoadorUnload": "1",
|
|
|
+ // "PRE3_CPR_ExhaustPre": "68",
|
|
|
+ // "PRE2_CPR_ExhaustTemp": "77",
|
|
|
+ // "PRE2_MOT_PhaseATempStop": "0",
|
|
|
+ // "PRE5_MOT_CompProtFault": "0",
|
|
|
+ // "PRE2_MOT_Fault": "0",
|
|
|
+ // "PRE5_MOT_PhaseBTemp": "676",
|
|
|
+ // "PRE3_MOT_PhaseATemp": "134",
|
|
|
+ // "PRE4_MOT_PhaseBTemp": "130",
|
|
|
+ // "PRE2_CPR_CoolantTemp": "66",
|
|
|
+ // "PRE3_HostorLoc": "0",
|
|
|
+ // "PRE4_MOT_TotalRunTime": "5104",
|
|
|
+ // "PRE1_MOT_TotalRunTime": "8416",
|
|
|
+ // "PRE3_MOT_CompProtFault": "0",
|
|
|
+ // "PRE3_MOT_Fault": "0",
|
|
|
+ // "PRE4_CPR_UnLoadPre": "72",
|
|
|
+ // "PRE1_CPR_HeadTemp": "97",
|
|
|
+ // "PRE2_HostorLoc": "0",
|
|
|
+ // "PRE2_MOT_PhaseBTemp": "562",
|
|
|
+ // "PRE3_CPR_HeadTemp": "13",
|
|
|
+ // "PRE2_MOT_TotalRunTime": "5586",
|
|
|
+ // "PRE5_CPR_HeadTemp": "95",
|
|
|
+ // "PRE3_CPR_UnLoadPre": "72",
|
|
|
+ // "PRE4_VLS_Temp": "166",
|
|
|
+ // "PRE5_CPR_CoolantTemp": "70",
|
|
|
+ // "PRE1_MOT_CompProtFault": "0",
|
|
|
+ // "PRE5_MOT_TotalRunTime": "7825",
|
|
|
+ // "PRE2_MOT_CtrlMode": "1",
|
|
|
+ // "PRE5_CPR_ExhaustPre": "68",
|
|
|
+ // "PRE1_MOT_PhaseCTemp": "544",
|
|
|
+ // "PRE5_CPR_LoadorUnload": "1",
|
|
|
+ // "PRE2_CPR_UnLoadPre": "72",
|
|
|
+ // "PRE4_CPR_ExhaustTemp": "11",
|
|
|
+ // "PRE2_VLS_Temp": "445",
|
|
|
+ // "isRun": "-2",
|
|
|
+ // "PRE5_HostorLoc": "0",
|
|
|
+ // "PRE1_CPR_ExhaustTemp": "68"
|
|
|
+ // },
|
|
|
+ // "readDataDes": null,
|
|
|
+ // "summaryHour": [],
|
|
|
+ // "summaryDay": [],
|
|
|
+ // "history": [],
|
|
|
+ // "totalInfo": null,
|
|
|
+ // "sign": null,
|
|
|
+ // "cameras": [],
|
|
|
+ // "links": [],
|
|
|
+ // "other1": null,
|
|
|
+ // "other2": null,
|
|
|
+ // "other3": null
|
|
|
+ // }
|
|
|
+ if(dataSource){
|
|
|
+ monitorData.value = Object.assign(dataSource, dataSource.readData);
|
|
|
+ }
|
|
|
+ // dataSource.forEach((data, index) => {
|
|
|
+ // const item = data.readData;
|
|
|
+ // Object.assign(item, data);
|
|
|
+ // item.compressRunSigF1 = item.compressRunSigF1 ? true : false
|
|
|
+ // airCompressorState.value[index].id = item.id
|
|
|
+ // airCompressorState.value[index].compressRunSigF1 = item.compressRunSigF1
|
|
|
+ // airCompressorState.value[index].controlModel = item.controlModel === 'LOC' ? true : false
|
|
|
+ // monitorData.value[index] = item
|
|
|
+ // });
|
|
|
+ // monitorDataGroupNum.value = monitorData.value.length
|
|
|
loading.value = false
|
|
|
};
|
|
|
|
|
|
+function setMonitorGroupNum(num, flag){
|
|
|
+
|
|
|
+ monitorDataGroupNum.value = num
|
|
|
+ monitorDataGroupFlag.value = flag
|
|
|
+}
|
|
|
+
|
|
|
function handlerDevice(data) {
|
|
|
// if (data.length < 1) return
|
|
|
// handleAirCompressor({ id: data.id, compressRunF1: data.compressRunSigF1 }).then(res => {
|
|
@@ -264,14 +410,21 @@ function handlerControlModel(data) {
|
|
|
|
|
|
}
|
|
|
|
|
|
-watch(monitorDataGroupNum, (newVal) => {
|
|
|
- if (newVal) {
|
|
|
- destroy()
|
|
|
- mountedThree(newVal)
|
|
|
+watch(monitorDataGroupFlag, (newVal) => {
|
|
|
+
|
|
|
+ if(newVal == 1){
|
|
|
+ setModelType('compressor1')
|
|
|
+ }
|
|
|
+ if (newVal == 2) {
|
|
|
+ setModelType('compressor2')
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
onMounted(async () => {
|
|
|
- await getMonitor(true)
|
|
|
+ mountedThree(monitorDataGroupNum1, monitorDataGroupNum2).then(async() => {
|
|
|
+ await getMonitor(true)
|
|
|
+ setModelType('compressor1')
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
onUnmounted(() => {
|
|
@@ -292,9 +445,26 @@ onUnmounted(() => {
|
|
|
height: 100%;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
+ position: relative;
|
|
|
+ .total-data{
|
|
|
+ position: absolute;
|
|
|
+ color: #e4cd00;
|
|
|
+ z-index: 9;
|
|
|
+ top: 50px;
|
|
|
+ right: 30px;
|
|
|
+ display: flex;
|
|
|
+ font-size: 18px;
|
|
|
+ .item{
|
|
|
+ margin-left: 30px;
|
|
|
+ .val{
|
|
|
+ color: #00d8ff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
-#compressorCss3D {
|
|
|
+.compressorCss3D-box {
|
|
|
.modal-monitor {
|
|
|
position: absolute;
|
|
|
left: 0px;
|
|
@@ -415,7 +585,7 @@ onUnmounted(() => {
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
pointer-events: none;
|
|
|
- top: 100px;
|
|
|
+ top: 60px;
|
|
|
.nitrogen-container {
|
|
|
width: 100%;
|
|
|
height: calc(100%);
|
|
@@ -786,4 +956,66 @@ onUnmounted(() => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-}</style>
|
|
|
+}
|
|
|
+.tab-button-box{
|
|
|
+ display: inline-block;
|
|
|
+ position: relative;
|
|
|
+ padding: 5px;
|
|
|
+ // border: 1px transparent solid;
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-left: 8px;
|
|
|
+ margin-right: 8px;
|
|
|
+ width: auto;
|
|
|
+ // height: 40px;
|
|
|
+ // border: 1px solid #65dbea;
|
|
|
+ height: 35px !important;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ color: #fff;
|
|
|
+ padding: 0 15px 5px 15px;
|
|
|
+ cursor: pointer;
|
|
|
+ &:hover {
|
|
|
+ background: linear-gradient(#2cd1ff55, #1eb0ff55);
|
|
|
+ }
|
|
|
+ &::before {
|
|
|
+ width: calc(100% - 6px);
|
|
|
+ height: 27px;
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ top: 3px;
|
|
|
+ right: 0;
|
|
|
+ left: 3px;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: -1;
|
|
|
+ border-radius: inherit; /*important*/
|
|
|
+ background: linear-gradient(#1fa6cb, #127cb5);
|
|
|
+ }
|
|
|
+ &::after {
|
|
|
+ width: calc(100% + 32px);
|
|
|
+ height: 10px;
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ top: 28px;
|
|
|
+ right: 0;
|
|
|
+ left: -16px;
|
|
|
+ bottom: 0;
|
|
|
+ z-index: -1;
|
|
|
+ border-radius: inherit; /*important*/
|
|
|
+ background: url('/@/assets/images/vent/short-light.png') no-repeat;
|
|
|
+ background-position: center;
|
|
|
+ background-size: 100%;
|
|
|
+ z-index: 999;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.tab-button-box-active {
|
|
|
+ border: 1px solid #66989e !important;
|
|
|
+ &:hover {
|
|
|
+ background: none !important;
|
|
|
+ }
|
|
|
+ &::before {
|
|
|
+ background: linear-gradient(#1fa6cbcc, #127cb5cc) !important;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|