结束任务并清除地面航线和目标区域
This commit is contained in:
parent
418b81fa54
commit
29238b0d75
@ -1112,10 +1112,12 @@ export default {
|
|||||||
})
|
})
|
||||||
taskListResource = data
|
taskListResource = data
|
||||||
this.taskList.data = list
|
this.taskList.data = list
|
||||||
this.taskList.data[0].check = true
|
if (this.taskList.data.length) {
|
||||||
if (this.menusChose === '1') {
|
this.taskList.data[0].check = true
|
||||||
this.addUavToScene(data[0])
|
if (this.menusChose === '1') {
|
||||||
this.addTaskPlanArea(data[0].pointList, data[0].id, data[0].name)
|
this.addUavToScene(data[0])
|
||||||
|
this.addTaskPlanArea(data[0].pointList, data[0].id, data[0].name)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.data.message)
|
this.$message.error(res.data.message)
|
||||||
@ -1556,6 +1558,7 @@ export default {
|
|||||||
info.status = 2
|
info.status = 2
|
||||||
this.getTaskList()
|
this.getTaskList()
|
||||||
this.$message.success('任务已结束!')
|
this.$message.success('任务已结束!')
|
||||||
|
this.removeTaskTarget(info.id)
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.data.message)
|
this.$message.error(res.data.message)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user