| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 16:18:17 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2026-01-05 22:57:43 |
| | | * @LastEditTime: 2026-01-28 22:54:35 |
| | | * @FilePath: \srs-police-affairs\src\views\house\index.vue |
| | | * @Description: 小区-栋-层-房屋 |
| | | * |
| | |
| | | size: 10, |
| | | aoiId: aoiId |
| | | } |
| | | |
| | | this.businessData = [] |
| | | getBusinessList(params).then(res => { |
| | | this.businessData = res.data.data.records |
| | | }) |
| | |
| | | // 大搜之搜索面详细数据(停车场出入口商场、 小区名称类型地址、楼栋数据) |
| | | getSearchExtensivelyBgAoiDeepdata (ak, region, ids, infos, bgId = '') { |
| | | this.villageInfoLoading = true |
| | | this.isShowBuildListBox = false |
| | | this.isShowUnitChoose = false |
| | | this.BuildListLoading = true |
| | | this.buildingList = [] |
| | | getSearchExtensivelyBgAoiDeepdata(ak, region, ids, infos).then((res) => { |
| | |
| | | sitePitch: -45, |
| | | }) |
| | | setTimeout(() => { |
| | | this.BuildListLoading = false |
| | | |
| | | if (bgId !== '') { |
| | | let chooseBuildItem = [] |
| | | this.buildingList.forEach((item) => { |
| | |
| | | } else if (res.data.result[0].children_infos[0].exttype == 'unit') { |
| | | console.log('search---unit') |
| | | this.isShowHouseBox = true |
| | | this.isShowBuildListBox = false |
| | | |
| | | let houseUintList = res.data.result[0] |
| | | this.unitAllArr = houseUintList |
| | | this.isShowUnitChoose = true |
| | |
| | | this.floorInfo.elev = this.unitAllArr.children_infos[0].elev == 1 ? '有' : '无' |
| | | // this.floorInfo.floor_num = this.unitAllArr.children_infos[0].children_infos.length |
| | | this.isShowFloorCount = false |
| | | let buildId = this.unitAllArr.std_addr_id.split("|")[1] |
| | | let buildId = this.unitAllArr.std_addr_id.split("|")[1] ? this.unitAllArr.std_addr_id.split("|")[1] : this.unitAllArr.std_addr_id.split("|")[0] |
| | | this.getVillagePersonStatisticInfoByBuildId({ buildId }) |
| | | let houseCount = 0 |
| | | this.unitChoosedArr.forEach(item => { |
| | |
| | | } else if (res.data.result[0].children_infos[0].exttype == 'floor') { |
| | | let houseUintList = res.data.result[0] |
| | | this.isShowHouseBox = true |
| | | this.isShowBuildListBox = false |
| | | this.isShowUnitChoose = false |
| | | this.unitChoosedArr = houseUintList.children_infos |
| | | this.floorInfo.elev = houseUintList.elev == 1 ? '有' : '无' |
| | | this.isShowFloorCount = false |
| | |
| | | |
| | | } |
| | | |
| | | this.BuildListLoading = false |
| | | this.callPolicePage.currentPage = 1 |
| | | this.getAlarmList() |
| | | }).catch(res => { |
| | |
| | | |
| | | // 楼栋单元楼层户室查询--大搜 |
| | | getUnitHousesData (ak, region, ids, infos, buildId) { |
| | | this.isShowUnitChoose = false |
| | | |
| | | getSearchExtensivelyHousesdata(ak, region, ids, infos).then((res) => { |
| | | console.log('getUnitHousesData--then') |
| | | if (res.data.result == null) { |
| | |
| | | }) |
| | | this.unitChoosedArr = this.unitAllArr.children_infos[0].children_infos |
| | | } else if (houseUintList.children_infos.length > 1 && houseUintList.children_infos[0].exttype == 'floor') { |
| | | this.isShowUnitChoose = false |
| | | this.unitChoosedArr = this.unitAllArr.children_infos |
| | | } |
| | | let houseCount = 0 |
| | |
| | | this.unitChoosedArr.forEach(xIt => { |
| | | xIt.children_infos.forEach(yIt => { |
| | | if (item.properties.snxmi == yIt.std_addr_id.split('|')[2]) { |
| | | this.residentDetailsClick(yIt) |
| | | } |
| | | |
| | | if (item.properties.snxmi == yIt.std_addr_id.split('|')[1]) { |
| | | this.residentDetailsClick(yIt) |
| | | } |
| | | }) |
| | |
| | | e.wgs84Position.alt, |
| | | ]) |
| | | } else { |
| | | this.getSearchExtensivelyBgAoiDeepdata( |
| | | "ebf48ecaa1fd436fa3d40c4600aa051f", |
| | | "361100", |
| | | aoiId, |
| | | "1|3", |
| | | res.data.result[0].std_addr_id.split("|")[1] |
| | | ) |
| | | this.getVillageInfo(aoiId) |
| | | |
| | | if (res.data.result[0].std_addr_id.split("|")[1]) { |
| | | this.getSearchExtensivelyBgAoiDeepdata( |
| | | "ebf48ecaa1fd436fa3d40c4600aa051f", |
| | | "361100", |
| | | aoiId, |
| | | "1|3", |
| | | res.data.result[0].std_addr_id.split("|")[1] |
| | | ) |
| | | } else { |
| | | this.getSearchExtensivelyBgAoiDeepdata( |
| | | "ebf48ecaa1fd436fa3d40c4600aa051f", |
| | | "361100", |
| | | aoiId, |
| | | "1|3", |
| | | res.data.result[0].std_addr_id.split("|")[0] |
| | | ) |
| | | |
| | | this.getHouses3DData(res.data.result[0].std_addr_id.split("|")[0], "361102", [ |
| | | [e.wgs84Position.lng, e.wgs84Position.lat], |
| | | e.wgs84Position.alt, |
| | | ]) |
| | | } |
| | | } |
| | | }) |
| | | }) |