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