25623
This commit is contained in:
		| @@ -51,7 +51,7 @@ | ||||
|                 <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="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> | ||||
|               </div> | ||||
|   | ||||
							
								
								
									
										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