| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759 |
- <template>
- <div class="monitor-container">
- <div
- v-if="deviceType?.startsWith('pump_under') && deviceProperty.modelMonitor.length > 0"
- id="FlowSensor"
- class="FlowSensor-box"
- style="position: absolute; display: none"
- >
- <!-- <div class="elementContent">
- <fourBorderBg>
- <div v-for="(item, index) in deviceProperty.modelMonitor" :key="index" class="gas-monitor-row">
- <div class="title">{{ item.title }}</div>
- <template v-if="item.type !== 'sign' && item.type !== 'warning'">
- <div class="value">{{ selectData[item.code] ? selectData[item.code] : '-' }}</div>
- </template>
- <template v-else>
- <div class="value">
- <span
- :class="{
- 'signal-round': true,
- 'signal-round-run': item.type === 'sign' && selectData[item.code] == '1',
- 'signal-round-gry': selectData[item.code] == '0' || !selectData[item.code],
- 'signal-round-warning': item.type === 'warning' && selectData[item.code] == '1',
- }"
- ></span>
- </div>
- </template>
- </div>
- </fourBorderBg>
- </div> -->
- <div class="elementContent" style="position: absolute; display: none">
- <div v-for="(tag, index) in modelMonitorTags" :key="index" :id="tag.domId" class="modal-monitor-box">
- <template v-if="selectData[tag.code]">
- <div class="title">{{ tag.title }}</div>
- <div
- v-if="tag.type == 'sign'"
- class="signal-round"
- :class="{ 'signal-round-gry': selectData[tag.code] != 1, 'signal-round-run': selectData[tag.code] == 1 }"
- ></div>
- <div v-else class="value">{{ selectData[tag.code] }}</div>
- </template>
- </div>
- </div>
- </div>
- <div v-if="selectData['netStatus'] == 0" class="device-state">网络断开</div>
- <div class="btn-group">
- <a-button v-if="deviceProperty.detailCtrl.length > 0" class="btn-item" type="primary" @click="openModal">瓦斯泵控制</a-button>
- </div>
- <div class="lr left-box">
- <div class="left-container">
- <div class="monitor-box">
- <template v-for="(device, leftIndex) in deviceProperty.leftMonitor" :key="leftIndex">
- <ventBox1 :class="{ 'vent-margin-t-10': leftIndex > 0 }">
- <template #title>
- <div>{{ device.title }}</div>
- </template>
- <template #container>
- <template v-for="(deviceChild, deviceChildIndex) in device.children" :key="deviceChildIndex">
- <div v-for="(deviceKey, deviceIndex) in deviceChild.key" :key="deviceIndex">
- <div v-if="deviceChild.key.length > 1" class="parameter-title group-parameter-title"
- ><SvgIcon class="icon" size="14" name="pulp-title" /><span>{{ deviceChild.childTitle[deviceIndex] }}</span></div
- >
- <div class="input-box">
- <div v-for="(item, index) in deviceChild.list" class="input-item" :key="index">
- <div
- :class="{
- 'w-280px': item.type == 'sign' || item.type == 'warning',
- title: item.type !== 'sign' && item.type !== 'warning',
- }"
- >{{ item.title }}:</div
- >
- <template v-if="item.type !== 'sign' && item.type !== 'warning'">
- <div class="value">{{
- selectData && selectData[deviceKey + item.code] ? formatNum(selectData[deviceKey + item.code], 1) : '-'
- }}</div>
- </template>
- <template v-else>
- <div class="value">
- <span
- :class="{
- 'signal-round': true,
- 'signal-round-run': item.type === 'sign' && selectData[deviceKey + item.code] == '1',
- 'signal-round-gry': selectData[deviceKey + item.code] == '0' || !selectData[deviceKey + item.code],
- 'signal-round-warning': item.type === 'warning' && selectData[deviceKey + item.code] == '1',
- }"
- ></span>
- </div>
- </template>
- </div>
- </div>
- </div>
- </template>
- </template>
- </ventBox1>
- </template>
- </div>
- </div>
- </div>
- <div class="lr right-box">
- <div class="item-box sensor-container">
- <ventBox1 class="">
- <template #title>
- <div>泵站监测详情</div>
- </template>
- <template #container>
- <ListItem
- v-for="(item, index) in deviceProperty.modelMonitor"
- :key="index"
- class="w-100% mb-5px"
- :value="selectData[item.code]"
- :label="item.title"
- label-width="250px"
- />
- </template>
- </ventBox1>
- <ventBox1 v-for="(device, rightIndex) in deviceProperty.rightMonitor" :key="rightIndex" class="vent-margin-t-10">
- <template #title>
- <div>{{ device.title }}</div>
- </template>
- <template #container>
- <div v-if="device.type == 'table'">
- <div class="state-header">
- <div class="header-item" v-for="(header, index) in device.stateHeader" :key="index">{{ header }}</div>
- </div>
- <div class="">
- <div v-for="(child, index) in device.children" :key="index">
- <div class="device-row" v-for="(valveKey, valveIndex) in child.key" :key="valveIndex">
- <div class="state">{{ child.childTitle[valveIndex] }} </div>
- <div class="state" v-for="(state, i) in device['list']" :key="i">
- <span v-if="state['dict']">{{
- state['dict'][selectData[valveKey + state.code]] ? state['dict'][selectData[valveKey + state.code]] : '-'
- }}</span>
- <span
- v-else
- :class="{
- 'signal-round': true,
- 'signal-round-run': selectData[selectData[valveKey + state.code]] == '1',
- 'signal-round-gry': selectData[selectData[valveKey + state.code]] != '1',
- }"
- ></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div v-else>
- <template v-for="(deviceChild, deviceChildIndex) in device.children" :key="deviceChildIndex">
- <div v-for="(deviceKey, deviceIndex) in deviceChild.key" :key="deviceIndex">
- <div v-if="deviceChild.key.length > 1" class="parameter-title group-parameter-title"
- ><SvgIcon class="icon" size="14" name="pulp-title" /><span>{{ deviceChild.childTitle[deviceIndex] }}</span></div
- >
- <div class="input-box">
- <div v-for="(item, index) in deviceChild.list" class="input-item" :key="index">
- <div
- :class="{ 'w-280px': item.type == 'sign' || item.type == 'warning', title: item.type !== 'sign' && item.type !== 'warning' }"
- >{{ item.title }}:</div
- >
- <template v-if="item.type !== 'sign' && item.type !== 'warning'">
- <div class="value">{{
- selectData && selectData[deviceKey + item.code] ? formatNum(selectData[deviceKey + item.code], 1) : '-'
- }}</div>
- </template>
- <template v-else>
- <div class="value">
- <span
- :class="{
- 'signal-round': true,
- 'signal-round-run': item.type === 'sign' && selectData[deviceKey + item.code] == '1',
- 'signal-round-gry': selectData[deviceKey + item.code] == '0' || !selectData[deviceKey + item.code],
- 'signal-round-warning': item.type === 'warning' && selectData[deviceKey + item.code] == '1',
- }"
- ></span>
- </div>
- </template>
- </div>
- </div>
- </div>
- </template>
- </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 { getMonitorData, devicePropertyType, getModelMonitorTags } from '../gasPump.data';
- // import { leftMonitor, rightMonitor, modelMonitor, detailCtrl } from '../gasPump.dataCc2_2';
- import { list } from '../gasPump.api';
- import { SvgIcon } from '/@/components/Icon';
- import { formatNum } from '/@/utils/ventutil';
- import DetailModal from './DetailModalCC.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';
- import ListItem from '@/views/vent/gas/components/list/listItem.vue';
- 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 deviceProperty = ref({
- leftMonitor: [] as devicePropertyType[],
- rightMonitor: [] as devicePropertyType[],
- modelMonitor: [] as devicePropertyType[],
- detailCtrl: [] as devicePropertyType[],
- });
- const modelMonitorTags = getModelMonitorTags();
- // 监测数据
- const selectData = 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) {
- const data = await getDataSource(props.deviceId);
- selectData.value = 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 res = {
- // cmd: 'monitordata',
- // msgTxt: [
- // {
- // datalist: [
- // {
- // msgType: null,
- // deviceID: '1773155914577469442',
- // strname: '22煤瓦斯泵站',
- // strinstallpos: '22煤瓦斯泵站',
- // fsectarea: 'null',
- // stationname: '22煤瓦斯泵站',
- // stationtype: 'redis',
- // deviceType: 'pump_under',
- // typeName: '地下瓦斯泵站',
- // netStatus: 1,
- // warnFlag: 0,
- // warnLevel: 0,
- // warnLevel_str: '正常',
- // syswarnLevel: null,
- // syswarnLevel_str: null,
- // syswarnLevel_des: null,
- // warnTime: null,
- // readTime: '2025-03-03 15:09:59',
- // warnDes: '',
- // frontGateOpenCtrl: null,
- // rearGateOpenCtrl: null,
- // readData: {
- // FeedSG101_Ib: '0',
- // Starter4_CloseAllow: '0',
- // FeedSG101_Ic: '0',
- // TemperatureSensor_TemperatureLowAlarm: '0',
- // SubmarinePump_MOT_AvgVoltage: '0',
- // VSL_LiquidLevelSensor_Level: '0',
- // GVL_CloseLimit: '0',
- // FeedSG102_Uca: '1242',
- // FeedSG102_CBStatus: '1',
- // Starter1_SwitchOffOutput: '0',
- // FeedSG101_Ia: '0',
- // CentrifugalPump2_GVL1_CloseLimit: '1',
- // Starter2_RunTimerOpen: '0',
- // Starter5_Uab: '0',
- // CentrifugalPump1_MOT_PhaseBTemp: '16',
- // CentrifugalPump2_GVL1_OpenFail: '0',
- // CentrifugalPump1_GVL1_CloseFail: '0',
- // CentrifugalPump2_GVL2_OnOutput: '0',
- // SubmarinePump2_MOT_Power: '0',
- // CentrifugalPump1_MOT_Ic: '0',
- // SubmarinePump2_MOT_AvgVoltage: '1121',
- // CentrifugalPump2_PU_InterlockReady: '1',
- // CentrifugalPump1_MOT_Ib: '0',
- // T101_HighVoltSwitch_Temp: '0',
- // CentrifugalPump2_PU_Healthy: '1',
- // CentrifugalPump1_PU_InterlockStarting: '0',
- // SubmarinePump2_PU_Healthy: '1',
- // CentrifugalPump1_PU_InterlockStoping: '0',
- // SubmarinePump2_MOT_OpenFail: '0',
- // CentrifugalPump2_GVL2_CloseFail: '0',
- // T101_LowVoltSwith_Current: '0',
- // CentrifugalPump2_GVL2_CtrlMode: '0',
- // Starter2_RunTimerClose: '0',
- // CentrifugalPump1_MOT_OpenFail: '0',
- // CentrifugalPump2_MOT_OpenFail: '0',
- // Starter2_SwitchOnOutput: '0',
- // SubmarinePump1_PU_Healthy: '1',
- // CentrifugalPump2_GVL2_CloseLimit: '1',
- // CentrifugalPump2_MOT_BackAxleOverTempAlarm: '1',
- // GVL_CloseFail: '0',
- // CentrifugalPump2_MOT_PhaseBTempAlarm: '0',
- // CentrifugalPump2_MOT_PhaseBTemp: '16',
- // CentrifugalPump2_GVL1_CloseFail: '0',
- // T102_CBStatus: '1',
- // SubmarinePump_MOT_OpenFail: '0',
- // FeedSG101_CBStatus: '0',
- // CentrifugalPump1_MOT_PhaseBTempAlarm: '0',
- // FanPre: '-5.0',
- // CentrifugalPump2_GVL2_OffOutput: '0',
- // Starter5_PLCState: '1',
- // CentrifugalPump1_GVL1_CloseLimit: '1',
- // FeedSG102_Healthy: '1',
- // PumpStopAlarm1: '1',
- // FeedSG101_ControlState: '0',
- // SubmarinePump_MOT_Power: '0',
- // Starter5_CloseAllow: '0',
- // CentrifugalPump2_GVL2_CloseReady: '1',
- // Starter2_SwitchOnNoReturn: '0',
- // CentrifugalPump2_PU_InterlockStoping: '0',
- // Starter5_SwitchOnNoReturn: '0',
- // T102_HighVoltSwitch_Temp: '49',
- // CentrifugalPump1_GVL1_OnOutput: '0',
- // Starter1_RunTimerClose: '0',
- // GVL_OpenLimit: '0',
- // CentrifugalPump1_MOT_BackAxleTemp: '870',
- // GVL_OpenFail: '1',
- // Starter1_CBStatus: '0',
- // CentrifugalPump1_GVL1_OpenLimit: '0',
- // CentrifugalPump2_GVL1_CtrlMode: '0',
- // CentrifugalPump1_GVL1_OffOutput: '0',
- // CentrifugalPump1_MOT_FrontAxleTemp: '870',
- // CentrifugalPump2_PU_InterlockStop: '0',
- // Starter4_SwitchOffOutput: '0',
- // CentrifugalPump2_GVL1_OnOutput: '0',
- // CentrifugalPump2_GVL2_OpenFail: '0',
- // CentrifugalPump2_PU_HMIStart: '0',
- // CentrifugalPump1_MOT_BackAxleOverTempAlarm: '1',
- // CentrifugalPump2_GVL2_OpenLimit: '0',
- // CentrifugalPump1_PU_InterlockStartFail: '0',
- // CentrifugalPump2_GVL2_Healthy: '0',
- // SubmarinePump2_MOT_Ic: '0',
- // SubmarinePump2_MOT_Ib: '0',
- // SubmarinePump2_MOT_Ia: '0',
- // Starter3_PLCState: '1',
- // CentrifugalPump1_GVL2_OffOutput: '0',
- // CentrifugalPump1_PU_Healthy: '0',
- // Starter4_SwitchOnOutput: '0',
- // FeedSG101_Uca: '0',
- // sign: '0',
- // T102_HighVoltSwitch_Current: '0',
- // CentrifugalPump1_MOT_PhaseATempAlarm: '2',
- // CentrifugalPump1_MOT_PhaseATemp: '16',
- // CentrifugalPump2_PU_InterlockStart: '0',
- // CentrifugalPump2_MOT_FrontAxleTemp: '870',
- // GVL_OnOutput: '1',
- // Starter3_CBStatus: '0',
- // CentrifugalPump1_GVL2_CtrlMode: '0',
- // SubmarinePump3_PU_Healthy: '1',
- // FeedSG102_ControlState: '1',
- // FeedSG101_Healthy: '0',
- // VSL_LiquidLevelSensor_HighWaterAlarm: '0',
- // CentrifugalPump1_GVL2_OpenFail: '0',
- // Starter5_OpenFail: '0',
- // Reset: '0',
- // GVL_OffOutput: '0',
- // Starter2_SwitchOffOutput: '0',
- // Starter5_SwitchOffOutput: '0',
- // CentrifugalPump1_GVL2_OnOutput: '0',
- // FeedSG102_Ic: '0',
- // Starter1_PLCState: '1',
- // CentrifugalPump1_GVL1_Healthy: '0',
- // CentrifugalPump2_MOT_PhaseATempAlarm: '2',
- // CentrifugalPump1_MOT_Power: '0',
- // CentrifugalPump1_MOT_FrontAxleOverTempAlarm: '1',
- // Starter1_SwitchOnOutput: '0',
- // CentrifugalPump1_MOT_PhaseCTemp: '16',
- // Starter4_CBStatus: '0',
- // CentrifugalPump2_GVL1_Healthy: '0',
- // T101_LowVoltSwith_SysVoltage: '0',
- // CentrifugalPump2_GVL1_OpenLimit: '0',
- // FeedSG102_Ia: '0',
- // TemperatureSensor_Temp: '8700',
- // FeedSG102_Ib: '0',
- // FeedSG101_CloseReady: '0',
- // Starter3_CloseAllow: '0',
- // CentrifugalPump1_GVL1_CtrlMode: '0',
- // CentrifugalPump1_MOT_AvgVoltage: '0',
- // GVL_CtrlMode: '0',
- // CentrifugalPump1_GVL2_CloseLimit: '1',
- // SubmarinePump_MOT_Ic: '0',
- // CentrifugalPump1_GVL2_CloseFail: '0',
- // CentrifugalPump1_GVL2_OpenLimit: '0',
- // SubmarinePump_MOT_Ib: '0',
- // FeedSG102_CloseReady: '1',
- // SubmarinePump_MOT_Ia: '0',
- // CentrifugalPump2_PU_InterlockStartFail: '0',
- // Starter3_SwitchOffOutput: '0',
- // T102_LowVoltSwith_Current: '0',
- // CentrifugalPump1_PU_InterlockReady: '0',
- // CentrifugalPump2_MOT_AvgVoltage: '1141',
- // CentrifugalPump1_GVL1_CloseReady: '0',
- // TemperatureSensor_TemperatureHighAlarm: '1',
- // Starter2_CBStatus: '0',
- // Starter2_PLCState: '1',
- // Starter3_SwitchOnOutput: '0',
- // Starter1_RunTimerOpen: '0',
- // CentrifugalPump2_PU_InterlockStarting: '0',
- // CentrifugalPump2_MOT_PhaseCTemp: '16',
- // Starter5_Ia: '0',
- // CentrifugalPump2_MOT_Ia: '0',
- // CentrifugalPump2_MOT_Ib: '0',
- // T102_LowVoltSwith_SysVoltage: '1135',
- // Starter5_Ic: '0',
- // CentrifugalPump1_MOT_Ia: '0',
- // Starter5_Ib: '0',
- // Starter5_CBStatus: '0',
- // T102_HighVoltSwitch_SysVoltage: '9978',
- // CentrifugalPump1_MOT_PhaseCTempAlarm: '0',
- // T101_CBStatus: '0',
- // Starter1_SwitchOnNoReturn: '0',
- // CentrifugalPump2_MOT_Ic: '0',
- // GVL_Healthy: '1',
- // VSL_LiquidLevelSensor_LowWaterAlarm: '1',
- // Starter4_PLCState: '1',
- // T101_HighVoltSwitch_Current: '0',
- // CentrifugalPump2_MOT_BackAxleTemp: '882',
- // CentrifugalPump2_GVL1_OffOutput: '0',
- // Starter5_SwitchOnOutput: '0',
- // CentrifugalPump2_MOT_FrontAxleOverTempAlarm: '1',
- // CentrifugalPump2_PU_HMIStop: '0',
- // isRun: '-2',
- // CentrifugalPump2_MOT_PhaseATemp: '16',
- // CentrifugalPump1_GVL2_Healthy: '0',
- // CentrifugalPump1_GVL1_OpenFail: '0',
- // T101_HighVoltSwitch_SysVoltage: '0',
- // },
- // readDataDes: null,
- // summaryHour: [],
- // summaryDay: [],
- // history: [],
- // dayhistory: [],
- // totalInfo: null,
- // sign: null,
- // cameras: [],
- // links: [],
- // avgParam: {},
- // other1: null,
- // other2: null,
- // other3: null,
- // remarkInfo: null,
- // linkInfo: null,
- // addrIndex: null,
- // warnLogNotOkCount: 0,
- // otherInfo: null,
- // orderNum: 0,
- // },
- // ],
- // type: 'pump_under',
- // },
- // ],
- // };
- const result = res.msgTxt[0]['datalist'][0];
- Object.assign(result, result['readData']);
- return result;
- }
- function handler(passWord, paramcode) {
- let value = '';
- if (paramcode == 'ykjdqh') {
- value = selectData.value['paramcode'] == '1' ? '2' : '1';
- }
- if (paramcode == 'jxmsqh') {
- value = selectData.value['jxmsqh'] == '1' ? '2' : '1';
- }
- const data = {
- deviceid: selectData.value['deviceID'],
- devicetype: selectData.value['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 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?.startsWith('pump_under')) {
- setModelType('gasPumpUnder');
- }
- deviceProperty.value = await getMonitorData(props.deviceType);
- });
- }
- );
- watch(
- () => props.deviceId,
- async (deviceID) => {
- removeCamera();
- if (deviceID) await getCamera(deviceID, playerRef.value);
- }
- );
- onMounted(async () => {
- timer = null;
- await getMonitor(true);
- if (selectData.value && selectData.value['deviceID']) await getCamera(selectData.value['deviceID'], playerRef.value);
- });
- onBeforeUnmount(() => {
- removeCamera();
- });
- onUnmounted(() => {
- removeCamera();
- if (timer) {
- clearTimeout(timer);
- timer = undefined;
- }
- });
- </script>
- <style lang="less" scoped>
- @import '/@/design/theme.less';
- @import '/@/design/vent/modal.less';
- @import '../../comment/less/workFace.less';
- @ventSpace: zxm;
- @{theme-deepblue} {
- .elementContent {
- --image-pump1: url('/@/assets/images/themify/deepblue/vent/pump1.png');
- }
- }
- .elementContent {
- --image-pump1: url('/@/assets/images/vent/pump1.png');
- :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;
- }
- }
- .modal-monitor-box {
- background-color: #000;
- color: #fff;
- padding: 0 5px;
- display: flex;
- align-items: center;
- justify-content: center;
- .title {
- margin-right: 5px;
- }
- .signal-round {
- margin-left: 5px;
- }
- .value {
- width: 30px;
- 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;
- :deep(.input-item .title) {
- width: 220px !important;
- }
- }
- }
- .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: var(--image-pump1) 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;
- right: 330px;
- :deep(#LivePlayerBox) {
- display: flex;
- justify-content: end;
- }
- }
- .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 {
- width: 100%;
- position: fixed;
- display: flex;
- justify-content: end;
- right: 380px;
- top: 85px;
- pointer-events: auto;
- .btn-item {
- width: auto;
- text-align: center;
- }
- }
- .state-header {
- display: flex;
- color: var(--vent-font-action-link);
- .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>
|