no message

This commit is contained in:
蔡玲
2024-10-21 17:31:25 +08:00
parent 2b98ad3983
commit daaadb6e9a

View File

@@ -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)