Browse Source

新页面

彭宇 2 years ago
parent
commit
3570587685
2 changed files with 3 additions and 0 deletions
  1. 1 0
      src/views/afforestation.vue
  2. 2 0
      src/views/leader.vue

+ 1 - 0
src/views/afforestation.vue

@@ -134,6 +134,7 @@
         })
         })
       },
       },
       setGraphicsList(points){
       setGraphicsList(points){
+        this.graphicsList=[]
         if(points!=null&&points!=""){
         if(points!=null&&points!=""){
           this.graphicsList=JSON.parse(points);
           this.graphicsList=JSON.parse(points);
           this.$refs.supermap.clearG()
           this.$refs.supermap.clearG()

+ 2 - 0
src/views/leader.vue

@@ -179,6 +179,7 @@
       //点击左侧人员列表获取轨迹
       //点击左侧人员列表获取轨迹
       getLeaderTrack(userId) {
       getLeaderTrack(userId) {
         let that=this
         let that=this
+        this.connectList=[]
         getLeaderTrack(userId).then(res => {
         getLeaderTrack(userId).then(res => {
           if(res.data!=null&&res.data.length>0){
           if(res.data!=null&&res.data.length>0){
             for (let i = 0; i < res.data.length; i++) {
             for (let i = 0; i < res.data.length; i++) {
@@ -199,6 +200,7 @@
       },
       },
 
 
       setConnectList(points){
       setConnectList(points){
+        this.connectList=[]
         if(points!=null&&points!=""){
         if(points!=null&&points!=""){
           this.connectList=JSON.parse(points);
           this.connectList=JSON.parse(points);
           this.$refs.supermap.clearC()
           this.$refs.supermap.clearC()