|
@@ -42,7 +42,33 @@
|
|
|
</ventBox1>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="lr right-box">
|
|
|
+ <div class="lr right-box ml-auto">
|
|
|
+ <div class="item-box sensor-container">
|
|
|
+ <ventBox1 class="">
|
|
|
+ <template #title>
|
|
|
+ <div>设备监测详情</div>
|
|
|
+ </template>
|
|
|
+ <template #container>
|
|
|
+ <div class="overflow-y-auto max-h-500px">
|
|
|
+ <template v-for="monitor in windrectMonitorData" :key="monitor.deviceId">
|
|
|
+ <div class="parameter-title group-parameter-title"
|
|
|
+ ><SvgIcon class="icon" size="14" name="fiber-title" />
|
|
|
+ <span>测风装置:{{ monitor.strinstallpos }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="input-box">
|
|
|
+ <div v-for="(item, index) in windrectParam" class="input-item" :key="index">
|
|
|
+ <div class="title">{{ item.title }}</div>
|
|
|
+ <div class="value">{{ get(monitor, item.code, '-') }}</div>
|
|
|
+ <div class="unit">{{ item.unit }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </ventBox1>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="lr right-box ml-5px">
|
|
|
<div class="item-box sensor-container">
|
|
|
<ventBox1>
|
|
|
<template #title>
|
|
@@ -110,7 +136,7 @@
|
|
|
import ventBox1 from '/@/components/vent/ventBox1.vue';
|
|
|
import { SvgIcon } from '/@/components/Icon';
|
|
|
import { mountedThree, destroy, setModelType, updateText, play } from '../balancePress.threejs';
|
|
|
- import { settingParam1, settingParam2, settingParam3, windowParam, localFanParam, monitorParam } from '../balancePress.data';
|
|
|
+ import { settingParam1, settingParam2, settingParam3, windowParam, localFanParam, monitorParam, windrectParam } from '../balancePress.data';
|
|
|
import { list } from '../balancePress.api';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
import { get } from 'lodash-es';
|
|
@@ -164,6 +190,7 @@
|
|
|
const safetyMonitorData = ref<any[]>([]);
|
|
|
const fanlocalMonitorData = ref<any[]>([]);
|
|
|
const windowMonitorData = ref<any[]>([]);
|
|
|
+ const windrectMonitorData = ref<any[]>([]);
|
|
|
|
|
|
async function getDataSource(systemID) {
|
|
|
const res = await list({ devicetype: 'sys', systemID });
|
|
@@ -171,6 +198,7 @@
|
|
|
safetyMonitorData.value = [];
|
|
|
fanlocalMonitorData.value = [];
|
|
|
windowMonitorData.value = [];
|
|
|
+ windrectMonitorData.value = [];
|
|
|
result.forEach((item) => {
|
|
|
if (item.type.startsWith('safetymonitor')) {
|
|
|
safetyMonitorData.value.push(...item.datalist);
|
|
@@ -186,6 +214,9 @@
|
|
|
if (item.type.startsWith('window')) {
|
|
|
windowMonitorData.value.push(...item.datalist);
|
|
|
}
|
|
|
+ if (item.type.startsWith('windrect')) {
|
|
|
+ windrectMonitorData.value.push(...item.datalist);
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|