【类 型】:fix 飞机操作页面 正在执行的任务飞机 比站点列表先载 导致地图上航线不能正确渲染

【原  因】:
【过  程】:渲染航线时 检查站点列表有没有加载完成 没有就延迟一秒之后 再进行渲染
【影  响】:
This commit is contained in:
tk 2024-08-08 18:57:11 +08:00
parent f36a63952e
commit 62abcd12ba

View File

@ -838,7 +838,13 @@ export default {
//
this.setExecuteOrderTag(this.executeOrder)
//
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) {
/* 如果当前飞机正在执行任务 把航线绘制到地图上 */
if (this.siteList.length > 0) {
this.makeRouteForMap()
} else {
setTimeout(() => {
this.makeRouteForMap()
}, 1000)
}
/* 检查添加提示标签 */
this.setExecuteOrderTag(val)
} else {