This commit is contained in:
yanran200730
2021-12-24 19:54:09 +08:00
parent 539311d192
commit d6c3c2b130
2 changed files with 11 additions and 9 deletions

View File

@@ -51,7 +51,7 @@
<el-button type="text" @click="onAdd(row.id)">编辑</el-button> <el-button type="text" @click="onAdd(row.id)">编辑</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button> <el-button type="text" @click="remove(row.id)">删除</el-button>
<el-button type="text" @click="toBuildMsg(row)">房屋信息</el-button> <el-button type="text" @click="toBuildMsg(row)">房屋信息</el-button>
<el-button type="text" @click="$router.push({ name: '63', query: { communityId: row.communityId, buildingId: row.id, unitNum: 1, buildingNumber: row.buildingNumber } })"> <el-button type="text" @click="$router.push({ name: 'AppHouseMap', query: { communityId: row.communityId, buildingId: row.id, unitNum: 1, buildingNumber: row.buildingNumber } })">
楼栋模型 楼栋模型
</el-button> </el-button>
</div> </div>

View File

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