25623
This commit is contained in:
18
packages/2.0.5/AppHouseMap/AppHouseMap.vue
vendored
18
packages/2.0.5/AppHouseMap/AppHouseMap.vue
vendored
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div style="height:100%;">
|
||||
<div class="map" v-if="!showStatistics">
|
||||
<div class="map" v-if="!hasCommunityId">
|
||||
<ai-title title="房屋地图" is-show-bottom-border style="margin-left: 20px"/>
|
||||
<div id="map" ref="rootmap" @click="hidePopup"/>
|
||||
<div class="map-area">
|
||||
@@ -133,7 +133,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<building-statistics :instance="instance" :dict="dict" v-if="showStatistics"/>
|
||||
<building-statistics :instance="instance" :dict="dict" v-if="hasCommunityId"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -195,6 +195,10 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
|
||||
hasCommunityId() {
|
||||
return !!this.$route.query?.communityId
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
@@ -204,11 +208,10 @@ export default {
|
||||
this.debounce(this.search, 500)
|
||||
}
|
||||
},
|
||||
type: {
|
||||
// deep: true,
|
||||
// handler() {
|
||||
// this.debounce(this.search, 500)
|
||||
// }
|
||||
hasCommunityId(v) {
|
||||
if (!v) {
|
||||
this.getCorpLocation()
|
||||
}
|
||||
},
|
||||
showStatistics: {
|
||||
deep: true,
|
||||
@@ -404,7 +407,6 @@ export default {
|
||||
context.marker.urlType = urlType
|
||||
|
||||
context.marker.on('click', e => {
|
||||
console.log(e)
|
||||
this.chooseBuildId = e.target.id
|
||||
this.getBuildInfo(e.target.id, e.target.urlType)
|
||||
context.marker.setContent(el);
|
||||
|
||||
Reference in New Issue
Block a user