From 2fe8b8f2980cbf283f4cc7ec54f3e6d6a321e4c1 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Fri, 13 Jun 2025 15:45:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=87=AA=E6=A3=80=E5=90=8E=E9=A2=84?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/system/Check/index.vue | 23 ++++++++++++++++++++++- src/libs/utils.ts | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/components/system/Check/index.vue b/src/components/system/Check/index.vue index d23e0b8..fe101db 100644 --- a/src/components/system/Check/index.vue +++ b/src/components/system/Check/index.vue @@ -81,7 +81,28 @@ const commandHandle = async (data: any) => { const onConfirm = async () => { await getSelfFinish(true) - emits('close') + ElMessageBox.confirm( + '是否预充管路', + '提示', + { + confirmButtonText: '确认', + showClose: false, + closeOnClickModal: false, + closeOnPressEscape: false, + type: 'warning', + }, + ).then(async () => { + currentCommandId = Date.now().toString() + const params = { + commandId: currentCommandId, + command: 'liquid_pre_fill_when_launch', + params: {}, + } + await homeStore.sendControl(params) + emits('close') + }).catch(() => { + emits('close') + }) } const percentage = ref(0) diff --git a/src/libs/utils.ts b/src/libs/utils.ts index fe27198..28ec598 100644 --- a/src/libs/utils.ts +++ b/src/libs/utils.ts @@ -59,6 +59,7 @@ export const cmdNameMap = { door_disable: '失能门电机', out_tray: '取出托盘', move_test: '自检', + liquid_pre_fill_when_launch: '开机预充', }