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