Browse Source

fix:自检后预充

master
guoapeng 2 months ago
parent
commit
2fe8b8f298
  1. 23
      src/components/system/Check/index.vue
  2. 1
      src/libs/utils.ts

23
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)

1
src/libs/utils.ts

@ -59,6 +59,7 @@ export const cmdNameMap = {
door_disable: '失能门电机',
out_tray: '取出托盘',
move_test: '自检',
liquid_pre_fill_when_launch: '开机预充',
}

Loading…
Cancel
Save