# up events
This commit is contained in:
parent
14541130f3
commit
46e801346b
|
@ -6,6 +6,7 @@
|
||||||
v-for="(marker, index) in markers"
|
v-for="(marker, index) in markers"
|
||||||
:key="index"
|
:key="index"
|
||||||
:position="marker.position"
|
:position="marker.position"
|
||||||
|
:events="marker.events"
|
||||||
:visible="marker.visible" :draggable="marker.draggable" :vid="index"
|
:visible="marker.visible" :draggable="marker.draggable" :vid="index"
|
||||||
>
|
>
|
||||||
</el-amap-marker>
|
</el-amap-marker>
|
||||||
|
@ -86,7 +87,6 @@ export default {
|
||||||
this.deviceList = response.data.results
|
this.deviceList = response.data.results
|
||||||
// console.log(this.deviceList)
|
// console.log(this.deviceList)
|
||||||
this.coordinate = this.deviceList[0].coordinate
|
this.coordinate = this.deviceList[0].coordinate
|
||||||
console.log('coor', this.coordinate)
|
|
||||||
if (this.coordinate === null) {
|
if (this.coordinate === null) {
|
||||||
this.coordinate = [113.203460828994, 22.64902452257]
|
this.coordinate = [113.203460828994, 22.64902452257]
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,6 @@ export default {
|
||||||
marker.events = defaultEvents
|
marker.events = defaultEvents
|
||||||
this.markers.push(marker)
|
this.markers.push(marker)
|
||||||
this.center = this.coordinate
|
this.center = this.coordinate
|
||||||
console.log(this.deviceList, marker)
|
|
||||||
this.flag = true
|
this.flag = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue