数据推送

This commit is contained in:
binbin_pan 2024-07-10 17:23:54 +08:00
parent aa9aac7459
commit 40eb75962a
2 changed files with 6 additions and 5 deletions

View File

@ -84,7 +84,7 @@ export default {
this.getEquipmentInfo()
},
methods: {
handleQuery() {
async handleQuery() {
console.log('🚀 ~ handleQuery ~ 查询:', this.queryForm.date)
const params = {
date: this.queryForm.date,
@ -92,10 +92,12 @@ export default {
this.getEquipmentInfo(params)
//
this.map.clearOverlays()
this.initMap()
this.map = null
await this.initMap()
},
openMapDialog(val) {
this.openMap = val
this.initMap()
},
close() {
this.openMap = false
@ -134,13 +136,13 @@ export default {
let trackAni = new BMapGLLib.TrackAnimation(this.map, polyline, {
overallView: true, //
tilt: 30, // 55
duration: 10000, // 10000ms
duration: 5000, // 10000ms
delay: 2000, // 0ms
})
trackAni.start()
//
this.triggerMovement()
trackAni.start()
})
},
//

View File

@ -837,7 +837,6 @@ export default {
//
this.$refs.mapDialog.openMapDialog(true)
this.$refs.mapDialog.getEquipmentInfo(params)
this.$refs.mapDialog.initMap()
},
handlePush() {
this.$modal