| | |
| | | }) |
| | | } |
| | | |
| | | // 户籍人口、重点人口信息 |
| | | export const getPicURL = (resBusId) => { |
| | | return request({ |
| | | url: `/api/villagePersonInfo/villagePersonInfo/getPicURL`, |
| | | method: 'get', |
| | | params: { |
| | | resBusId, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // 获取各个派出所的人口数量,以及人口总数和重点人员数量 |
| | | export const getVillagePersonStatisticInfo = () => { |
| | | return request({ |
| | |
| | | getAoiByBgId, |
| | | getPoliceSationVillageInfo, |
| | | getAoiByPt, |
| | | getSearchExtensivelyHousesdata |
| | | getSearchExtensivelyHousesdata, |
| | | getPicURL |
| | | } from "@/api/dept/index.js" |
| | | import { getAlarmList, getAlarmStatistics } from "@/api/home/index.js" |
| | | |
| | |
| | | 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 () { |
| | |
| | | }) |
| | | }, |
| | | |
| | | // 获取户室二维码 |
| | | getPicURL (id) { |
| | | getPicURL(id).then(res => { |
| | | this.residentCodeUrl = res.data.data |
| | | console.log(this.residentCodeUrl) |
| | | }) |
| | | }, |
| | | |
| | | // 房屋人口信息 |
| | | getVillagePersonInfo (resBusId, buildId, typeObj, current, realName, phone) { |
| | | getVillagePersonInfo( |
| | |
| | | }, 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) |