| | |
| | | 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) { |
| | |
| | | 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 |
| | | } |
| | |
| | | }) |
| | | .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, |
| | |
| | | |
| | | 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, |