【类 型】:fix 飞机操作页面 正在执行的任务飞机 比站点列表先载 导致地图上航线不能正确渲染
【原 因】: 【过 程】:渲染航线时 检查站点列表有没有加载完成 没有就延迟一秒之后 再进行渲染 【影 响】:
This commit is contained in:
parent
f36a63952e
commit
62abcd12ba
@ -838,7 +838,13 @@ export default {
|
||||
// 设置提示标签
|
||||
this.setExecuteOrderTag(this.executeOrder)
|
||||
// 绘制地图
|
||||
this.makeRouteForMap()
|
||||
if (this.siteList.length > 0) {
|
||||
this.makeRouteForMap()
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
this.makeRouteForMap()
|
||||
}, 1000)
|
||||
}
|
||||
} else { // 没有执行订单
|
||||
if (this.plane) {
|
||||
this.publishFun('{"resetState":1}')// 发送设置飞机状态主题 状态设为闲置
|
||||
@ -849,7 +855,13 @@ export default {
|
||||
executeOrder (val) {
|
||||
if (val) {
|
||||
/* 如果当前飞机正在执行任务 把航线绘制到地图上 */
|
||||
this.makeRouteForMap()
|
||||
if (this.siteList.length > 0) {
|
||||
this.makeRouteForMap()
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
this.makeRouteForMap()
|
||||
}, 1000)
|
||||
}
|
||||
/* 检查添加提示标签 */
|
||||
this.setExecuteOrderTag(val)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user