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: '开机预充', }