diff --git a/src/views/spray/index.vue b/src/views/spray/index.vue index 2c836f4..8e6c4ca 100644 --- a/src/views/spray/index.vue +++ b/src/views/spray/index.vue @@ -167,6 +167,7 @@ const sprayPointReceiveMessage = (data: any) => { } const finishMessage = (data: any) => { + console.log(data, cmdId) if (data.cmdId === cmdId) { if (data.status === 'fail') { FtMessage.error(data.title) @@ -175,11 +176,12 @@ const finishMessage = (data: any) => { FtMessage.success('喷涂执行成功') } if (data.status === 'spray_task_finish') { - // form.value.position.forEach((item, index) => { - // if (item.select) { - // sprayRefs.value[index].clearLines() - // } - // }) + sprayStore.sprayTaskParams.forEach((item, index) => { + if (item.select) { + sprayRefs.value[index].clearLines() + item.select = false + } + }) maskVisible.value = false } } @@ -215,9 +217,10 @@ const openSetting = (index: number) => { } const checkChange = (index: number, checked: boolean) => { - if (checked) { - selectCraftVisible.value = true - } + // if (checked) { + // selectCraftVisible.value = true + // } + console.log(checked, index) } const sprayParamsDisabled = ref(false)