| | |
| | | </div>--> |
| | | <el-main |
| | | v-loading="pictLoading" |
| | | element-loading-background="rgba(17, 38, 163, 0.1)" |
| | | element-loading-background="rgba(17, 38, 163, .1)" |
| | | element-loading-text="数据正在加载中" |
| | | element-loading-spinner="el-icon-loading" |
| | | v-show="isShowHouseBox" |
| | |
| | | list.forEach(item => { |
| | | item.leaf = !item.hasChildren |
| | | }) |
| | | console.log(777, node, list) |
| | | }) |
| | | return resolve(list) |
| | | } |
| | |
| | | // let maxHeight = res.data.data.floor_num * 2.8 |
| | | let maxHeight = 98 |
| | | console.log(3333, res.data.data) |
| | | this.floorChoosed = [] |
| | | this.$EventBus.$emit('showHouse3D', { positions: res.data.data.geom, minHeight: 0, maxHeight: maxHeight }) |
| | | |
| | | if (res.data.data != null) { |
| | |
| | | // 点击户室 |
| | | residentDetailsClick (params) { |
| | | this.floorChoosed = params |
| | | this.$EventBus.$emit('clearHouse3D') |
| | | this.getVillagePersonInfo(params.house_id) |
| | | this.residentDetailsTitle = `${params.house_num}住户信息` |
| | | this.residentDetailsShow = true |
| | |
| | | }, |
| | | |
| | | buildingClick (item) { |
| | | this.unitHouseChoosed = [] |
| | | this.pictLoading = true |
| | | this.$EventBus.$emit('clearHouse3D') |
| | | this.buildingChoosed = item |
| | | this.floorInfo.elev = item.elev |
| | | this.floorInfo.floor_num = item.floor_num |