From f13afcb61276061871b30bce17a7877287df0b67 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Sat, 20 Jan 2024 09:56:43 +0800
Subject: [PATCH] 1
---
src/api/dept/index.js | 214 +++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 181 insertions(+), 33 deletions(-)
diff --git a/src/api/dept/index.js b/src/api/dept/index.js
index 8af24a1..932a0ca 100644
--- a/src/api/dept/index.js
+++ b/src/api/dept/index.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2022-11-30 15:18:29
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2022-12-05 15:23:32
+ * @LastEditTime: 2023-04-18 19:27:38
* @FilePath: \srs-police-affairs\src\api\dept\index.js
* @Description:
*
@@ -46,6 +46,7 @@
export const getResidentialQuartersInfo = (area_id, adcode) => {
return request({
url: '/sf3d/area/info',
+ // url: '/data/getResidentialQuartersInfo.json',
method: 'get',
authorization: false,
requestBaseUrl: 'fengt',
@@ -64,8 +65,11 @@
*/
export const getAoiByPt = (lng, lat, height, adcode, tolerance) => {
return request({
- url: '/sf3d/area/getAoiByPt',
+ // url: '/sf3d/area/getAoiByPt',
+ url: '/sf3d/area/stdgetAoiByPt',
+ // url: '/data/getAoiByBgId.json',
method: 'get',
+ authorization: false,
requestBaseUrl: 'fengt',
params: {
lng,
@@ -101,8 +105,11 @@
*/
export const getHouses = (build_id, adcode) => {
return request({
- url: '/sf3d/build/houses',
+ // url: '/sf3d/build/houses',
+ url: '/sf3d/build/stdhouses',
+ // url: '/data/huafu15d.json',
method: 'get',
+ authorization: false,
requestBaseUrl: 'fengt',
params: {
build_id,
@@ -111,20 +118,23 @@
})
}
+
/**
- * 大搜
+ * 大搜查询
* @param {*} adcode
* @returns
*/
-export const getSearchExtensively = (ak, region, query) => {
+export const getSearchExtensively = (ak, region, query, ids) => {
return request({
url: '/zhs/bs/search',
+ // url: '/data/jingzuo.json',
method: 'get',
requestBaseUrl: 'fengtDS',
params: {
ak,
region,
- query
+ query,
+ ids
}
})
}
@@ -137,6 +147,35 @@
export const getSearchExtensivelyBgAoiDeepdata = (ak, region, ids, infos) => {
return request({
url: '/zhs/bs/search',
+ // url: '/data/汇成观邸.json',
+ // url: '/data/search.json',
+ // url: '/data/阳光小区独栋.json',
+ // url: '/data/search汇杰小区.json',
+ // url: '/data/汪家园林家小区id详情搜.json',
+ // url: '/data/search三江星座.json',
+ method: 'get',
+ requestBaseUrl: 'fengtDS',
+ params: {
+ ak,
+ region,
+ ids,
+ infos,
+ }
+ })
+}
+
+/**
+ * 大搜-户室
+ * @param {*} adcode
+ * @returns
+ */
+export const getSearchExtensivelyHousesdata = (ak, region, ids, infos) => {
+ return request({
+ url: '/zhs/bs/search',
+ // url: '/data/汇成观邸-户室.json',
+ // url: '/data/阳光小区独栋.json',
+ // url: '/data/search汇杰小区1栋.json',
+ // url: '/data/汪家园林家小区2号id详情搜.json',
method: 'get',
requestBaseUrl: 'fengtDS',
params: {
@@ -160,21 +199,32 @@
})
}
-// 转id
-// export const getAoiByBgId = (bg_id) => {
-// return request({
-// url: `/sf3d/area/getAoiByBgId`,
-// method: 'get',
-// requestBaseUrl: 'fengt',
-// params: {
-// bg_id,
-// adcode: 361102,
-// type: 0
-// }
-// })
-// }
+// 小区树形数据
+export const getPoliceStationTrees = (params) => {
+ return request({
+ url: `/api/policeStationInfo/policeStationInfo/getPoliceStationTrees`,
+ method: 'get',
+ params: {
+ ...params
+ }
+ })
+}
-// 责任民警所属辖区
+// 转id
+export const getAoiByBgId = (bg_id) => {
+ return request({
+ url: `/sf3d/area/getAoiByBgId`,
+ method: 'get',
+ requestBaseUrl: 'fengt',
+ params: {
+ bg_id,
+ adcode: 361102,
+ type: 0
+ }
+ })
+}
+
+// 包干民警所属辖区
export const getVillageInfo = (aoiId) => {
return request({
url: `/api/villageInfo/villageInfo/details`,
@@ -185,13 +235,33 @@
})
}
-// 户籍人口、重点人口信息
-export const getVillagePersonStatisticInfoByBuildId = (buildId) => {
+// 派出所默认展示小区
+export const getPoliceSationVillageInfo = (param) => {
+ return request({
+ url: `/api/villageInfo/villageInfo/details`,
+ method: 'get',
+ params: param
+ })
+}
+
+// 户籍人口、重点人口信息 buildId/aoiId
+export const getVillagePersonStatisticInfoByBuildId = (params) => {
return request({
url: `/api/villagePersonInfo/villagePersonInfo/getVillagePersonStatisticInfoByBuildId`,
method: 'get',
params: {
- buildId
+ ...params
+ }
+ })
+}
+
+// 查询户室关联情况
+export const getPersonConnectionConditionByBuildingId = (params) => {
+ return request({
+ url: `/api/villagePersonInfo/villagePersonInfo/getPersonConnectionConditionByBuildingId`,
+ method: 'get',
+ params: {
+ ...params
}
})
}
@@ -204,10 +274,21 @@
params: {
resBusId,
buildId,
- status,
+ ...status,
current,
realName,
phone
+ }
+ })
+}
+
+// 户籍人口、重点人口信息
+export const getPicURL = (resBusId) => {
+ return request({
+ url: `/api/villagePersonInfo/villagePersonInfo/getPicURL`,
+ method: 'get',
+ params: {
+ resBusId,
}
})
}
@@ -220,29 +301,96 @@
})
}
-// 获取对应id下的派出所的责任区人口
-export const getVillagePersonStatisticInfoByPoliceStationId = (name, id) => {
+/**
+ * @description: 获取首页重点人员的数据
+ * @param {*} params
+ * @return {*}
+ */
+export const getPersonInfo = (params) => {
return request({
- url: `/api/villagePersonInfo/villagePersonInfo/getVillagePersonStatisticInfoByPoliceStationId`,
+ url: '/api/villagePersonInfo/villagePersonInfo/keyPersonnelCount',
method: 'get',
params: {
- name,
- id
+ ...params,
}
})
}
-// 获取该责任区下的人员列表信息
-export const getAreaPage = (current, size, areaId,policeName,phone) => {
+
+/**
+ * @description: 获取首页重点人员列表信息
+ * @param {*} params
+ * @return {*}
+ */
+export const getPersonInfoPage = (params) => {
+ return request({
+ url: '/api/villagePersonInfo/villagePersonInfo/page',
+ method: 'get',
+ params: {
+ ...params,
+ }
+ })
+}
+
+// 获取对应id下的派出所的责任区人口
+export const getVillagePersonStatisticInfoByPoliceStationId = (id, name) => {
+ return request({
+ url: `/api/villagePersonInfo/villagePersonInfo/getVillagePersonStatisticInfoByPoliceStationId`,
+ method: 'get',
+ params: {
+ id,
+ name
+ }
+ })
+}
+
+// 获取现有房屋
+export const getHouseStatisticInfo = (deptId, isFollow) => {
+ return request({
+ url: `/api/houseStatistic/houseStatistic/getHouseStatisticInfo`,
+ method: 'get',
+ params: {
+ deptId,
+ isFollow
+ }
+ })
+}
+
+/**
+ * @description: 原来获取户籍人口下责任区-人口信息,已作废
+ * @param {*} current
+ * @param {*} areaId
+ * @param {*} policeName
+ * @param {*} phone
+ * @param {*} size
+ * @return {*}
+ */
+export const getAreaPage = (current, areaId, policeName, phone, size) => {
return request({
url: `/api/policeStationInfo/policeStationInfo/getAreaPage`,
method: 'get',
params: {
current,
- size,
areaId,
policeName,
- phone
+ phone,
+ size
}
})
}
+
+/**
+ * @description:酒店列表
+ * @param {*} deptId
+ * @param {*} status
+ * @param {*} orderName
+ * @param {*} orderRule
+ * @return {*}
+ */
+export const getHotelList = (params) => {
+ return request({
+ url: `/api/hotel/hotel/page`,
+ method: 'get',
+ params
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3