浏览代码

无人机

maxiaoxiao 7 月之前
父节点
当前提交
c21bbe4dec
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      src/views/farmlandProtection/gdzl/wrjxx.vue

+ 7 - 5
src/views/farmlandProtection/gdzl/wrjxx.vue

@@ -211,19 +211,19 @@ export default {
         ) {
           // routeStop.waitTime = routeStop.index ? 0 : 2; // 在每个站点处停留1s
 
-          if (routeStop.index + 10 < uavitem.flightDtoList.length) {
+          if (routeStop.index + 14 < uavitem.flightDtoList.length) {
             that.addImg(
-              uavitem.flightDtoList[routeStop.index + 10],
+              uavitem.flightDtoList[routeStop.index + 14],
               uavitem.id
             );
           }
-          if (routeStop.index > 4)
+          if (routeStop.index > 6)
             img_entity.entities.remove(img_entity.entities.values[0]);
           // imgents[`${uavitem.id}-${routeStop.index - 4}`]
           console.log(
             routeStop.index,
-            routeStop.index + 10,
-            img_entity.entities
+            routeStop.index + 14,
+            img_entity.entities.values.length
           );
         });
       }
@@ -238,6 +238,8 @@ export default {
       this.addImg(uavitem.flightDtoList[5], uavitem.id);
       this.addImg(uavitem.flightDtoList[7], uavitem.id);
       this.addImg(uavitem.flightDtoList[9], uavitem.id);
+      this.addImg(uavitem.flightDtoList[11], uavitem.id);
+      this.addImg(uavitem.flightDtoList[13], uavitem.id);
       //初始化飞行管理
       // that.flyHOld = that.flyH;
       //注册站点到达事件