guanqb
2023-05-24 80bee8689b7ced6ff7e8cd2d9f7f3103583f544c
林家小区情况判断
2 files modified
2 files added
4919 ■■■■■ changed files
public/data/汪家园林家小区2号id详情搜.json 49 ●●●●● patch | view | raw | blame | history
public/data/汪家园林家小区id详情搜.json 4834 ●●●●● patch | view | raw | blame | history
src/api/dept/index.js 2 ●●●●● patch | view | raw | blame | history
src/views/house/index.vue 34 ●●●● patch | view | raw | blame | history
public/data/汪家园林家小区2号id详情搜.json
New file
@@ -0,0 +1,49 @@
{
    "status": 0,
    "message": "ok",
    "src": "gis-service-all-us",
    "total": 1,
    "result": [{
        "uid": "a76a8801eab4727c9049b70d77860db5",
        "name": "汪家园林家小区2号",
        "address": "江西省上饶市信州区茅家岭街道汪家园林家小区2号",
        "extinfo": "POLYGON((117.9497976851966 28.437034791644866,117.94979567990713 28.437140767274737,117.94990744889367 28.437145515903506,117.94991643974849 28.437039524626968,117.9497976851966 28.437034791644866))",
        "location": {
            "lng": 117.949854,
            "lat": 28.43709
        },
        "telephone": "",
        "type_name": "商务住宅|住宅区|住宅区",
        "type": 120300,
        "parent_id": "8ae938874cab332d0bb4258c5fe6599f",
        "adcode": "361102",
        "alias": "汪家园林家小区汪家园林家小区2号",
        "navi_location": [],
        "exttype": "BUILDING",
        "score": "",
        "std_addr_id": "21499F52BD7411EDA0956C92BFF57E65|35E21232BD7411ED8A973B09AF574C47|",
        "std_addr_address": "江西省上饶市信州区茅家岭街道汪家园林家小区|江西省上饶市信州区茅家岭街道汪家园林家小区2号|",
        "cid": "35E21232BD7411ED8A973B09AF574C47",
        "std_address": "江西省上饶市信州区茅家岭街道汪家园林家小区2号",
        "province": "江西省",
        "city": "上饶市",
        "district": "信州区",
        "cityadcode": "361100",
        "town": "茅家岭街道",
        "detail_infos": {
            "extinfo": "POLYGON((117.9497976851966 28.437034791644866,117.94979567990713 28.437140767274737,117.94990744889367 28.437145515903506,117.94991643974849 28.437039524626968,117.9497976851966 28.437034791644866))",
            "elev_num": 0,
            "elev": 0,
            "floor": 5,
            "pic_url": "361100/2UED8Q3DYS_1665969683532.jpg",
            "floor_room": ""
        },
        "business_id": "35E21232BD7411ED8A973B09AF574C47",
        "citycode": 793,
        "datasource": "mapcf",
        "pc_type": 1,
        "keylevel": "汪家园林家小区^13|2号^14",
        "pic_url": "361100/2UED8Q3DYS_1665969683532.jpg",
        "bg_id": "a76a8801eab4727c9049b70d77860db5"
    }]
}
public/data/汪家园林家小区id详情搜.json
New file
Diff too large
src/api/dept/index.js
@@ -151,6 +151,7 @@
        // url: '/data/search.json',
        // url: '/data/阳光小区独栋.json',
        // url: '/data/search汇杰小区.json',
        // url: '/data/汪家园林家小区id详情搜.json',
        // url: '/data/search三江星座.json',
        method: 'get',
        requestBaseUrl: 'fengtDS',
@@ -174,6 +175,7 @@
        // url: '/data/汇成观邸-户室.json',
        // url: '/data/阳光小区独栋.json',
        // url: '/data/search汇杰小区1栋.json',
        // url: '/data/汪家园林家小区2号id详情搜.json',
        method: 'get',
        requestBaseUrl: 'fengtDS',
        params: {
src/views/house/index.vue
@@ -264,7 +264,7 @@
                                    </el-select>
                                </div>
                            </div>
                            <div class="legend">
                            <!-- <div class="legend">
                                <div class="type">户室图例</div>
                                <div class="type-val">
                                    <div>
@@ -283,7 +283,7 @@
                                        已核实
                                    </div>
                                </div>
                            </div>
                            </div> -->
                            <el-main v-loading="pictLoading" element-loading-background="rgba(0, 0, 0, 0.5)"
                                element-loading-text="数据正在加载中" element-loading-spinner="el-icon-loading"
                                class="resident-box">
@@ -1479,6 +1479,15 @@
                if (res.data.result != []) {
                    let houseUintList = res.data.result[0]
                    this.unitAllArr = houseUintList
                    // 林家小区小区下只有楼栋情况
                    if (res.data.result.length > 0 && res.data.result[0].exttype == 'BUILDING') {
                        setTimeout(() => {
                            this.pictLoading = false
                        }, 3000)
                        this.isShowHouseBox = false
                        this.residentDetailsClick(houseUintList)
                        return
                    }
                    if (houseUintList.children_infos.length > 1 && houseUintList.children_infos[0].exttype == 'unit') {
                        this.isShowUnitChoose = true
                        this.unitOptions = []
@@ -1619,11 +1628,24 @@
        // 点击户室--大搜
        residentDetailsClick (params) {
            this.floorChoosed = params.sname
            let residentId = ''
            if (params.exttype == 'room') {
                residentId = params.std_addr_id.split('|')[2]
                this.getVillagePersonInfo(residentId)
                this.floorChoosed = params.sname
                this.getResident3DData(residentId)
            } else {
                residentId = params.std_addr_id.split('|')[1]
                this.getVillagePersonInfo('', residentId)
                this.$EventBus.$emit("toPosition", {
                    siteJd: Number(params.lng),
                    siteWd: Number(params.lat) - 0.0021,
                    siteGd: 240,
                    sitePitch: -45,
                })
            }
            console.log('residentDetailsClick--then')
            let residentId = params.std_addr_id.split('|')[2]
            this.getResident3DData(residentId)
            this.getVillagePersonInfo(residentId)
            this.getPicURL(residentId)
            this.residentDetailsTitle = `${params.name}住户信息`
            this.residentDetailsShow = true