guanqb
2023-04-27 10a59e5ecbc88dd8e2259c08d22eb32015b2d84f
社区调整
2 files modified
38 ■■■■■ changed files
src/api/dept/index.js 1 ●●●● patch | view | raw | blame | history
src/views/house/index.vue 37 ●●●●● patch | view | raw | blame | history
src/api/dept/index.js
@@ -149,6 +149,7 @@
        url: '/zhs/bs/search',
        // url: '/data/汇成观邸.json',
        // url: '/data/search.json',
        // url: '/data/阳光小区独栋.json',
        method: 'get',
        requestBaseUrl: 'fengtDS',
        params: {
src/views/house/index.vue
@@ -123,14 +123,14 @@
                                style="justify-content: center;">暂无楼栋数据
                            </div>
                        </el-main>
                        <div class="ridgepole-info">
                        <div class="ridgepole-info" v-if="isShowHouseBox">
                            <div class="title">楼栋信息</div>
                            <div class="content">
                                <div>
                                    <div>电梯</div>
                                    <div style="color:#72fff8x">{{ floorInfo.elev == 1 ? '有' : '无' }}</div>
                                </div>
                                <div>
                                <div v-if="isShowFloorCount">
                                    <div>楼层总数</div>
                                    <div style="color:#72fff8x">{{ floorInfo.floor_num }}</div>
                                </div>
@@ -140,7 +140,7 @@
                                </div>
                            </div>
                        </div>
                        <div class="people-info">
                        <div class="people-info" v-if="isShowHouseBox">
                            <div class="title">人口情况</div>
                            <div class="content">
                                <div class="one">
@@ -454,6 +454,7 @@
    data () {
        return {
            isShowFloorCount: false,
            isBuildHighLightchecked: true,
            isShowBuildListBox: true,
            // 下拉搜索--树状数据相关
@@ -568,7 +569,7 @@
            peopleName: "",
            callPhone: "",
            pictLoading: false,
            isShowHouseBox: true,
            isShowHouseBox: false,
            floorChoosed: {},
            isShowUnitChoose: false,
            isShowPictArrow: "never",
@@ -820,6 +821,7 @@
         */
        currentChangeHandle (current, currentNode) {
            if (current.hasChildren == true || current.type != 3) return
            this.filterText = ""
            this.prop = current.name
            if (current.type == 3) {
@@ -873,7 +875,6 @@
        getSearchExtensivelyBgAoiDeepdata (ak, region, ids, infos) {
            this.villageInfoLoading = true
            this.BuildListLoading = true
            this.pictLoading = true
            this.buildingList = []
            getSearchExtensivelyBgAoiDeepdata(ak, region, ids, infos).then((res) => {
                let baseUrl
@@ -937,15 +938,14 @@
                    })
                }
                this.unitChoosedArr = []
                // 小区楼栋数据
                if (
                    res.data.result[0].children_infos &&
                    res.data.result[0].children_infos.length
                ) {
                    console.log('building', res.data.result[0].children_infos)
                    console.log('search---building', res.data.result[0].children_infos)
                    if (res.data.result[0].children_infos[0].exttype == 'building') {
                        console.log('building', res.data.result[0].children_infos)
                        this.isShowBuildListBox = true
                        let buildData = res.data.result[0].children_infos
                        buildData.forEach((item) => {
@@ -972,12 +972,13 @@
                            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') {
                        console.log('search---unit')
                        this.isShowHouseBox = true
                        this.isShowBuildListBox = false
                        let houseUintList = res.data.result[0]
                        this.unitAllArr = houseUintList
                        console.log('unit')
                        this.isShowUnitChoose = true
                        this.unitOptions = []
                        this.unitValue = 1
@@ -989,7 +990,8 @@
                        })
                        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.floorInfo.floor_num = this.unitAllArr.children_infos[0].children_infos.length
                        this.isShowFloorCount = false
                        this.getVillagePersonStatisticInfoByBuildId(this.unitAllArr.uid)
                        let houseCount = 0
                        this.unitChoosedArr.forEach(item => {
@@ -998,9 +1000,6 @@
                            })
                            this.floorInfo.house_num = houseCount
                            this.isHaveResidentData = true
                            setTimeout(() => {
                                this.pictLoading = false
                            }, 3000)
                        })
                    }
@@ -1012,7 +1011,6 @@
                setTimeout(() => {
                    this.villageInfoLoading = false
                    this.BuildListLoading = false
                    this.pictLoading = false
                    this.isHaveResidentData = false
                }, 500)
            })
@@ -1177,6 +1175,7 @@
            if (this.buildingChoosed.name == item.name) return
            this.isBuildHighLightchecked = true
            this.unitHouseChoosed = []
            this.unitChoosedArr = []
            this.pictLoading = true
            if (!aoiArr) {
                this.$EventBus.$emit("clearHouse3D")
@@ -1192,6 +1191,7 @@
            this.buildingChoosed = item
            this.floorInfo.elev = item.elev
            this.floorInfo.floor_num = item.floor_num
            this.isShowFloorCount = true
            // 获取户籍人口重点人口数据
            this.choosedBuildId = item.build_id
            // 重点人口户籍人口
@@ -1280,7 +1280,12 @@
        chooseUnit (value) {
            this.floorsType = 1
            this.floorChoosed = []
            this.unitChoosedArr = this.unitAllArr.children_infos[this.unitValue - 1].children_infos
            this.unitChoosedArr = []
            this.pictLoading = true
            setTimeout(() => {
                this.unitChoosedArr = this.unitAllArr.children_infos[this.unitValue - 1].children_infos
                this.pictLoading = false
            }, 1000)
            let houseCount = 0
            this.unitChoosedArr.forEach(item => {
                item.children_infos.forEach(it => {