From 6e65660ee329d160835a5c396901d4b6f7abf688 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Mon, 7 Jul 2025 18:10:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A6=96=E9=A1=B5=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E5=96=B7=E6=B6=B2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/HomeOperation.vue | 16 +++++++++++----- src/stores/homeStore.ts | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/components/home/HomeOperation.vue b/src/components/home/HomeOperation.vue index 9b7cbc2..aa213c2 100644 --- a/src/components/home/HomeOperation.vue +++ b/src/components/home/HomeOperation.vue @@ -3,6 +3,7 @@ import { sendCmd } from 'apis/system' import homeFinish from 'assets/images/home/home-finish.svg' import homeStart from 'assets/images/home/home-start.svg' import { startTimer, stopTimer } from 'libs/countdownTimer' +import { deviceStateMap } from 'libs/utils' import { computed, ref, watchEffect } from 'vue' import { getDeviceStatus } from '@/libs/deviceComm' @@ -147,7 +148,7 @@ const operationState = computed(() => { const startInjection = async () => { const stopParams = { className: 'DisinfectionCtrlServiceExt', - fnName: 'stop', + fnName: 'setHandleStopPumpInjectionFlag', params: {}, } await sendCmd(stopParams) @@ -157,7 +158,7 @@ const startInjection = async () => { const stopInjection = async () => { const stopParams = { className: 'DisinfectionCtrlServiceExt', - fnName: 'stop', + fnName: 'clearHandleStopPumpInjectionFlag', params: {}, } await sendCmd(stopParams) @@ -200,12 +201,17 @@ const stopInjection = async () => { -
+
+
+ 强制停止喷液: + 1 + 0 +
- 开始注射 + 设置 - 结束注射 + 清除
diff --git a/src/stores/homeStore.ts b/src/stores/homeStore.ts index 053026c..8d633d8 100644 --- a/src/stores/homeStore.ts +++ b/src/stores/homeStore.ts @@ -187,6 +187,7 @@ export const useHomeStore = defineStore('home', () => { * @desc 更新消毒状态信息,每3秒更新一次传感器数据 */ const updateHomeDisinfectionState = (disinfectState: Home.DisinfectState) => { + console.log(disinfectState) disinfectionState.value = disinfectState if (!renderTimer) { renderTimer = setTimeout(() => {