数据推送
This commit is contained in:
parent
aa9aac7459
commit
40eb75962a
|
|
@ -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, // 动画持续时长,默认为10000,单位ms
|
duration: 5000, // 动画持续时长,默认为10000,单位ms
|
||||||
delay: 2000, // 动画开始的延迟,默认0,单位ms
|
delay: 2000, // 动画开始的延迟,默认0,单位ms
|
||||||
})
|
})
|
||||||
|
|
||||||
|
trackAni.start()
|
||||||
// 设置起点终点图标
|
// 设置起点终点图标
|
||||||
this.triggerMovement()
|
this.triggerMovement()
|
||||||
trackAni.start()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 添加起点和终点的标记
|
// 添加起点和终点的标记
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue