|
@@ -42,7 +42,7 @@
|
|
</ventBox1>
|
|
</ventBox1>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="lr right-box ml-auto">
|
|
|
|
|
|
+ <div class="lr right-box ml-auto">
|
|
<div class="item-box sensor-container">
|
|
<div class="item-box sensor-container">
|
|
<ventBox1 class="">
|
|
<ventBox1 class="">
|
|
<template #title>
|
|
<template #title>
|
|
@@ -67,7 +67,7 @@
|
|
</template>
|
|
</template>
|
|
</ventBox1>
|
|
</ventBox1>
|
|
</div>
|
|
</div>
|
|
- </div> -->
|
|
|
|
|
|
+ </div>
|
|
<div class="lr right-box ml-5px">
|
|
<div class="lr right-box ml-5px">
|
|
<div class="item-box sensor-container">
|
|
<div class="item-box sensor-container">
|
|
<ventBox1>
|
|
<ventBox1>
|
|
@@ -132,12 +132,12 @@
|
|
</div>
|
|
</div>
|
|
</a-spin>
|
|
</a-spin>
|
|
</template>
|
|
</template>
|
|
-<script setup lang="ts">
|
|
|
|
|
|
+<script setup lang="ts" name="balancePressHome">
|
|
import { onBeforeMount, ref, onMounted, onUnmounted, reactive, defineProps, watch } from 'vue';
|
|
import { onBeforeMount, ref, onMounted, onUnmounted, reactive, defineProps, watch } from 'vue';
|
|
import ventBox1 from '/@/components/vent/ventBox1.vue';
|
|
import ventBox1 from '/@/components/vent/ventBox1.vue';
|
|
import { SvgIcon } from '/@/components/Icon';
|
|
import { SvgIcon } from '/@/components/Icon';
|
|
import { mountedThree, destroy, setModelType, updateText, play } from '../balancePress.threejs';
|
|
import { mountedThree, destroy, setModelType, updateText, play } from '../balancePress.threejs';
|
|
- import { settingParam1, settingParam2, settingParam3, windowParam, localFanParam, monitorParam, windrectParam } from '../balancePress.data';
|
|
|
|
|
|
+ import { settingParam1, settingParam2, settingParam3, windowParam, localFanParam, windrectParam } from '../balancePress.data';
|
|
import { list, submit, subList } from '../balancePress.api';
|
|
import { list, submit, subList } from '../balancePress.api';
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
import { get } from 'lodash-es';
|
|
import { get } from 'lodash-es';
|
|
@@ -160,7 +160,13 @@
|
|
sourcePressure: '-',
|
|
sourcePressure: '-',
|
|
fault: '-',
|
|
fault: '-',
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+ const monitorParam = [
|
|
|
|
+ {
|
|
|
|
+ title: '监测值',
|
|
|
|
+ code: 'readData.ss_analog_value',
|
|
|
|
+ unit: '',
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
const changeType = (isAutoControl) => {
|
|
const changeType = (isAutoControl) => {
|
|
isAutoControl;
|
|
isAutoControl;
|
|
//
|
|
//
|
|
@@ -201,7 +207,7 @@
|
|
windowMonitorData.value = [];
|
|
windowMonitorData.value = [];
|
|
windrectMonitorData.value = [];
|
|
windrectMonitorData.value = [];
|
|
result.forEach((item) => {
|
|
result.forEach((item) => {
|
|
- if (item.type.startsWith('safetymonitor') || item.type.startsWith('avgpressure_lowoxygen')) {
|
|
|
|
|
|
+ if (item.type.startsWith('safetymonitor')) {
|
|
safetyMonitorData.value.push(...item.datalist);
|
|
safetyMonitorData.value.push(...item.datalist);
|
|
}
|
|
}
|
|
if (item.type.startsWith('fanlocal')) {
|
|
if (item.type.startsWith('fanlocal')) {
|
|
@@ -235,7 +241,7 @@
|
|
//获取低氧参数监测返显列表
|
|
//获取低氧参数监测返显列表
|
|
async function initParamList() {
|
|
async function initParamList() {
|
|
let res = await subList();
|
|
let res = await subList();
|
|
- if (res && res.records.length != 0) {
|
|
|
|
|
|
+ if (res && res.records && res.records.length != 0) {
|
|
formData.value = res.records[0];
|
|
formData.value = res.records[0];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -271,7 +277,7 @@
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
loading.value = true;
|
|
loading.value = true;
|
|
mountedThree().then(async () => {
|
|
mountedThree().then(async () => {
|
|
- await setModelType('balancePressTun'); //balancePressBase
|
|
|
|
|
|
+ await setModelType('balancePressBase'); //balancePressBase
|
|
loading.value = false;
|
|
loading.value = false;
|
|
timer = null;
|
|
timer = null;
|
|
await initParamList();
|
|
await initParamList();
|