处理任务停止和切换时贴图和详情面板不更新的问题
This commit is contained in:
parent
810f0f202f
commit
585a6ce9c5
@ -3022,21 +3022,26 @@ export default {
|
|||||||
// 从执行中变为执行完毕
|
// 从执行中变为执行完毕
|
||||||
if (this.taskList.data[findIndex].status === 1 && data.jobStatus === 2) {
|
if (this.taskList.data[findIndex].status === 1 && data.jobStatus === 2) {
|
||||||
// 移除任务相关信息
|
// 移除任务相关信息
|
||||||
// console.log('任务变更', this.jobStatus, this.jobStatus[data.jobStatus + ''])
|
|
||||||
// this.taskList.data[findIndex].statusName = this.jobStatus[data.jobStatus + '']
|
|
||||||
// taskListResource[findIndex].statusName = this.jobStatus[data.jobStatus + '']
|
|
||||||
taskListResource.splice(findIndex, 1)
|
taskListResource.splice(findIndex, 1)
|
||||||
this.getTaskList()
|
this.getTaskList()
|
||||||
console.log(data, 77777777777777);
|
|
||||||
|
|
||||||
this.removeTaskTarget(data.jobId)
|
this.removeTaskTarget(data.jobId)
|
||||||
|
this.detailUav.chart.data[0].data = []
|
||||||
|
this.detailUav.chart.data[1].data = []
|
||||||
|
this.detailUav.chart.data[2].data = []
|
||||||
|
this.detailUav.chart.data[3].data = []
|
||||||
|
this.detailUav.id = ''
|
||||||
|
this.detailUav.visible = false
|
||||||
|
let entitys = [...viewer.entities.values]
|
||||||
|
entitys.forEach(item => {
|
||||||
|
if (item.id.includes(data.jobId)) {
|
||||||
|
viewer.entities.remove(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if (data.jobStatus === 1 && this.detailUav.id === data.jobId) {
|
if (data.jobStatus === 1 && this.detailUav.id === data.jobId) {
|
||||||
this.updateUavInfo(data.sarStatus)
|
this.updateUavInfo(data.sarStatus)
|
||||||
}
|
}
|
||||||
this.taskList.data[findIndex].status = data.jobStatus
|
this.taskList.data[findIndex].status = data.jobStatus
|
||||||
taskListResource[findIndex].status = data.jobStatus
|
|
||||||
console.log('整体状态变更1', findIndex, this.taskList.data[findIndex])
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user