From daaadb6e9ab55f89c279d09d944728cce5784a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Mon, 21 Oct 2024 17:31:25 +0800 Subject: [PATCH] no message --- src/pages/modules/taskmanage/CarryPoint.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/modules/taskmanage/CarryPoint.vue b/src/pages/modules/taskmanage/CarryPoint.vue index 18e35e2..cf26471 100644 --- a/src/pages/modules/taskmanage/CarryPoint.vue +++ b/src/pages/modules/taskmanage/CarryPoint.vue @@ -74,13 +74,17 @@ export default { let res = await querySingleTask() if (res.code === '1') { if (res.hasOwnProperty('result')) { + this.pkId = res.result.next_point_code + this.active = true this.dataList.map(el => { - if (el.point_code === res.result.next_point_code) { - this.pkId = el.point_code - this.active = true - } el.checked = true }) + } else { + this.pkId = '' + this.active = false + this.dataList.map(el => { + el.checked = false + }) } } else { this.toast(res.desc) @@ -98,8 +102,6 @@ export default { clearInterval(this.timer) } this.toast(res.desc) - this.pkId = '' - this.active = false setTimeout(() => { this.refresh() }, 1000) @@ -120,8 +122,6 @@ export default { clearInterval(this.timer) } this.toast(res.desc) - this.pkId = '' - this.active = false setTimeout(() => { this.refresh() }, 1000)