|
@@ -1,42 +1,59 @@
|
|
|
<template>
|
|
|
<div id="nitrogen3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"></div>
|
|
|
- <div id="nitrogenCss3D" class="threejs-Object-CSS"
|
|
|
- style="width: 100%; height: 100%; position: absolute; pointer-events: none; overflow: hidden; z-index: 2; top: 0px; left: 0px">
|
|
|
+ <div
|
|
|
+ id="nitrogenCss3D"
|
|
|
+ class="threejs-Object-CSS"
|
|
|
+ style="width: 100%; height: 100%; position: absolute; pointer-events: none; overflow: hidden; z-index: 2; top: 0px; left: 0px"
|
|
|
+ >
|
|
|
<a-spin :spinning="loading" />
|
|
|
<template>
|
|
|
- <div v-for="groupNum in monitorDataGroupNum" :key="groupNum" class="modal-monitor" >
|
|
|
+ <div v-for="groupNum in monitorDataGroupNum" :key="groupNum" class="modal-monitor">
|
|
|
<fourBorderBg :class="`kyj${groupNum}`" :id="`nitrogenMonitor${groupNum}`">
|
|
|
<div class="title">{{ monitorData[groupNum - 1]['strname'] }} </div>
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">排气压力:</span>
|
|
|
- <span class="monitor-val" v-if="!refresh"><span class="val">{{
|
|
|
- monitorData[groupNum - 1]['AirCompressor_ExhaustPre'] ? monitorData[groupNum -
|
|
|
- 1]['AirCompressor_ExhaustPre'] : '-'
|
|
|
- }}</span>
|
|
|
- <span class="unit">kPa</span></span>
|
|
|
+ <span class="monitor-val" v-if="!refresh"
|
|
|
+ ><span class="val">{{
|
|
|
+ monitorData[groupNum - 1]['AirCompressor_ExhaustPre'] ? monitorData[groupNum - 1]['AirCompressor_ExhaustPre'] : '-'
|
|
|
+ }}</span>
|
|
|
+ <span class="unit">kPa</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">累计流量:</span>
|
|
|
- <span class="monitor-val" v-if="!refresh"><span class="val">{{ monitorData[groupNum - 1]['FluxTotal1'] ? parseFloat(monitorData[groupNum - 1]['FluxTotal1']).toFixed(2) : '-' }}</span><span class="unit">m³</span></span>
|
|
|
+ <span class="monitor-val" v-if="!refresh"
|
|
|
+ ><span class="val">{{
|
|
|
+ monitorData[groupNum - 1]['FluxTotal1'] ? parseFloat(monitorData[groupNum - 1]['FluxTotal1']).toFixed(2) : '-'
|
|
|
+ }}</span
|
|
|
+ ><span class="unit">m³</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">氮气纯度:</span>
|
|
|
- <span class="monitor-val" v-if="!refresh"><span class="val">{{ monitorData[groupNum - 1]['NitrogenPurity'] ? parseFloat(monitorData[groupNum - 1]['NitrogenPurity']).toFixed(2) : '-' }}</span>
|
|
|
- <span class="unit">%</span></span>
|
|
|
+ <span class="monitor-val" v-if="!refresh"
|
|
|
+ ><span class="val">{{
|
|
|
+ monitorData[groupNum - 1]['NitrogenPurity'] ? parseFloat(monitorData[groupNum - 1]['NitrogenPurity']).toFixed(2) : '-'
|
|
|
+ }}</span>
|
|
|
+ <span class="unit">%</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">运行时间:</span>
|
|
|
- <span class="monitor-val" v-if="!refresh"><span class="val">{{
|
|
|
- monitorData[groupNum - 1]['AirCompressor_RunTime'] ? monitorData[groupNum - 1]['AirCompressor_RunTime'] :
|
|
|
- '-'
|
|
|
- }}</span><span class="unit">h</span></span>
|
|
|
+ <span class="monitor-val" v-if="!refresh"
|
|
|
+ ><span class="val">{{
|
|
|
+ monitorData[groupNum - 1]['AirCompressor_RunTime'] ? monitorData[groupNum - 1]['AirCompressor_RunTime'] : '-'
|
|
|
+ }}</span
|
|
|
+ ><span class="unit">h</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="monitor-item">
|
|
|
<span class="monitor-title">加载时间:</span>
|
|
|
- <span class="monitor-val" v-if="!refresh"><span class="val">{{
|
|
|
- monitorData[groupNum - 1]['AirCompressor_LoadTime'] ? monitorData[groupNum - 1]['AirCompressor_LoadTime']
|
|
|
- : '-'
|
|
|
- }}</span><span class="unit">h</span></span>
|
|
|
+ <span class="monitor-val" v-if="!refresh"
|
|
|
+ ><span class="val">{{
|
|
|
+ monitorData[groupNum - 1]['AirCompressor_LoadTime'] ? monitorData[groupNum - 1]['AirCompressor_LoadTime'] : '-'
|
|
|
+ }}</span
|
|
|
+ ><span class="unit">h</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
</fourBorderBg>
|
|
|
</div>
|
|
@@ -44,17 +61,20 @@
|
|
|
<fourBorderBg id="downWindMonitor">
|
|
|
<div class="title">下风测监测 </div>
|
|
|
<div class="monitor-item" v-for="(data, index) in downWindData" :key="index">
|
|
|
- <span class="monitor-title">{{ data.title}} :</span>
|
|
|
- <span class="monitor-val" v-if="!refresh"><span class="val">{{
|
|
|
- (monitorData.length > 0 && monitorData[0][data.code]) >= 0
|
|
|
- ? monitorData[0][data.code] ? parseFloat(monitorData[0][data.code]).toFixed(2) : '-'
|
|
|
- : '-'
|
|
|
- }}</span>
|
|
|
- <span class="unit">{{ data.unit }}</span></span>
|
|
|
+ <span class="monitor-title">{{ data.title }} :</span>
|
|
|
+ <span class="monitor-val" v-if="!refresh"
|
|
|
+ ><span class="val">{{
|
|
|
+ (monitorData.length > 0 && monitorData[0][data.code]) >= 0
|
|
|
+ ? monitorData[0][data.code]
|
|
|
+ ? parseFloat(monitorData[0][data.code]).toFixed(2)
|
|
|
+ : '-'
|
|
|
+ : '-'
|
|
|
+ }}</span>
|
|
|
+ <span class="unit">{{ data.unit }}</span></span
|
|
|
+ >
|
|
|
</div>
|
|
|
</fourBorderBg>
|
|
|
</div>
|
|
|
-
|
|
|
</template>
|
|
|
</div>
|
|
|
<div class="nitrogen-home">
|
|
@@ -78,18 +98,20 @@
|
|
|
<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]] ? parseFloat(monitorData[groupNum -
|
|
|
- 1][Object.keys(data)[0]]).toFixed(2) : '-'
|
|
|
- : '-'
|
|
|
+ ? monitorData[groupNum - 1][Object.keys(data)[0]]
|
|
|
+ ? parseFloat(monitorData[groupNum - 1][Object.keys(data)[0]]).toFixed(2)
|
|
|
+ : '-'
|
|
|
+ : '-'
|
|
|
}}</span>
|
|
|
</div>
|
|
|
<div class="item-col" v-if="Object.keys(data)[1]">
|
|
|
<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]] ? parseFloat(monitorData[groupNum -
|
|
|
- 1][Object.keys(data)[1]]).toFixed(2) : '-'
|
|
|
- : '-'
|
|
|
+ ? monitorData[groupNum - 1][Object.keys(data)[1]]
|
|
|
+ ? parseFloat(monitorData[groupNum - 1][Object.keys(data)[1]]).toFixed(2)
|
|
|
+ : '-'
|
|
|
+ : '-'
|
|
|
}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -103,16 +125,16 @@
|
|
|
<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]]
|
|
|
- : '-'
|
|
|
+ ? monitorData[groupNum - 1][Object.keys(data)[0]]
|
|
|
+ : '-'
|
|
|
}}</span>
|
|
|
</div>
|
|
|
<div class="item-col" v-if="Object.keys(data)[1]">
|
|
|
<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]]
|
|
|
- : '-'
|
|
|
+ ? monitorData[groupNum - 1][Object.keys(data)[1]]
|
|
|
+ : '-'
|
|
|
}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -161,20 +183,47 @@
|
|
|
<div class="control-item" v-for="(groupNum, index) in monitorDataGroupNum" :key="groupNum">
|
|
|
<div class="control-item-title">{{ monitorData[groupNum - 1]['strname'] }}</div>
|
|
|
<div class="control-item-state">
|
|
|
- <a-button disabled v-if="index == 0" size="small" type="text" style="color: #fff;"
|
|
|
- @click="handlerDevice(airCompressorState[groupNum - 1], false)">一键启停</a-button>
|
|
|
- <a-button disabled v-else size="small" type="text" style="color: #fff;"
|
|
|
- @click="handlerDevice(airCompressorState[groupNum - 1], false)">一键启停</a-button>
|
|
|
-
|
|
|
+ <a-button
|
|
|
+ disabled
|
|
|
+ v-if="index == 0"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ style="color: #fff"
|
|
|
+ @click="handlerDevice(airCompressorState[groupNum - 1], false)"
|
|
|
+ >一键启停</a-button
|
|
|
+ >
|
|
|
+ <a-button
|
|
|
+ disabled
|
|
|
+ v-else
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ style="color: #fff"
|
|
|
+ @click="handlerDevice(airCompressorState[groupNum - 1], false)"
|
|
|
+ >一键启停</a-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="control-item" v-for="(groupNum, index) in monitorDataGroupNum" :key="groupNum">
|
|
|
<div class="control-item-title">{{ monitorData[groupNum - 1]['strname'] }}</div>
|
|
|
<div class="control-item-state">
|
|
|
- <a-button disabled v-if="index == 0" size="small" type="text" style="color: #fff;"
|
|
|
- @click="handlerDevice(airCompressorState[groupNum - 1], true)">一键复位</a-button>
|
|
|
- <a-button disabled v-else size="small" type="text" style="color: #fff;"
|
|
|
- @click="handlerDevice(airCompressorState[groupNum - 1], true)">一键复位</a-button>
|
|
|
+ <a-button
|
|
|
+ disabled
|
|
|
+ v-if="index == 0"
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ style="color: #fff"
|
|
|
+ @click="handlerDevice(airCompressorState[groupNum - 1], true)"
|
|
|
+ >一键复位</a-button
|
|
|
+ >
|
|
|
+ <a-button
|
|
|
+ disabled
|
|
|
+ v-else
|
|
|
+ size="small"
|
|
|
+ type="text"
|
|
|
+ style="color: #fff"
|
|
|
+ @click="handlerDevice(airCompressorState[groupNum - 1], true)"
|
|
|
+ >一键复位</a-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -185,8 +234,15 @@
|
|
|
<div>设备实时监测曲线</div>
|
|
|
</template>
|
|
|
<template #container>
|
|
|
- <BarAndLine v-if="chartsColumns.length > 0" xAxisPropType="readTime" :dataSource="echartData" height="300px"
|
|
|
- :chartsColumns="chartsColumns" chartsType="listMonitor" :option="echatsOption" />
|
|
|
+ <BarAndLine
|
|
|
+ v-if="chartsColumns.length > 0"
|
|
|
+ xAxisPropType="readTime"
|
|
|
+ :dataSource="echartData"
|
|
|
+ height="300px"
|
|
|
+ :chartsColumns="chartsColumns"
|
|
|
+ chartsType="listMonitor"
|
|
|
+ :option="echatsOption"
|
|
|
+ />
|
|
|
</template>
|
|
|
</ventBox1>
|
|
|
</div>
|
|
@@ -194,703 +250,695 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <HandleModal :modal-is-show="modalIsShow" :modal-title="modalTitle" :modal-type="modalType" @handle-ok="handleOK"
|
|
|
- @handle-cancel="handleCancel" />
|
|
|
+ <HandleModal :modal-is-show="modalIsShow" :modal-title="modalTitle" :modal-type="modalType" @handle-ok="handleOK" @handle-cancel="handleCancel" />
|
|
|
</template>
|
|
|
<script lang="ts" setup name="nitrogenHome">
|
|
|
-import { onMounted, onUnmounted, ref, watch, reactive, defineProps, nextTick, inject, onBeforeUnmount } from 'vue';
|
|
|
-import ventBox1 from '/@/components/vent/ventBox1.vue';
|
|
|
-import fourBorderBg from '../../../comment/components/fourBorderBg.vue';
|
|
|
-import { mountedThree, destroy, setModelType } from '../nitrogen.threejs';
|
|
|
-import { getDevice } from '../nitrogen.api';
|
|
|
-import { SvgIcon } from '/@/components/Icon';
|
|
|
-import BarAndLine from '/@/components/chart/BarAndLine.vue';
|
|
|
-import HandleModal from './modal.vue';
|
|
|
-import { deviceControlApi } from '/@/api/vent/index';
|
|
|
-import { groupParameterData, deviceParameterData, downWindData } from '../nitrogen.data'
|
|
|
-import { message } from 'ant-design-vue';
|
|
|
-import lodash from 'lodash';
|
|
|
-import { useCamera } from '/@/hooks/system/useCamera';
|
|
|
-import dayjs from 'dayjs';
|
|
|
-
|
|
|
-const globalConfig = inject('globalConfig');
|
|
|
-
|
|
|
-const props = defineProps({
|
|
|
- deviceId: {
|
|
|
- type: String,
|
|
|
- require: true,
|
|
|
- },
|
|
|
- modalType: {
|
|
|
- type: String,
|
|
|
- require: true,
|
|
|
- },
|
|
|
-});
|
|
|
-const playerRef = ref();
|
|
|
-const refresh = ref(false)
|
|
|
-const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
|
|
|
-const modalType = ref(''); // 模态框内容显示类型,设备操作类型
|
|
|
-const modalIsShow = ref<boolean>(false); // 是否显示模态框
|
|
|
-const loading = ref(true);
|
|
|
-let kzParam = reactive<any>({
|
|
|
- data: {},
|
|
|
- isFw: null,
|
|
|
-});
|
|
|
-
|
|
|
-// const kyjs = ['1号空压机', '1号空压机', '1号空压机', '1号空压机'];
|
|
|
-const flvURL1 = () => {
|
|
|
- // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
|
|
|
- return '';
|
|
|
-};
|
|
|
-const colors = ['#FDB146', '#EE6666', '#9BCB75', '#03C2EC', '#DA3914', '#9C83D9']
|
|
|
-const echatsOption = {
|
|
|
- grid: {
|
|
|
- top: '35%',
|
|
|
- left: '15%',
|
|
|
- right: '20px',
|
|
|
- bottom: '8%',
|
|
|
- // containLabel: true
|
|
|
- },
|
|
|
- toolbox: {
|
|
|
- feature: {}
|
|
|
- }
|
|
|
-}
|
|
|
-const monitorNetStatus = ref(0)
|
|
|
-const monitorDataGroupNum = ref(0);
|
|
|
-
|
|
|
-let airCompressorState = reactive<any[]>([]);
|
|
|
-
|
|
|
-const propTypeArr = ref([])
|
|
|
-const chartsColumns = ref([])
|
|
|
-
|
|
|
-watch(monitorDataGroupNum, () => {
|
|
|
-
|
|
|
- const arr = <any[]>[]
|
|
|
- const item = {
|
|
|
- legend: '瞬时流量',
|
|
|
- seriesName: '(m³/h)',
|
|
|
- ymax: 2000,
|
|
|
- yname: 'm³/h',
|
|
|
- linetype: 'line',
|
|
|
- yaxispos: 'left',
|
|
|
- color: '#FDB146',
|
|
|
- sort: 1,
|
|
|
- xRotate: 0,
|
|
|
- dataIndex: 'InputFlux',
|
|
|
- }
|
|
|
- const propTypeList = []
|
|
|
- for (let i = 1; i <= monitorDataGroupNum.value; i++) {
|
|
|
- const lineType = lodash.cloneDeep(item)
|
|
|
- lineType.legend = `制氮机${i}瞬时流量`;
|
|
|
- lineType.dataIndex = `InputFlux${i}`
|
|
|
- lineType.color = colors[i - 1]
|
|
|
- arr.push(lineType)
|
|
|
+ import { onMounted, onUnmounted, ref, watch, reactive, defineProps, nextTick, inject, onBeforeUnmount } from 'vue';
|
|
|
+ import ventBox1 from '/@/components/vent/ventBox1.vue';
|
|
|
+ import fourBorderBg from '../../../comment/components/fourBorderBg.vue';
|
|
|
+ import { mountedThree, destroy, setModelType } from '../nitrogen.threejs';
|
|
|
+ import { getDevice } from '../nitrogen.api';
|
|
|
+ import { SvgIcon } from '/@/components/Icon';
|
|
|
+ import BarAndLine from '/@/components/chart/BarAndLine.vue';
|
|
|
+ import HandleModal from './modal.vue';
|
|
|
+ import { deviceControlApi } from '/@/api/vent/index';
|
|
|
+ import { groupParameterData, deviceParameterData, downWindData } from '../nitrogen.data';
|
|
|
+ import { message } from 'ant-design-vue';
|
|
|
+ import lodash from 'lodash';
|
|
|
+ import { useCamera } from '/@/hooks/system/useCamera';
|
|
|
+ import dayjs from 'dayjs';
|
|
|
+ import { getTableHeaderColumns } from '/@/hooks/web/useWebColumns';
|
|
|
+
|
|
|
+ const globalConfig = inject('globalConfig');
|
|
|
+
|
|
|
+ const props = defineProps({
|
|
|
+ deviceId: {
|
|
|
+ type: String,
|
|
|
+ require: true,
|
|
|
+ },
|
|
|
+ modalType: {
|
|
|
+ type: String,
|
|
|
+ require: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ const playerRef = ref();
|
|
|
+ const refresh = ref(false);
|
|
|
+ const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
|
|
|
+ const modalType = ref(''); // 模态框内容显示类型,设备操作类型
|
|
|
+ const modalIsShow = ref<boolean>(false); // 是否显示模态框
|
|
|
+ const loading = ref(true);
|
|
|
+ let kzParam = reactive<any>({
|
|
|
+ data: {},
|
|
|
+ isFw: null,
|
|
|
+ });
|
|
|
+
|
|
|
+ // const kyjs = ['1号空压机', '1号空压机', '1号空压机', '1号空压机'];
|
|
|
+ const flvURL1 = () => {
|
|
|
+ // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
|
|
|
+ return '';
|
|
|
+ };
|
|
|
+ const colors = ['#FDB146', '#EE6666', '#9BCB75', '#03C2EC', '#DA3914', '#9C83D9'];
|
|
|
+ const echatsOption = {
|
|
|
+ grid: {
|
|
|
+ top: '35%',
|
|
|
+ left: '15%',
|
|
|
+ right: '20px',
|
|
|
+ bottom: '8%',
|
|
|
+ // containLabel: true
|
|
|
+ },
|
|
|
+ toolbox: {
|
|
|
+ feature: {},
|
|
|
+ },
|
|
|
+ };
|
|
|
+ const monitorNetStatus = ref(0);
|
|
|
+ const monitorDataGroupNum = ref(0);
|
|
|
+
|
|
|
+ let airCompressorState = reactive<any[]>([]);
|
|
|
+
|
|
|
+ const chartsColumns = ref(getTableHeaderColumns('sys_nitrogen_chart'));
|
|
|
+
|
|
|
+ // const propTypeArr = ref([]);
|
|
|
+ // watch(monitorDataGroupNum, () => {
|
|
|
+ // const arr = <any[]>[]
|
|
|
+ // const item = getTableHeaderColumns('sys_nitrogen_chart')
|
|
|
+ // const propTypeList = []
|
|
|
+ // for (let i = 1; i <= monitorDataGroupNum.value; i++) {
|
|
|
+ // const lineType = lodash.cloneDeep(item[0])
|
|
|
+ // lineType.legend = `制氮机${i}瞬时流量`;
|
|
|
+ // lineType.dataIndex = `${item[0].dataIndex}${i}`
|
|
|
+ // lineType.color = colors[i - 1]
|
|
|
+ // arr.push(lineType)
|
|
|
+ // }
|
|
|
+ // chartsColumns.value = arr
|
|
|
+ // })
|
|
|
+
|
|
|
+ const monitorData = ref(
|
|
|
+ new Array(3).fill({
|
|
|
+ // strName: '空压机',
|
|
|
+ // cumulativeFlow: '-',
|
|
|
+ // centerTemperature: '-',
|
|
|
+ // outletTemperature: '-',
|
|
|
+ })
|
|
|
+ );
|
|
|
+
|
|
|
+ //图表数据
|
|
|
+ let echartData = ref<any>([]);
|
|
|
+
|
|
|
+ const { getCamera, removeCamera } = useCamera();
|
|
|
+
|
|
|
+ // https获取监测数据
|
|
|
+ let timer: null | NodeJS.Timeout = null;
|
|
|
+ async function getMonitor(flag?) {
|
|
|
+ if (Object.prototype.toString.call(timer) === '[object Null]') {
|
|
|
+ timer = await setTimeout(
|
|
|
+ async () => {
|
|
|
+ if (props.deviceId) {
|
|
|
+ await getDataSource(props.deviceId);
|
|
|
+ }
|
|
|
+ if (timer) {
|
|
|
+ timer = null;
|
|
|
+ }
|
|
|
+ await getMonitor();
|
|
|
+ },
|
|
|
+ flag ? 0 : 3000
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
- chartsColumns.value = arr
|
|
|
-
|
|
|
-})
|
|
|
-
|
|
|
-const monitorData = ref(
|
|
|
- new Array(3).fill({
|
|
|
- // strName: '空压机',
|
|
|
- // cumulativeFlow: '-',
|
|
|
- // centerTemperature: '-',
|
|
|
- // outletTemperature: '-',
|
|
|
- })
|
|
|
-);
|
|
|
-
|
|
|
-//图表数据
|
|
|
-let echartData = ref<any>([]);
|
|
|
-
|
|
|
-const { getCamera, removeCamera } = useCamera();
|
|
|
-
|
|
|
-// https获取监测数据
|
|
|
-let timer: null | NodeJS.Timeout = null;
|
|
|
-async function getMonitor(flag?) {
|
|
|
- if (Object.prototype.toString.call(timer) === '[object Null]') {
|
|
|
- timer = await setTimeout(
|
|
|
- async () => {
|
|
|
- if (props.deviceId) {
|
|
|
- await getDataSource(props.deviceId);
|
|
|
- }
|
|
|
- if (timer) {
|
|
|
- timer = null;
|
|
|
+
|
|
|
+ async function getDataSource(systemID) {
|
|
|
+ const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
|
|
|
+ if (res) {
|
|
|
+ const result = res;
|
|
|
+ if (!result || result.msgTxt.length < 1) return;
|
|
|
+ result.msgTxt.forEach((item) => {
|
|
|
+ if (item.type && item.type.startsWith('nitrogen')) {
|
|
|
+ airCompressorState.length = 0;
|
|
|
+ let netStatus = 0;
|
|
|
+ monitorData.value = item['datalist'].filter((data) => {
|
|
|
+ const readData = data.readData;
|
|
|
+ if (data['netStatus'] == 1) {
|
|
|
+ netStatus = 1;
|
|
|
+ }
|
|
|
+ airCompressorState.push({
|
|
|
+ id: data.deviceID,
|
|
|
+ deviceType: data.deviceType,
|
|
|
+ HMIReset: readData.HMIReset,
|
|
|
+ HMIStartStop: readData.HMIStartStop,
|
|
|
+ });
|
|
|
+ return Object.assign(data, readData);
|
|
|
+ });
|
|
|
+ monitorNetStatus.value = netStatus;
|
|
|
+ // console.log(monitorData,'monitorData.value---===')
|
|
|
+ const airCompressor = {
|
|
|
+ readTime: monitorData.value[0]['readTime'] ? monitorData.value[0]['readTime'].substring(11) : dayjs().format('HH:mm:ss'),
|
|
|
+ };
|
|
|
+ const dataArr = lodash.cloneDeep(echartData.value);
|
|
|
+ //图表数据
|
|
|
+ if (dataArr.length <= 5) {
|
|
|
+ monitorData.value.forEach((el, index) => {
|
|
|
+ airCompressor[`InputFlux${index + 1}`] = el['InputFlux'] || 0;
|
|
|
+ });
|
|
|
+ dataArr.push(airCompressor);
|
|
|
+ } else {
|
|
|
+ dataArr.shift();
|
|
|
+ dataArr.push(airCompressor);
|
|
|
+ }
|
|
|
+ echartData.value = dataArr;
|
|
|
}
|
|
|
- await getMonitor();
|
|
|
- },
|
|
|
- flag ? 0 : 3000
|
|
|
- );
|
|
|
+ });
|
|
|
+ monitorDataGroupNum.value = monitorData.value.length;
|
|
|
+ refresh.value = true;
|
|
|
+ nextTick(() => {
|
|
|
+ refresh.value = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-async function getDataSource(systemID) {
|
|
|
- const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
|
|
|
- if (res) {
|
|
|
- const result =res;
|
|
|
- if (!result || result.msgTxt.length < 1) return;
|
|
|
- result.msgTxt.forEach((item) => {
|
|
|
- if (item.type && item.type.startsWith('nitrogen')) {
|
|
|
- airCompressorState.length = 0;
|
|
|
- let netStatus = 0
|
|
|
- monitorData.value = item['datalist'].filter((data) => {
|
|
|
- const readData = data.readData;
|
|
|
- if (data['netStatus'] == 1) {
|
|
|
- netStatus = 1
|
|
|
- }
|
|
|
- airCompressorState.push({
|
|
|
- id: data.deviceID,
|
|
|
- deviceType: data.deviceType,
|
|
|
- HMIReset: readData.HMIReset,
|
|
|
- HMIStartStop: readData.HMIStartStop
|
|
|
- });
|
|
|
- return Object.assign(data, readData);
|
|
|
- });
|
|
|
- monitorNetStatus.value = netStatus
|
|
|
- // console.log(monitorData,'monitorData.value---===')
|
|
|
- const airCompressor = { readTime: monitorData.value[0]['readTime'] ? monitorData.value[0]['readTime'].substring(11) : dayjs().format('HH:mm:ss') }
|
|
|
- const dataArr = lodash.cloneDeep(echartData.value)
|
|
|
- //图表数据
|
|
|
- if (dataArr.length <= 5) {
|
|
|
- monitorData.value.forEach((el, index) => {
|
|
|
- airCompressor[`InputFlux${index + 1}`] = el['InputFlux'] || 0
|
|
|
- });
|
|
|
- dataArr.push(airCompressor)
|
|
|
+
|
|
|
+ function handlerDevice(data, bol) {
|
|
|
+ // console.log(bol, 'bol-------')
|
|
|
+ kzParam.data = data;
|
|
|
+ kzParam.isFw = bol;
|
|
|
+ // console.log(kzParam, 'kz--------')
|
|
|
+ if (bol) {
|
|
|
+ modalTitle.value = '一键复位';
|
|
|
+ modalType.value = '1';
|
|
|
+ modalIsShow.value = true;
|
|
|
+ kzParam.data.HMIReset = !data.HMIReset;
|
|
|
+ } else {
|
|
|
+ modalTitle.value = '一键启停';
|
|
|
+ modalType.value = '2';
|
|
|
+ modalIsShow.value = true;
|
|
|
+ kzParam.data.HMIStartStop = !data.HMIStartStop;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ function handleOK(passWord, handlerState) {
|
|
|
+ // console.log(kzParam, 'kz----------');
|
|
|
+ // if (passWord !== '123456') {
|
|
|
+ // message.warning('密码不正确,请重新输入');
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+
|
|
|
+ let data = {};
|
|
|
+ if (kzParam.isFw) {
|
|
|
+ data = {
|
|
|
+ deviceid: kzParam.data.id,
|
|
|
+ devicetype: kzParam.data.deviceType,
|
|
|
+ password: passWord,
|
|
|
+ HMIReset: kzParam.data.HMIReset,
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ data = {
|
|
|
+ deviceid: kzParam.data.id,
|
|
|
+ password: passWord,
|
|
|
+ devicetype: kzParam.data.deviceType,
|
|
|
+ HMIStartStop: kzParam.data.HMIStartStop,
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
+ deviceControlApi(data).then((res) => {
|
|
|
+ // 模拟时开启
|
|
|
+ if (res.success) {
|
|
|
+ modalIsShow.value = false;
|
|
|
+ getDataSource(props.deviceId);
|
|
|
+ if (globalConfig.History_Type == 'remote') {
|
|
|
+ message.success('指令已下发至生产管控平台成功!');
|
|
|
} else {
|
|
|
- dataArr.shift()
|
|
|
- dataArr.push(airCompressor)
|
|
|
+ message.success('指令已下发成功!');
|
|
|
}
|
|
|
- echartData.value = dataArr
|
|
|
}
|
|
|
});
|
|
|
- monitorDataGroupNum.value = monitorData.value.length;
|
|
|
- refresh.value = true
|
|
|
- nextTick(() => {
|
|
|
- refresh.value = false
|
|
|
- })
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-function handlerDevice(data, bol) {
|
|
|
- // console.log(bol, 'bol-------')
|
|
|
- kzParam.data = data;
|
|
|
- kzParam.isFw = bol;
|
|
|
- // console.log(kzParam, 'kz--------')
|
|
|
- if (bol) {
|
|
|
- modalTitle.value = '一键复位';
|
|
|
- modalType.value = '1';
|
|
|
- modalIsShow.value = true;
|
|
|
- kzParam.data.HMIReset = !data.HMIReset
|
|
|
- } else {
|
|
|
- modalTitle.value = '一键启停';
|
|
|
- modalType.value = '2';
|
|
|
- modalIsShow.value = true;
|
|
|
- kzParam.data.HMIStartStop = !data.HMIStartStop;
|
|
|
- }
|
|
|
-}
|
|
|
-function handleOK(passWord, handlerState) {
|
|
|
- // console.log(kzParam, 'kz----------');
|
|
|
- // if (passWord !== '123456') {
|
|
|
- // message.warning('密码不正确,请重新输入');
|
|
|
- // return;
|
|
|
- // }
|
|
|
-
|
|
|
- let data = {};
|
|
|
- if (kzParam.isFw) {
|
|
|
- data = {
|
|
|
- deviceid: kzParam.data.id,
|
|
|
- devicetype: kzParam.data.deviceType,
|
|
|
- password: passWord,
|
|
|
- HMIReset: kzParam.data.HMIReset,
|
|
|
- };
|
|
|
- } else {
|
|
|
- data = {
|
|
|
- deviceid: kzParam.data.id,
|
|
|
- password: passWord,
|
|
|
- devicetype: kzParam.data.deviceType,
|
|
|
- HMIStartStop: kzParam.data.HMIStartStop,
|
|
|
- };
|
|
|
+
|
|
|
+ function handleCancel() {
|
|
|
+ modalIsShow.value = false;
|
|
|
+ modalTitle.value = '';
|
|
|
+ modalType.value = '';
|
|
|
}
|
|
|
|
|
|
- deviceControlApi(data).then((res) => {
|
|
|
- // 模拟时开启
|
|
|
- if (res.success) {
|
|
|
- modalIsShow.value = false;
|
|
|
- getDataSource(props.deviceId);
|
|
|
- if (globalConfig.History_Type == 'remote') {
|
|
|
- message.success('指令已下发至生产管控平台成功!')
|
|
|
- } else {
|
|
|
- message.success('指令已下发成功!')
|
|
|
+ watch([monitorDataGroupNum, loading], ([newMonitorDataGroupNum, newLoading]) => {
|
|
|
+ nextTick(() => {
|
|
|
+ if (newMonitorDataGroupNum && !newLoading) {
|
|
|
+ setModelType(props.modalType, newMonitorDataGroupNum);
|
|
|
}
|
|
|
- }
|
|
|
+ });
|
|
|
});
|
|
|
-}
|
|
|
-
|
|
|
-function handleCancel() {
|
|
|
- modalIsShow.value = false;
|
|
|
- modalTitle.value = '';
|
|
|
- modalType.value = '';
|
|
|
-}
|
|
|
-
|
|
|
-watch([monitorDataGroupNum, loading], ([newMonitorDataGroupNum, newLoading]) => {
|
|
|
- nextTick(() => {
|
|
|
- if (newMonitorDataGroupNum && !newLoading) {
|
|
|
- setModelType(props.modalType, newMonitorDataGroupNum);
|
|
|
+
|
|
|
+ watch(
|
|
|
+ () => props.deviceId,
|
|
|
+ async (deviceId) => {
|
|
|
+ if (deviceId) {
|
|
|
+ await getCamera(deviceId, playerRef.value, 'nitrogen');
|
|
|
+ }
|
|
|
}
|
|
|
+ );
|
|
|
+ onBeforeUnmount(() => {
|
|
|
+ removeCamera();
|
|
|
});
|
|
|
-});
|
|
|
|
|
|
-watch(() => props.deviceId, async(deviceId) => {
|
|
|
- if(deviceId){
|
|
|
- await getCamera(deviceId, playerRef.value, 'nitrogen');
|
|
|
- }
|
|
|
-})
|
|
|
-onBeforeUnmount(() => {
|
|
|
- removeCamera();
|
|
|
-});
|
|
|
-
|
|
|
-onMounted(async () => {
|
|
|
- await getMonitor(true);
|
|
|
- await mountedThree().then(() => {
|
|
|
- loading.value = false;
|
|
|
+ onMounted(async () => {
|
|
|
+ await getMonitor(true);
|
|
|
+ await mountedThree().then(() => {
|
|
|
+ loading.value = false;
|
|
|
+ });
|
|
|
+ await getCamera(props.deviceId, playerRef.value, 'nitrogen');
|
|
|
+ });
|
|
|
+
|
|
|
+ onUnmounted(() => {
|
|
|
+ destroy();
|
|
|
+ removeCamera();
|
|
|
+ if (timer) {
|
|
|
+ clearTimeout(timer);
|
|
|
+ timer = undefined;
|
|
|
+ }
|
|
|
});
|
|
|
- await getCamera(props.deviceId, playerRef.value, 'nitrogen');
|
|
|
-});
|
|
|
-
|
|
|
-onUnmounted(() => {
|
|
|
- destroy();
|
|
|
- removeCamera()
|
|
|
- if (timer) {
|
|
|
- clearTimeout(timer);
|
|
|
- timer = undefined;
|
|
|
- }
|
|
|
-});
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-@ventSpace: zxm;
|
|
|
-
|
|
|
-.nitrogen-box {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
-}
|
|
|
-
|
|
|
-#nitrogenCss3D {
|
|
|
- .modal-monitor {
|
|
|
- width: 200px;
|
|
|
- position: absolute;
|
|
|
- left: 0px;
|
|
|
- top: 0px;
|
|
|
- }
|
|
|
+ @ventSpace: zxm;
|
|
|
|
|
|
- &:deep(.win) {
|
|
|
- margin: 0 !important;
|
|
|
- background: #00000044;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.nitrogen-home {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- position: fixed;
|
|
|
- z-index: 9999;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- pointer-events: none;
|
|
|
- top: 20px;
|
|
|
-
|
|
|
- .nitrogen-container {
|
|
|
+ .nitrogen-box {
|
|
|
width: 100%;
|
|
|
- height: calc(100% - 100px);
|
|
|
+ height: 100%;
|
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- margin-bottom: 100px;
|
|
|
- position: relative;
|
|
|
- .device-state{
|
|
|
- width: 100%;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ #nitrogenCss3D {
|
|
|
+ .modal-monitor {
|
|
|
+ width: 200px;
|
|
|
position: absolute;
|
|
|
- top: 80px;
|
|
|
- color: #e90000;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- font-size: 20px;
|
|
|
+ left: 0px;
|
|
|
+ top: 0px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &:deep(.win) {
|
|
|
+ margin: 0 !important;
|
|
|
+ background: #00000044;
|
|
|
}
|
|
|
- .top-box {
|
|
|
+ }
|
|
|
+
|
|
|
+ .nitrogen-home {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ position: fixed;
|
|
|
+ z-index: 9999;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ pointer-events: none;
|
|
|
+ top: 20px;
|
|
|
+
|
|
|
+ .nitrogen-container {
|
|
|
width: 100%;
|
|
|
- padding: 10px;
|
|
|
- overflow: hidden;
|
|
|
+ height: calc(100% - 100px);
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
+ margin-bottom: 100px;
|
|
|
position: relative;
|
|
|
- // margin-top: 40px;
|
|
|
- .lr-box {
|
|
|
- height: 100%;
|
|
|
+ .device-state {
|
|
|
+ width: 100%;
|
|
|
+ position: absolute;
|
|
|
+ top: 80px;
|
|
|
+ color: #e90000;
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
- position: relative;
|
|
|
- // overflow: hidden;
|
|
|
- z-index: 9999;
|
|
|
- pointer-events: auto;
|
|
|
- overflow-y: auto;
|
|
|
- overflow-x: hidden;
|
|
|
- height: calc(100% - 70px);
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 20px;
|
|
|
}
|
|
|
-
|
|
|
- .item {
|
|
|
- width: 335px;
|
|
|
- height: auto;
|
|
|
+ .top-box {
|
|
|
+ width: 100%;
|
|
|
+ padding: 10px;
|
|
|
+ overflow: hidden;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
position: relative;
|
|
|
- border-radius: 5px;
|
|
|
- margin-top: 10px;
|
|
|
- margin-bottom: 0px;
|
|
|
- pointer-events: auto;
|
|
|
- color: #fff;
|
|
|
- // overflow: hidden;
|
|
|
-
|
|
|
- &:first-child {
|
|
|
- margin-top: 0px;
|
|
|
+ // margin-top: 40px;
|
|
|
+ .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;
|
|
|
+ height: calc(100% - 70px);
|
|
|
}
|
|
|
|
|
|
- .base-title {
|
|
|
- color: #fff;
|
|
|
- margin-bottom: 8px;
|
|
|
- padding-left: 10px;
|
|
|
+ .item {
|
|
|
+ width: 335px;
|
|
|
+ height: auto;
|
|
|
position: relative;
|
|
|
- font-size: 16px;
|
|
|
-
|
|
|
- &::after {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- display: block;
|
|
|
- width: 4px;
|
|
|
- height: 12px;
|
|
|
- top: 7px;
|
|
|
- left: 0px;
|
|
|
- background: #45d3fd;
|
|
|
- border-radius: 4px;
|
|
|
- }
|
|
|
- }
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-top: 10px;
|
|
|
+ margin-bottom: 0px;
|
|
|
+ pointer-events: auto;
|
|
|
+ color: #fff;
|
|
|
+ // overflow: hidden;
|
|
|
|
|
|
- .state-item {
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- padding: 5px;
|
|
|
+ &:first-child {
|
|
|
+ margin-top: 0px;
|
|
|
+ }
|
|
|
|
|
|
- .item-col {
|
|
|
- width: calc(50% - 5px);
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- padding-right: 4px;
|
|
|
- background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
|
|
|
+ .base-title {
|
|
|
+ color: #fff;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ padding-left: 10px;
|
|
|
+ position: relative;
|
|
|
+ font-size: 16px;
|
|
|
|
|
|
- &:first-child {
|
|
|
- margin-right: 10px;
|
|
|
+ &::after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ display: block;
|
|
|
+ width: 4px;
|
|
|
+ height: 12px;
|
|
|
+ top: 7px;
|
|
|
+ left: 0px;
|
|
|
+ background: #45d3fd;
|
|
|
+ border-radius: 4px;
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .state-title {
|
|
|
- color: #ffffffcc;
|
|
|
- flex: 9;
|
|
|
- font-size: 14px;
|
|
|
- }
|
|
|
+ .state-item {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ padding: 5px;
|
|
|
|
|
|
- .state-val {
|
|
|
- flex: 1;
|
|
|
- color: #00eefffe;
|
|
|
- margin-right: 5px;
|
|
|
- text-align: right;
|
|
|
- font-size: 14px;
|
|
|
+ .item-col {
|
|
|
+ width: calc(50% - 5px);
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ padding-right: 4px;
|
|
|
+ background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
|
|
|
+
|
|
|
+ &:first-child {
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .state-title {
|
|
|
+ color: #ffffffcc;
|
|
|
+ flex: 9;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .state-val {
|
|
|
+ flex: 1;
|
|
|
+ color: #00eefffe;
|
|
|
+ margin-right: 5px;
|
|
|
+ text-align: right;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .signal-box {
|
|
|
- margin: 5px 0;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
+ .signal-box {
|
|
|
+ margin: 5px 0;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
|
|
|
- .signal-title {
|
|
|
- color: #7af5ff;
|
|
|
- margin: 0 5px;
|
|
|
- }
|
|
|
+ .signal-title {
|
|
|
+ color: #7af5ff;
|
|
|
+ margin: 0 5px;
|
|
|
+ }
|
|
|
|
|
|
- &:last-child {
|
|
|
- margin-right: 0px;
|
|
|
+ &:last-child {
|
|
|
+ margin-right: 0px;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .list-item {
|
|
|
- padding: 0 10px;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
+ .list-item {
|
|
|
+ padding: 0 10px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
|
|
|
- .item-data-key {
|
|
|
- color: #ffffff99;
|
|
|
+ .item-data-key {
|
|
|
+ color: #ffffff99;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .item-data-box {
|
|
|
- color: #fff;
|
|
|
+ .item-data-box {
|
|
|
+ color: #fff;
|
|
|
|
|
|
- .state-icon {
|
|
|
- display: inline-block;
|
|
|
- width: 12px;
|
|
|
- height: 12px;
|
|
|
- border-radius: 12px;
|
|
|
- }
|
|
|
+ .state-icon {
|
|
|
+ display: inline-block;
|
|
|
+ width: 12px;
|
|
|
+ height: 12px;
|
|
|
+ border-radius: 12px;
|
|
|
+ }
|
|
|
|
|
|
- .open {
|
|
|
- border: 5px solid #133a56;
|
|
|
- background: #4ecb73;
|
|
|
- }
|
|
|
+ .open {
|
|
|
+ border: 5px solid #133a56;
|
|
|
+ background: #4ecb73;
|
|
|
+ }
|
|
|
|
|
|
- .close {
|
|
|
- border: 5px solid #192961;
|
|
|
- background: #6d7898;
|
|
|
+ .close {
|
|
|
+ border: 5px solid #192961;
|
|
|
+ background: #6d7898;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- .item-l {
|
|
|
- width: 100%;
|
|
|
|
|
|
- .monitor-box {
|
|
|
+ .item-l {
|
|
|
width: 100%;
|
|
|
|
|
|
- .parameter-title {
|
|
|
- position: relative;
|
|
|
+ .monitor-box {
|
|
|
width: 100%;
|
|
|
- height: 14px;
|
|
|
- margin-top: 10px;
|
|
|
|
|
|
- .icon,
|
|
|
- span {
|
|
|
- position: absolute;
|
|
|
- top: -10px;
|
|
|
+ .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);
|
|
|
+ .group-parameter-title {
|
|
|
+ background-image: linear-gradient(to right, #39a3ff50, #39a3ff00);
|
|
|
|
|
|
- .icon {
|
|
|
- left: -12px;
|
|
|
- top: -17px;
|
|
|
- }
|
|
|
+ .icon {
|
|
|
+ left: -12px;
|
|
|
+ top: -17px;
|
|
|
+ }
|
|
|
|
|
|
- span {
|
|
|
- left: 18px;
|
|
|
- }
|
|
|
+ span {
|
|
|
+ left: 18px;
|
|
|
+ }
|
|
|
|
|
|
- .item-col {
|
|
|
- background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
|
|
|
+ .item-col {
|
|
|
+ background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .device-parameter-title {
|
|
|
- background-image: linear-gradient(to right, #3df6ff40, #3df6ff00);
|
|
|
+ .device-parameter-title {
|
|
|
+ background-image: linear-gradient(to right, #3df6ff40, #3df6ff00);
|
|
|
|
|
|
- .icon {
|
|
|
- left: -10px;
|
|
|
- top: -14px;
|
|
|
- }
|
|
|
+ .icon {
|
|
|
+ left: -10px;
|
|
|
+ top: -14px;
|
|
|
+ }
|
|
|
|
|
|
- span {
|
|
|
- left: 18px;
|
|
|
- }
|
|
|
+ span {
|
|
|
+ left: 18px;
|
|
|
+ }
|
|
|
|
|
|
- .item-col {
|
|
|
- background-image: linear-gradient(to right, #3df6ff10, #3df6ff00);
|
|
|
+ .item-col {
|
|
|
+ background-image: linear-gradient(to right, #3df6ff10, #3df6ff00);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- .right-box {
|
|
|
- width: 310px;
|
|
|
- margin-top: 50px;
|
|
|
|
|
|
- .control-group {
|
|
|
- display: flex;
|
|
|
- // justify-content: space-around;
|
|
|
- flex-wrap: wrap;
|
|
|
+ .right-box {
|
|
|
+ width: 310px;
|
|
|
+ margin-top: 50px;
|
|
|
|
|
|
- .control-item {
|
|
|
- width: 50%; //lxh
|
|
|
+ .control-group {
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- padding: 0 4px;
|
|
|
-
|
|
|
- .control-item-title {
|
|
|
- color: #a6dce9;
|
|
|
- position: relative;
|
|
|
- top: 5px;
|
|
|
- }
|
|
|
+ // justify-content: space-around;
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
|
- .control-item-state {
|
|
|
- width: 94px;
|
|
|
- height: 47px;
|
|
|
- background: url('/@/assets/images/vent/control-switch-bg.png');
|
|
|
+ .control-item {
|
|
|
+ width: 50%; //lxh
|
|
|
display: flex;
|
|
|
+ flex-direction: column;
|
|
|
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;
|
|
|
+ padding: 0 4px;
|
|
|
+
|
|
|
+ .control-item-title {
|
|
|
+ color: #a6dce9;
|
|
|
+ position: relative;
|
|
|
+ top: 5px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .control-item-state {
|
|
|
+ width: 94px;
|
|
|
+ height: 47px;
|
|
|
+ background: url('/@/assets/images/vent/control-switch-bg.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;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .left-box {
|
|
|
- width: 365px;
|
|
|
- margin-top: 80px;
|
|
|
+ .left-box {
|
|
|
+ width: 365px;
|
|
|
+ margin-top: 80px;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- .player-box {
|
|
|
- position: absolute;
|
|
|
- height: 100%;
|
|
|
- width: 100%;
|
|
|
- padding: 0 20px 0 20px;
|
|
|
- z-index: 9999;
|
|
|
- display: flex;
|
|
|
- align-items: end;
|
|
|
- :deep(#LivePlayerBox) {
|
|
|
+ .player-box {
|
|
|
+ position: absolute;
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
+ padding: 0 20px 0 20px;
|
|
|
+ z-index: 9999;
|
|
|
display: flex;
|
|
|
- justify-content: end;
|
|
|
+ align-items: end;
|
|
|
+ :deep(#LivePlayerBox) {
|
|
|
+ display: flex;
|
|
|
+ justify-content: end;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &:deep(.win) {
|
|
|
+ width: 100%;
|
|
|
+ margin: 0 !important;
|
|
|
}
|
|
|
}
|
|
|
- &:deep(.win) {
|
|
|
- width: 100%;
|
|
|
- margin: 0 !important;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-&:deep(.main) {
|
|
|
- .title {
|
|
|
- height: 34px;
|
|
|
- text-align: center;
|
|
|
- font-weight: 600;
|
|
|
- color: #7af5ff;
|
|
|
- // background-image: url('../../../assets/img/yfj/light.png');
|
|
|
- background-repeat: no-repeat;
|
|
|
- background-position-x: center;
|
|
|
- background-position-y: 100%;
|
|
|
- background-size: 80%;
|
|
|
- font-size: 16px;
|
|
|
}
|
|
|
|
|
|
- .monitor-item {
|
|
|
- width: 200px;
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- width: auto;
|
|
|
- margin-bottom: 3px;
|
|
|
+ &:deep(.main) {
|
|
|
+ .title {
|
|
|
+ height: 34px;
|
|
|
+ text-align: center;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #7af5ff;
|
|
|
+ // background-image: url('../../../assets/img/yfj/light.png');
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position-x: center;
|
|
|
+ background-position-y: 100%;
|
|
|
+ background-size: 80%;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
|
|
|
- .monitor-val {
|
|
|
- color: #ffb700;
|
|
|
+ .monitor-item {
|
|
|
+ width: 200px;
|
|
|
display: flex;
|
|
|
+ flex-direction: row;
|
|
|
width: auto;
|
|
|
+ margin-bottom: 3px;
|
|
|
|
|
|
- .val {
|
|
|
- width: 80px;
|
|
|
- font-size: 14px;
|
|
|
- }
|
|
|
+ .monitor-val {
|
|
|
+ color: #ffb700;
|
|
|
+ display: flex;
|
|
|
+ width: auto;
|
|
|
+
|
|
|
+ .val {
|
|
|
+ width: 80px;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
|
|
|
- .unit {
|
|
|
- color: #ffffffbb;
|
|
|
- font-size: 14px;
|
|
|
+ .unit {
|
|
|
+ color: #ffffffbb;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .monitor-title {
|
|
|
- width: 100px;
|
|
|
- color: #7af5ff;
|
|
|
- font-weight: 400;
|
|
|
- font-size: 14px;
|
|
|
- }
|
|
|
+ .monitor-title {
|
|
|
+ width: 100px;
|
|
|
+ color: #7af5ff;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
|
|
|
- .signal-item {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
-
|
|
|
- // margin-bottom: 5px;
|
|
|
- .signal-round {
|
|
|
- display: inline-block;
|
|
|
- width: 8px;
|
|
|
- height: 8px;
|
|
|
- border-radius: 50%;
|
|
|
- margin: 0 10px;
|
|
|
- position: relative;
|
|
|
+ .signal-item {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
|
|
|
- &::after {
|
|
|
- display: block;
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- width: 12px;
|
|
|
- height: 12px;
|
|
|
- top: -2px;
|
|
|
- left: -2px;
|
|
|
+ // margin-bottom: 5px;
|
|
|
+ .signal-round {
|
|
|
+ display: inline-block;
|
|
|
+ width: 8px;
|
|
|
+ height: 8px;
|
|
|
border-radius: 50%;
|
|
|
+ margin: 0 10px;
|
|
|
+ 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;
|
|
|
+ .signal-round-gry {
|
|
|
+ background-color: #858585;
|
|
|
|
|
|
- &::after {
|
|
|
- background-color: #85858544;
|
|
|
- box-shadow: 0 0 1px 1px #85858599;
|
|
|
+ &::after {
|
|
|
+ background-color: #85858544;
|
|
|
+ box-shadow: 0 0 1px 1px #85858599;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .signal-round-run {
|
|
|
- background-color: #67fc00;
|
|
|
+ .signal-round-run {
|
|
|
+ background-color: #67fc00;
|
|
|
|
|
|
- &::after {
|
|
|
- background-color: #67fc0044;
|
|
|
- box-shadow: 0 0 1px 1px #c6ff77;
|
|
|
+ &::after {
|
|
|
+ background-color: #67fc0044;
|
|
|
+ box-shadow: 0 0 1px 1px #c6ff77;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .signal-round-warning {
|
|
|
- background-color: #e9170b;
|
|
|
+ .signal-round-warning {
|
|
|
+ background-color: #e9170b;
|
|
|
|
|
|
- &::after {
|
|
|
- background-color: #e9170b44;
|
|
|
- box-shadow: 0 0 1px 1px #e9170b;
|
|
|
+ &::after {
|
|
|
+ background-color: #e9170b44;
|
|
|
+ box-shadow: 0 0 1px 1px #e9170b;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
-:deep(.zxm-radio-wrapper) {
|
|
|
- color: #fff !important;
|
|
|
-}
|
|
|
+ :deep(.zxm-radio-wrapper) {
|
|
|
+ color: #fff !important;
|
|
|
+ }
|
|
|
</style>
|