diff --git a/src/components/Operator.vue b/src/components/Operator.vue index 85983a5..d398db5 100644 --- a/src/components/Operator.vue +++ b/src/components/Operator.vue @@ -494,7 +494,12 @@ import AirSwitchConfig from 'cpns/info/AirSwitchConfig' import DisinfectantLiquidInfo from 'cpns/info/DisinfectantLiquidInfo' import EnvironmentInfo from 'cpns/info/EnvironmentInfo' import { ref, watch, onMounted, onUnmounted } from 'vue' -import { useOperatorStore, useWebSocketStore, useSettingStore } from '@/store' +import { + useOperatorStore, + useWebSocketStore, + useSettingStore, + useSealStore, +} from '@/store' import { startDisinfectionJSON, getStateJSON } from '@/mock/command' import { showSuccessToast, showFailToast } from 'vant' import { time_To_hhmmss } from '@/utils' @@ -502,6 +507,7 @@ import { time_To_hhmmss } from '@/utils' const operatorStore = useOperatorStore() const webSocketStore = useWebSocketStore() const settingStore = useSettingStore() +const sealStore = useSealStore() const disinfectWarnVisible = ref(false) const preVisible = ref(false) @@ -610,6 +616,8 @@ const realStart = () => { parseInt(logVal.value), parseInt(roomSize.value), parseInt(envirVal.value), + sealStore.airInletProportionalValue, + sealStore.airOutletProportionalValue, ), ) props.changeShowOperator(false) diff --git a/src/components/info/AirSwitchConfig.vue b/src/components/info/AirSwitchConfig.vue index 98c0af5..faa9fc8 100644 --- a/src/components/info/AirSwitchConfig.vue +++ b/src/components/info/AirSwitchConfig.vue @@ -27,7 +27,7 @@ @click="changeTab('1')" >

上管道

-
10%
+
{{ topText }}

下管道

-
10%
+
{{ bottomText }}
-
+
+ + +
@@ -47,13 +66,42 @@ diff --git a/src/mock/command.js b/src/mock/command.js index 7f5e461..ced2927 100644 --- a/src/mock/command.js +++ b/src/mock/command.js @@ -33,13 +33,21 @@ export const shutdownJSON = { } // 开始消毒 -export const startDisinfectionJSON = (loglevel, roomVolume, envirVal) => { +export const startDisinfectionJSON = ( + loglevel, + roomVolume, + envirVal, + airInletProportionalValve, + airOutletProportionalValve, +) => { return { command: 'startDisinfection', messageId: 'startDisinfection', loglevel, roomVolume, envirVal, + airInletProportionalValve, + airOutletProportionalValve, } } diff --git a/src/store/modules/seal.js b/src/store/modules/seal.js index b512dbe..20b1ea6 100644 --- a/src/store/modules/seal.js +++ b/src/store/modules/seal.js @@ -8,10 +8,18 @@ export const useSealStore = defineStore({ currentAirPressure: 0, isStartTest: false, oldAirPressure: null, + airInletProportionalValue: 0, + airOutletProportionalValue: 0, } }, // actions actions: { + updateAirInletProportionalValue(airInletProportionalValue) { + this.airInletProportionalValue = airInletProportionalValue + }, + updateAirOutletProportionalValue(airOutletProportionalValue) { + this.airOutletProportionalValue = airOutletProportionalValue + }, updateCurrentAirPressure(currentAirPressure) { this.currentAirPressure = currentAirPressure },