|
|
@ -227,13 +227,21 @@ const sprayPointReceiveMessage = (data: any) => { |
|
|
|
} |
|
|
|
let cmdId = '' |
|
|
|
const finishMessage = (data: any) => { |
|
|
|
if (data.cmdId === cmdId && data.status === 'spray_task_finish') { |
|
|
|
form.value.position.forEach((item, index) => { |
|
|
|
if (item.select) { |
|
|
|
sprayRefs.value[index].clearLines() |
|
|
|
} |
|
|
|
}) |
|
|
|
maskVisible.value = false |
|
|
|
if (data.cmdId === cmdId) { |
|
|
|
if (data.status === 'spray_task_finish') { |
|
|
|
form.value.position.forEach((item, index) => { |
|
|
|
if (item.select) { |
|
|
|
sprayRefs.value[index].clearLines() |
|
|
|
} |
|
|
|
}) |
|
|
|
maskVisible.value = false |
|
|
|
} |
|
|
|
if (data.status === 'fail') { |
|
|
|
FtMessage.error(data.title) |
|
|
|
} |
|
|
|
if (data.status === 'success') { |
|
|
|
FtMessage.success('喷涂执行成功') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|