| | |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2022-12-05 15:23:32 |
| | | * @FilePath: \srs-police-affairs\src\api\dept\index.js |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. |
| | | */ |
| | | import request from "@/router/axios.js" |
| | | |
| | |
| | | } |
| | | |
| | | // 小区树形数据 |
| | | export const getPoliceStationLazyTree = (type, id) => { |
| | | // export const getPoliceStationLazyTree = (type, id) => { |
| | | // return request({ |
| | | // url: `/api/policeStationInfo/policeStationInfo/getPoliceStationLazyTree`, |
| | | // method: 'get', |
| | | // params: { |
| | | // type, |
| | | // id |
| | | // } |
| | | // }) |
| | | // } |
| | | |
| | | // 小区树形数据 |
| | | export const getPoliceStationTrees = (name) => { |
| | | return request({ |
| | | url: `/api/policeStationInfo/policeStationInfo/getPoliceStationLazyTree`, |
| | | url: `/api/policeStationInfo/policeStationInfo/getPoliceStationTrees`, |
| | | method: 'get', |
| | | params: { |
| | | type, |
| | | id |
| | | name |
| | | } |
| | | }) |
| | | } |
| | |
| | | } |
| | | |
| | | // 户籍人口、重点人口信息 |
| | | export const getVillagePersonInfo = (resBusId) => { |
| | | export const getVillagePersonInfo = (resBusId, buildId, status, current, realName, phone) => { |
| | | return request({ |
| | | url: `/api/villagePersonInfo/villagePersonInfo/page`, |
| | | method: 'get', |
| | | params: { |
| | | resBusId |
| | | resBusId, |
| | | buildId, |
| | | status, |
| | | current, |
| | | realName, |
| | | phone |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | // 获取各个派出所的人口数量,以及人口总数和重点人员数量 |
| | | export const getVillagePersonStatisticInfo = () => { |
| | | return request({ |
| | | url: `/api/villagePersonInfo/villagePersonInfo/getVillagePersonStatisticInfo`, |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | // 获取对应id下的派出所的责任区人口 |
| | | export const getVillagePersonStatisticInfoByPoliceStationId = (name, id) => { |
| | | return request({ |
| | | url: `/api/villagePersonInfo/villagePersonInfo/getVillagePersonStatisticInfoByPoliceStationId`, |
| | | method: 'get', |
| | | params: { |
| | | name, |
| | | id |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // 获取该责任区下的人员列表信息 |
| | | export const getAreaPage = (current, areaId, policeName, phone) => { |
| | | return request({ |
| | | url: `/api/policeStationInfo/policeStationInfo/getAreaPage`, |
| | | method: 'get', |
| | | params: { |
| | | current, |
| | | areaId, |
| | | policeName, |
| | | phone |
| | | } |
| | | }) |
| | | } |