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)