shuishen
2026-01-28 9f9b4ad954c5a5e78e5d7493325e40b1bb32630a
feat:社区感知部分处理
1 files modified
52 ■■■■ changed files
src/views/house/index.vue 52 ●●●● patch | view | raw | blame | history
src/views/house/index.vue
@@ -2,7 +2,7 @@
 * @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: 小区-栋-层-房屋
 * 
@@ -1328,6 +1328,8 @@
                size: 10,
                aoiId: aoiId
            }
            this.businessData = []
            getBusinessList(params).then(res => {
                this.businessData = res.data.data.records
            })
@@ -1688,6 +1690,8 @@
        // 大搜之搜索面详细数据(停车场出入口商场、 小区名称类型地址、楼栋数据)
        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) => {
@@ -1788,8 +1792,6 @@
                            sitePitch: -45,
                        })
                        setTimeout(() => {
                            this.BuildListLoading = false
                            if (bgId !== '') {
                                let chooseBuildItem = []
                                this.buildingList.forEach((item) => {
@@ -1806,7 +1808,7 @@
                    } 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
@@ -1822,7 +1824,7 @@
                        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 => {
@@ -1835,8 +1837,6 @@
                    } 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
@@ -1856,6 +1856,7 @@
                }
                this.BuildListLoading = false
                this.callPolicePage.currentPage = 1
                this.getAlarmList()
            }).catch(res => {
@@ -1869,6 +1870,8 @@
        // 楼栋单元楼层户室查询--大搜
        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) {
@@ -1905,7 +1908,6 @@
                        })
                        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
@@ -1978,6 +1980,10 @@
                                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)
                                        }
                                    })
@@ -2814,14 +2820,30 @@
                            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,
                            ])
                        }
                    }
                })
            })