|
|
@@ -159,7 +159,6 @@ export default {
|
|
|
// this.idArr.push(id + type);
|
|
|
},
|
|
|
addImg(item, i) {
|
|
|
- console.log(item, "itemsx");
|
|
|
// let image = this.geturl(item.photo_path);
|
|
|
|
|
|
const image = new Image();
|
|
|
@@ -210,7 +209,7 @@ export default {
|
|
|
flyManagers[uavitem.id].stopArrived.addEventListener(function (
|
|
|
routeStop
|
|
|
) {
|
|
|
- routeStop.waitTime = routeStop.index ? 0 : 2; // 在每个站点处停留1s
|
|
|
+ // routeStop.waitTime = routeStop.index ? 0 : 2; // 在每个站点处停留1s
|
|
|
|
|
|
if (routeStop.index + 10 < uavitem.flightDtoList.length) {
|
|
|
that.addImg(
|
|
|
@@ -218,8 +217,8 @@ export default {
|
|
|
uavitem.id
|
|
|
);
|
|
|
}
|
|
|
- // if (routeStop.index > 4)
|
|
|
- img_entity.entities.remove(img_entity.entities.values[0]);
|
|
|
+ if (routeStop.index > 4)
|
|
|
+ img_entity.entities.remove(img_entity.entities.values[0]);
|
|
|
// imgents[`${uavitem.id}-${routeStop.index - 4}`]
|
|
|
console.log(
|
|
|
routeStop.index,
|
|
|
@@ -247,8 +246,8 @@ export default {
|
|
|
// 飞行路线就绪
|
|
|
var currentRoute = flyManager.currentRoute;
|
|
|
console.log(currentRoute.totalDuration + "秒");
|
|
|
- currentRoute.isLineVisible = uavitem.show;
|
|
|
- currentRoute.isStopVisible = uavitem.show;
|
|
|
+ currentRoute.isLineVisible = uavitem.show || false;
|
|
|
+ currentRoute.isStopVisible = uavitem.show || false;
|
|
|
//生成飞行文件中的所有站点列表
|
|
|
// var allStops = flyManager.getAllRouteStops();
|
|
|
|