guanqb
2023-02-15 f5a2843261aded1ebf6c396f9b54c60cfac01f20
社区参数问题
2 files modified
31 ■■■■■ changed files
src/api/dept/index.js 6 ●●●●● patch | view | raw | blame | history
src/views/house/index.vue 25 ●●●●● patch | view | raw | blame | history
src/api/dept/index.js
@@ -202,13 +202,11 @@
}
// 派出所默认展示小区
export const getPoliceSationVillageInfo = (deptId) => {
export const getPoliceSationVillageInfo = (param) => {
    return request({
        url: `/api/villageInfo/villageInfo/details`,
        method: 'get',
        params: {
            deptId
        }
        params: param
    })
}
src/views/house/index.vue
@@ -777,24 +777,29 @@
        // 首页跳转社区包含参数
        if (this.$route.query.id) {
            this.getVillageInfo(this.$route.query.id)
            getAoiByBgId(this.$route.query.id).then(res => {
                let aoiId = res.data.data.features[0].properties.aoi_id
                this.getResidentialQuartersInfo(aoiId, '361102')
            })
            // 使用首页传过来的小区id获取停车场出入口商场和 小区名称类型地址数据
            this.getSearchExtensivelyBgAoiDeepdata('ebf48ecaa1fd436fa3d40c4600aa051f', '361100', this.$route.query.id, '1|3')
        } else {
            const data = {
                deptId: this.userInfo.dept_id
            }
            // 获得对应派出所默认展示小区
            getPoliceSationVillageInfo(this.userInfo.dept_id).then(res => {
            getPoliceSationVillageInfo(data).then(res => {
                console.log(res, this.userInfo.dept_id, 44784)
                let villageId = res.data.data.aoiId
                // let villageId = res.data.data.Md5Id
                //直接进入社区 默认获取万达广场的责任民警及所属辖区
                // this.getVillageInfo('644A2C4049024A3C8C76D96EEE4366FD')
                this.getVillageInfo(villageId)
                // this.getVillageInfo(villageId)
                // 测试万达
                this.getVillageInfo('644A2C4049024A3C8C76D96EEE4366FD')
                // 大搜之搜索面详细数据(停车场出入口商场)--默认万达华府
                // this.getSearchExtensivelyBgAoiDeepdata('ebf48ecaa1fd436fa3d40c4600aa051f', '361100', '644A2C4049024A3C8C76D96EEE4366FD', '1|3')
                this.getSearchExtensivelyBgAoiDeepdata('ebf48ecaa1fd436fa3d40c4600aa051f', '361100', villageId, '1|3')
                this.getSearchExtensivelyBgAoiDeepdata('ebf48ecaa1fd436fa3d40c4600aa051f', '361100', '644A2C4049024A3C8C76D96EEE4366FD', '1|3')
                // this.getSearchExtensivelyBgAoiDeepdata('ebf48ecaa1fd436fa3d40c4600aa051f', '361100', villageId, '1|3')
                // this.getResidentialQuartersInfo('6E513C5E5D1611EAB6183C15FB00027B', '361102')
                this.getResidentialQuartersInfo(villageId, '361102')
                // this.getResidentialQuartersInfo(villageId, '361102')
            })
        }
@@ -1450,6 +1455,8 @@
        // 获取责任民警、所属辖区
        getVillageInfo (aoiId) {
            getVillageInfo(aoiId).then(res => {
                console.log(4545454, res, res.data.data.md5Id)
                this.getResidentialQuartersInfo(res.data.data.md5Id, '361102')
                this.villageInfo.policeName = res.data.data.policeName
                this.villageInfo.policeStationName = res.data.data.policeStationName
            })