|
|
@ -1,6 +1,8 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
import { syncSendCmd } from 'apis/system' |
|
|
|
import { FtMessageBox } from 'libs/messageBox' |
|
|
|
import { useDeviceStore } from 'stores/deviceStore' |
|
|
|
import { useSealStore } from 'stores/sealStore' |
|
|
|
import { computed, onMounted, ref } from 'vue' |
|
|
|
|
|
|
|
import { useHomeStore } from '@/stores/homeStore' |
|
|
@ -39,12 +41,19 @@ onMounted(getPressureConfig) |
|
|
|
const deviceType = computed(() => { |
|
|
|
return __DEVICE_TYPE__ |
|
|
|
}) |
|
|
|
|
|
|
|
const sealStore = useSealStore() |
|
|
|
const sealInfo = computed(() => sealStore.sealInfo) |
|
|
|
// 用户选择后立即更新压力配置(支持仅选择类型的情况) |
|
|
|
const confirm = (val: string[]) => { |
|
|
|
// 判断设备当前的状态 |
|
|
|
if (sealInfo.value.workState === 'stopping' || sealInfo.value.workState === 'idle') { |
|
|
|
if (!val || !val.length) |
|
|
|
return |
|
|
|
homeStore.updatePressure(val) |
|
|
|
} |
|
|
|
else { |
|
|
|
FtMessageBox.error('密封性测试中,禁止修改正负压') |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|