From 42480200deba2ab7e33d28ca37f05d7b6aab6f81 Mon Sep 17 00:00:00 2001 From: sige Date: Tue, 14 May 2024 15:57:44 +0800 Subject: [PATCH] =?UTF-8?q?#88=20:=20=E5=8A=A0=E6=B6=B2=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=EF=BC=8C=E5=8A=A0=E6=B6=B2=E8=BF=87=E7=A8=8B=E4=B8=AD=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=A1=B5=E9=9D=A2=E5=90=8E=E5=88=87=E6=8D=A2=E5=9B=9E?= =?UTF-8?q?=E6=9D=A5=E8=AE=BE=E7=BD=AE=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 8 ++++---- src/components/LiquidHandle.vue | 14 +++++++++++++- src/store/modules/operator.js | 3 +++ 3 files changed, 20 insertions(+), 5 deletions(-) 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