彭宇 %!s(int64=2) %!d(string=hai) anos
pai
achega
a200618a77
Modificáronse 1 ficheiros con 17 adicións e 16 borrados
  1. 17 16
      src/views/disaster.vue

+ 17 - 16
src/views/disaster.vue

@@ -479,6 +479,7 @@
       choseFireList(id) {
         let that = this
         selectFireLoseByid(id).then(res => {
+          this.graphicsList=[]
           //地图标记
           if (res.data.regionalFlagBOList != null && res.data.regionalFlagBOList.length > 0) {
             for (let i = 0; i < res.data.regionalFlagBOList.length; i++) {
@@ -527,22 +528,22 @@
         //获取左侧菜单列表
         getInit(this.pickYear.getYear() + 1900).then(res => {
           this.fireList = []
-          //地图标记
-          if (res.data.regionalFlagBOList != null && res.data.regionalFlagBOList.length > 0) {
-            for (let i = 0; i < res.data.regionalFlagBOList.length; i++) {
-              let latlng = {
-                lat: res.data.regionalFlagBOList[i].latitude,
-                lng: res.data.regionalFlagBOList[i].longitude
-              }
-              this.graphicsList.push(latlng)
-            }
-            setTimeout(() => {
-              that.$refs.supermap.clearG()
-              that.$refs.supermap.setGraphicsList(this.graphicsList, 'red')
-            }, 1000)
-          }else {
-            that.$refs.supermap.clearG()
-          }
+          // //地图标记
+          // if (res.data.regionalFlagBOList != null && res.data.regionalFlagBOList.length > 0) {
+          //   for (let i = 0; i < res.data.regionalFlagBOList.length; i++) {
+          //     let latlng = {
+          //       lat: res.data.regionalFlagBOList[i].latitude,
+          //       lng: res.data.regionalFlagBOList[i].longitude
+          //     }
+          //     this.graphicsList.push(latlng)
+          //   }
+          //   setTimeout(() => {
+          //     that.$refs.supermap.clearG()
+          //     that.$refs.supermap.setGraphicsList(this.graphicsList, 'red')
+          //   }, 1000)
+          // }else {
+          //   that.$refs.supermap.clearG()
+          // }
 
           //右侧列表
           if (res.data.visuForestFireLossTimeBOList != null && res.data.visuForestFireLossTimeBOList.length > 0) {