数据推送

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

View File

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