Преглед изворни кода

监控中心重点区域画面

JX.LI пре 2 година
родитељ
комит
5eb6f09ecb
2 измењених фајлова са 5 додато и 6 уклоњено
  1. 2 0
      src/views/leader.vue
  2. 3 6
      src/views/monitor.vue

+ 2 - 0
src/views/leader.vue

@@ -327,6 +327,7 @@
         })
         this.patrolTrajectory = null;
         this.$refs.supermap.clearC();
+          this.$refs.supermap.clearTwoC();
       },
       //点击右侧巡林计划获取 巡查记录
       getRecordList(id, patrolTrajectory) {
@@ -336,6 +337,7 @@
           this.recordList = res.data;
         })
         this.$refs.supermap.clearC();
+          this.$refs.supermap.clearTwoC();
         this.setTaskPointList(patrolTrajectory);
       },
       //点击右侧巡查记录获取 巡查轨迹

+ 3 - 6
src/views/monitor.vue

@@ -506,15 +506,12 @@
           //地图标记
           if (res.data != null && res.data.length > 0) {
             for (let i = 0; i < res.data.length; i++) {
-              let latlng = {
-                lat: res.data[i].lat,
-                lng: res.data[i].lng
-              }
-              that.graphicsList.push(latlng)
+              that.graphicsList.push(res.data[i].lng)
+              that.graphicsList.push(res.data[i].lat)
             }
             setTimeout(() => {
               that.$refs.supermap.clearG()
-              that.$refs.supermap.setGraphicsList(this.graphicsList, 'red')
+              that.$refs.supermap.setGraphicsList(this.graphicsList, 'red',0.8)
             }, 1000)
           } else {
             that.$refs.supermap.clearG()