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() let res = await querySingleTask()
if (res.code === '1') { if (res.code === '1') {
if (res.hasOwnProperty('result')) { if (res.hasOwnProperty('result')) {
this.pkId = res.result.next_point_code
this.active = true
this.dataList.map(el => { this.dataList.map(el => {
if (el.point_code === res.result.next_point_code) {
this.pkId = el.point_code
this.active = true
}
el.checked = true el.checked = true
}) })
} else {
this.pkId = ''
this.active = false
this.dataList.map(el => {
el.checked = false
})
} }
} else { } else {
this.toast(res.desc) this.toast(res.desc)
@@ -98,8 +102,6 @@ export default {
clearInterval(this.timer) clearInterval(this.timer)
} }
this.toast(res.desc) this.toast(res.desc)
this.pkId = ''
this.active = false
setTimeout(() => { setTimeout(() => {
this.refresh() this.refresh()
}, 1000) }, 1000)
@@ -120,8 +122,6 @@ export default {
clearInterval(this.timer) clearInterval(this.timer)
} }
this.toast(res.desc) this.toast(res.desc)
this.pkId = ''
this.active = false
setTimeout(() => { setTimeout(() => {
this.refresh() this.refresh()
}, 1000) }, 1000)