| | |
| | | </div> |
| | | |
| | | <div class="floor-content" v-show="subNavType == 1"> |
| | | <el-main v-loading="BuildListLoading" element-loading-background="rgba(0, 0, 0, 0.5)" |
| | | element-loading-text="数据正在加载中" element-loading-spinner="el-icon-loading" |
| | | style="overflow:hidden;padding:0px;" class="build-item"> |
| | | <el-main v-loading="BuildListLoading" v-show="isShowBuildListBox" |
| | | element-loading-background="rgba(0, 0, 0, 0.5)" element-loading-text="数据正在加载中" |
| | | element-loading-spinner="el-icon-loading" style="overflow:hidden;padding:0px;" |
| | | class="build-item"> |
| | | |
| | | <div class="build-info" v-show="!BuildListLoading && buildingList.length"> |
| | | <div class="nextBtn" @click="lastBtn" v-show="lastBtnShow == true"> |
| | |
| | | data () { |
| | | return { |
| | | isBuildHighLightchecked: true, |
| | | isShowBuildListBox: true, |
| | | // 下拉搜索--树状数据相关 |
| | | searchTreeShowFlag: false, |
| | | houseDeepLoading: false, |
| | |
| | | res.data.result[0].children_infos && |
| | | res.data.result[0].children_infos.length |
| | | ) { |
| | | let buildData = res.data.result[0].children_infos |
| | | buildData.forEach((item) => { |
| | | this.buildingList.push({ |
| | | name: `${item.sname}`, |
| | | siteJd: `${item.x}`, |
| | | siteWd: `${item.y}`, |
| | | siteGd: 360, |
| | | // build_id: `${item.std_addr_id.split("|")[1]}`, |
| | | build_id: `${item.uid}`, |
| | | floor_num: `${item.floor_num}`, |
| | | elev: `${item.elev}`, |
| | | if (res.data.result[0].children_infos[0].exttype == 'building') { |
| | | this.isShowBuildListBox = true |
| | | let buildData = res.data.result[0].children_infos |
| | | buildData.forEach((item) => { |
| | | this.buildingList.push({ |
| | | name: `${item.sname}`, |
| | | siteJd: `${item.x}`, |
| | | siteWd: `${item.y}`, |
| | | siteGd: 360, |
| | | // build_id: `${item.std_addr_id.split("|")[1]}`, |
| | | build_id: `${item.uid}`, |
| | | floor_num: `${item.floor_num}`, |
| | | elev: `${item.elev}`, |
| | | }) |
| | | }) |
| | | }) |
| | | |
| | | this.$EventBus.$emit("toPosition", { |
| | | ...this.buildingList[0], |
| | | siteJd: Number(this.buildingList[0].siteJd), |
| | | siteWd: Number(this.buildingList[0].siteWd) - 0.0021, |
| | | siteGd: 240, |
| | | sitePitch: -45, |
| | | }) |
| | | setTimeout(() => { |
| | | this.BuildListLoading = false |
| | | }, 500) |
| | | this.$EventBus.$emit("toPosition", { |
| | | ...this.buildingList[0], |
| | | siteJd: Number(this.buildingList[0].siteJd), |
| | | siteWd: Number(this.buildingList[0].siteWd) - 0.0021, |
| | | siteGd: 240, |
| | | sitePitch: -45, |
| | | }) |
| | | setTimeout(() => { |
| | | this.BuildListLoading = false |
| | | }, 500) |
| | | |
| | | this.buildingClick(this.buildingList[0]) |
| | | this.buildingClick(this.buildingList[0]) |
| | | } else if (res.data.result[0].children_infos[0].exttype == 'unit') { |
| | | this.isShowBuildListBox = false |
| | | let houseUintList = res.data.result[0] |
| | | this.unitAllArr = houseUintList |
| | | console.log('unit') |
| | | this.isShowUnitChoose = true |
| | | this.unitOptions = [] |
| | | this.unitValue = 1 |
| | | houseUintList.children_infos.forEach((item, index) => { |
| | | this.unitOptions.push({ |
| | | value: `${index + 1}`, |
| | | label: `${item.sname}`, |
| | | }) |
| | | }) |
| | | this.unitChoosedArr = this.unitAllArr.children_infos[0].children_infos |
| | | this.floorInfo.elev = this.unitAllArr.children_infos[0].elev |
| | | this.floorInfo.floor_num = this.unitAllArr.children_infos[0].children_infos.length |
| | | this.getVillagePersonStatisticInfoByBuildId(this.unitAllArr.uid) |
| | | let houseCount = 0 |
| | | this.unitChoosedArr.forEach(item => { |
| | | item.children_infos.forEach(it => { |
| | | houseCount++ |
| | | }) |
| | | this.floorInfo.house_num = houseCount |
| | | this.isHaveResidentData = true |
| | | setTimeout(() => { |
| | | this.pictLoading = false |
| | | }, 3000) |
| | | }) |
| | | } |
| | | |
| | | } |
| | | |
| | | this.callPolicePage.currentPage = 1 |
| | |
| | | console.log('getHouses3DData--then') |
| | | this.$EventBus.$emit("showThreeDimensions", { |
| | | positions: houseData.kmj3a, |
| | | minHeight: res.data.data.properties.hwtxa.features[0].properties.yjpca, |
| | | maxHeight: res.data.data.properties.hwtxa.features[0].properties.mbfdr, |
| | | minHeight: res.data.data.properties.hwtxa.features[0].properties.yjpca + 10, |
| | | maxHeight: res.data.data.properties.hwtxa.features[0].properties.mbfdr + 10, |
| | | }) |
| | | let unitChoosedList = houseData.nwwqd.features |
| | | |
| | |
| | | this.$EventBus.$emit("clearHouse3D") |
| | | this.$EventBus.$emit("showThreeDimensions", { |
| | | positions: item.properties.kmj3a, |
| | | minHeight: item.properties.szhfr + curHousingHWTXA.yjpca, |
| | | maxHeight: item.properties.szhfr + item.properties.hnagn + curHousingHWTXA.yjpca, |
| | | minHeight: item.properties.szhfr + curHousingHWTXA.yjpca + 10, |
| | | maxHeight: item.properties.szhfr + item.properties.hnagn + curHousingHWTXA.yjpca + 10, |
| | | }) |
| | | } |
| | | }) |
| | |
| | | "361100", |
| | | item.build_id, |
| | | "1|3") |
| | | this.getHouses3DData(item.build_id, "361100", aoiArr) |
| | | this.floorsType = 1 |
| | | document.querySelector(".floor-num").style.left = "0px" |
| | | this.lastFloorShow = false |