调整统计数据度量

This commit is contained in:
aixianling
2023-09-21 09:18:02 +08:00
parent e725476603
commit 6c60c3439a
2 changed files with 5 additions and 3 deletions

View File

@@ -182,8 +182,10 @@ export default {
map.clearMap() map.clearMap()
const center = map.getCenter() const center = map.getCenter()
map.on('click', () => { map.on('click', () => {
map.setZoomAndCenter(11, center) map.setFitView()
map.setCenter(center)
map.setPitch(0) map.setPitch(0)
this.mapDialog = false this.mapDialog = false
}) })
this.values.filter(e => e.lng).map((e) => { this.values.filter(e => e.lng).map((e) => {
@@ -199,7 +201,7 @@ export default {
this.mapDialog = true this.mapDialog = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.mapInfoWin.innerHTML = e.infoWindowHtml || [`<div class="infoWin">`, `<b>${e.label}</b>`, '</div>'].join('') this.$refs.mapInfoWin.innerHTML = e.infoWindowHtml || [`<div class="infoWin">`, `<b>${e.label}</b>`, '</div>'].join('')
map.setZoomAndCenter(16, [e.lng, e.lat]) map.setCenter(16, [e.lng, e.lat])
map.setPitch(60) map.setPitch(60)
}) })
}) })

View File

@@ -54,7 +54,7 @@ export default {
return num / 10000000 + "千万" return num / 10000000 + "千万"
} }
if (num >= 10000) { if (num >= 100000) {
return num / 10000 + "万" return num / 10000 + "万"
} }