1
guanqb
2023-05-07 bd1b553c6dca405494db795716f2b2ae315e384e
1
2 files modified
37 ■■■■■ changed files
src/api/dept/index.js 11 ●●●●● patch | view | raw | blame | history
src/views/house/index.vue 26 ●●●● patch | view | raw | blame | history
src/api/dept/index.js
@@ -266,6 +266,17 @@
    })
}
// 户籍人口、重点人口信息
export const getPicURL = (resBusId) => {
    return request({
        url: `/api/villagePersonInfo/villagePersonInfo/getPicURL`,
        method: 'get',
        params: {
            resBusId,
        }
    })
}
// 获取各个派出所的人口数量,以及人口总数和重点人员数量
export const getVillagePersonStatisticInfo = () => {
    return request({
src/views/house/index.vue
@@ -504,7 +504,8 @@
    getAoiByBgId,
    getPoliceSationVillageInfo,
    getAoiByPt,
    getSearchExtensivelyHousesdata
    getSearchExtensivelyHousesdata,
    getPicURL
} from "@/api/dept/index.js"
import { getAlarmList, getAlarmStatistics } from "@/api/home/index.js"
@@ -1412,17 +1413,11 @@
            let residentId = params.std_addr_id.split('|')[2]
            this.getResident3DData(residentId, "361102", params.sname)
            this.getVillagePersonInfo(params.uid)
            // this.houseDate = [
            //     { realName: '张三', phone: '17755556666', cardNo: '123456999911223344', personType: 1, status: 2, censusAddress: '湖北省武汉市江汉区', relation: '夫妻' },
            //     { realName: '李四', phone: '17755556666', cardNo: '123456999911223344', personType: 0, status: 2, censusAddress: '湖北省武汉市江汉区', relation: '夫妻' },
            //     { realName: '王五', phone: '17755556666', cardNo: '123456999911223344', personType: 1, status: 1, censusAddress: '湖北省武汉市江汉区', relation: '夫妻' },
            //     { realName: '孙六', phone: '17755556666', cardNo: '123456999911223344', personType: 1, status: 2, censusAddress: '湖北省武汉市江汉区', relation: '夫妻' },
            //     { realName: '薛七', phone: '17755556666', cardNo: '123456999911223344', personType: 0, status: 1, censusAddress: '湖北省武汉市江汉区', relation: '夫妻' },
            // ]
            this.getPicURL('8A44E902AEF51E2CCDEB44C93C82FE04')
            this.residentDetailsTitle = `${params.name}住户信息`
            this.residentDetailsShow = true
            this.residentNoDataText = ' '
            // this.residentLoading = true
            this.residentLoading = true
        },
        residentDetailsClose () {
@@ -1876,6 +1871,14 @@
            })
        },
        // 获取户室二维码
        getPicURL (id) {
            getPicURL(id).then(res => {
                this.residentCodeUrl = res.data.data
                console.log(this.residentCodeUrl)
            })
        },
        // 房屋人口信息
        getVillagePersonInfo (resBusId, buildId, typeObj, current, realName, phone) {
            getVillagePersonInfo(
@@ -1907,10 +1910,7 @@
                    }, 500)
                } else {
                    this.houseDate = res.data.data.records
                    this.residentCodeUrl = ''
                    if (this.houseDate.length > 0) {
                        this.residentCodeUrl = this.houseDate[0].url
                    }
                    setTimeout(() => {
                        this.residentLoading = false
                    }, 500)