From cb63dfae2cfa0f9f8c792f5813a378a08315d39d Mon Sep 17 00:00:00 2001 From: guoapeng Date: Tue, 15 Jul 2025 14:56:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=96=B7=E6=B6=82=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E5=90=8E=E6=B8=85=E7=A9=BA=E8=BD=A8=E8=BF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/spray/index.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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)