diff --git a/.env b/.env index c4ae906..fe3f0dd 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ -# VITE_BASE_WS1_URL=ws://192.168.8.10:19001/ -# VITE_BASE_WS2_URL=ws://192.168.8.10:19002/ +VITE_BASE_WS1_URL=ws://192.168.8.10:19001/ +VITE_BASE_WS2_URL=ws://192.168.8.10:19002/ -VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ -VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file +# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ +# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file diff --git a/src/components/LiquidHandle.vue b/src/components/LiquidHandle.vue index d413299..8b2d6c0 100644 --- a/src/components/LiquidHandle.vue +++ b/src/components/LiquidHandle.vue @@ -169,7 +169,7 @@ import StopPushPause from '@/assets/img/liquid/7.png' import LiquidModal from './dialogs/LiquidModal.vue' import { useDeviceStore, useWebSocketStore, useOperatorStore } from '@/store' -import { ref } from 'vue' +import { onMounted, onUnmounted, ref } from 'vue' import { storeToRefs } from 'pinia' import { startReplenishingFluidsJSON, @@ -192,6 +192,18 @@ const webSocketStore = useWebSocketStore() const isPopLiquidStatus = ref(false) + +onMounted(() => { + addLiquidVal.value = operatorStore.liquidAddtionVolume + ''; +}); + +onUnmounted(() => { + operatorStore.liquidAddtionVolume = parseInt(addLiquidVal.value); +}); + + + + const formatter = value => { if (parseInt(value) > 2300) { return '2300' diff --git a/src/store/modules/operator.js b/src/store/modules/operator.js index be1f38c..3adb4f0 100644 --- a/src/store/modules/operator.js +++ b/src/store/modules/operator.js @@ -23,6 +23,9 @@ export const useOperatorStore = defineStore({ showStartReady: false, // 结束消毒loading showStopReady: false, + + // 加液量 + liquidAddtionVolume: 0, } }, // actions