quanyawei
2023-12-18 f99807c9489639be25e9a277bd92c8ff021e37f5
src/views/hotMap/index.vue
@@ -130,7 +130,6 @@
      handler: function (newVal, oldVal) {
        console.log('newVal', newVal === '')
        if (newVal !== '') {
          this.map.clearMap()
          this.init1()
          this.map.setCity(newVal)
          if (!!this.formInline.starTime && !!this.formInline.endTime) {
@@ -145,7 +144,6 @@
        if (this.markerList.length > 0) {
          console.log('2222', this.map.getAllOverlays('marker'))
          this.map.remove(this.markerList)
          this.map.clearMap()
          this.markerList = []
          // this.markerClusterer = null
        }
@@ -229,10 +227,11 @@
      })
        .then(res => {
          if (res.data !== '0') {
            // this.map.remove(this.heatmap)
            if (this.heatmap === null) {
              this.createHeatMap()
            }
            this.map.clearMap()
            this.heatMapData = []
            this.heatMapData = res.data
            this.heatmap.setDataSet({
              data: this.heatMapData,
@@ -358,9 +357,11 @@
    onSubmit () {
      if (!!this.formInline.city && !!this.formInline.starTime && !!this.formInline.endTime) {
        this.map.clearMap()
        this.getDayListData()
        this.getData(this.formInline.starTime)
        this.map.setZoom(12)
        this.init1()
        // this.map.setZoom(12)
      } else {
        this.$message({
          showClose: true,