增加地图缩放及恢复
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
</fd-card>
|
||||
</div>
|
||||
<div class="center fill relative">
|
||||
<fd-map class="w100" v-model="map" style="height: calc(100% - 114px)"/>
|
||||
<fd-map ref="map" class="w100" v-model="map" :root="areaId" style="height: calc(100% - 114px)"/>
|
||||
<fd-card class="centerBottom pad-b8" label="实时动态">
|
||||
<dv-scroll-board class="mar-t14" :config="realtimeEvents" style="height: 114px"
|
||||
@click="handleRealtimeEventDialog"/>
|
||||
@@ -360,7 +360,6 @@ export default {
|
||||
!v && (this.detail = {})
|
||||
},
|
||||
areaId(v) {
|
||||
console.log(v)
|
||||
!!v && this.getData()
|
||||
}
|
||||
},
|
||||
@@ -372,7 +371,7 @@ export default {
|
||||
this.$refs.fddv.dialog = v
|
||||
},
|
||||
calcProgress(data = []) {
|
||||
const value = data.length > 0 ? (data[0].value / data.at(-1).value * 100).toFixed(0) : 0
|
||||
const value = data.length > 0 ? (data[0].value / data.at(-1).value * 100 || 0).toFixed(0) : 0
|
||||
return [{value}]
|
||||
},
|
||||
watchTablePageChange(c = 0) {
|
||||
@@ -476,6 +475,7 @@ export default {
|
||||
this.instance.post("/app/appintegralsupermarketshop/list", null, {params: {areaId, size: 9999}}).then(res => {
|
||||
if (res?.data) {
|
||||
initMap.then(() => {
|
||||
this.$refs.map.handleReset()
|
||||
const {records} = res.data
|
||||
this.map.on('click', e => {
|
||||
console.log(e)
|
||||
|
||||
Reference in New Issue
Block a user