From 323b51093ccc288ddecdccd549e561a15e48fd75 Mon Sep 17 00:00:00 2001 From: sige Date: Wed, 15 May 2024 15:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E6=B6=B2=E7=95=8C=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E5=8A=A0=E6=B6=B2=E8=BF=87=E7=A8=8B=E4=B8=AD=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=90=8E=E5=88=87=E6=8D=A2=E5=9B=9E=E6=9D=A5?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=B7=B3=E8=BD=AC=EF=BC=8C=E5=A6=82=EF=BC=8C?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20=E5=8A=A0=E6=B6=B23000g=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=90=8E=E8=87=AA=E5=8A=A8=E8=B7=B3=E5=9B=9E?= =?UTF-8?q?2000g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LiquidHandle.vue | 14 +++++++++++++- src/store/modules/operator.js | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/LiquidHandle.vue b/src/components/LiquidHandle.vue index 4dfd2ea..23d3624 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) > 5000) { return '5000' 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