From 8b2fc551d8bee2d2143a36e1e2fcd7e81d051b18 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Sun, 15 Jan 2023 15:21:25 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
---
src/api/dept/index.js | 190 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 187 insertions(+), 3 deletions(-)
diff --git a/src/api/dept/index.js b/src/api/dept/index.js
index 107e6e7..befcbbf 100644
--- a/src/api/dept/index.js
+++ b/src/api/dept/index.js
@@ -15,10 +15,194 @@
* @param {*} params
* @returns
*/
-export const getPoliceStationList = (requestBaseUrl = 'outside') => {
+export const getPoliceStationList = () => {
return request({
- url: '/blade-system/dept/getAllPoliceStation',
- requestBaseUrl,
+ url: '/api/blade-system/dept/getAllPoliceStation',
method: 'get',
})
}
+
+/**
+ * 获取指定行政区小区列表
+ * @param {*} adcode
+ * @returns
+ */
+export const getResidentialQuartersList = (adcode) => {
+ return request({
+ url: '/sf3d/area/list',
+ method: 'get',
+ requestBaseUrl: 'fengt',
+ params: {
+ adcode
+ }
+ })
+}
+
+/**
+ * 获取行政区指定责任区信息
+ * @param {*} adcode
+ * @returns
+ */
+export const getResidentialQuartersInfo = (area_id, adcode) => {
+ return request({
+ url: '/sf3d/area/info',
+ method: 'get',
+ authorization: false,
+ requestBaseUrl: 'fengt',
+ params: {
+ area_id,
+ adcode
+ }
+ })
+}
+
+
+/**
+ * 点查询
+ * @param {*} adcode
+ * @returns
+ */
+export const getAoiByPt = (lng, lat, height, adcode, tolerance) => {
+ return request({
+ url: '/sf3d/area/getAoiByPt',
+ method: 'get',
+ requestBaseUrl: 'fengt',
+ params: {
+ lng,
+ lat,
+ height,
+ adcode,
+ tolerance
+ }
+ })
+}
+
+/**
+ * 小区单元查询
+ * @param {*} adcode
+ * @returns
+ */
+export const getUnitbuild = (area_id, adcode) => {
+ return request({
+ url: '/sf3d/area/unitbuild',
+ method: 'get',
+ requestBaseUrl: 'fengt',
+ params: {
+ area_id,
+ adcode
+ }
+ })
+}
+
+/**
+ * 楼栋单元户室查询
+ * @param {*} adcode
+ * @returns
+ */
+export const getHouses = (build_id, adcode) => {
+ return request({
+ url: '/sf3d/build/houses',
+ method: 'get',
+ requestBaseUrl: 'fengt',
+ params: {
+ build_id,
+ adcode
+ }
+ })
+}
+
+/**
+ * 大搜
+ * @param {*} adcode
+ * @returns
+ */
+export const getSearchExtensively = (ak, region, query) => {
+ return request({
+ url: '/zhs/bs/search',
+ method: 'get',
+ requestBaseUrl: 'fengtDS',
+ params: {
+ ak,
+ region,
+ query
+ }
+ })
+}
+
+/**
+ * 大搜-搜索停车场、出入口、商场
+ * @param {*} adcode
+ * @returns
+ */
+export const getSearchExtensivelyBgAoiDeepdata = (ak, region, ids, infos) => {
+ return request({
+ url: '/zhs/bs/search',
+ method: 'get',
+ requestBaseUrl: 'fengtDS',
+ params: {
+ ak,
+ region,
+ ids,
+ infos,
+ }
+ })
+}
+
+// 小区树形数据
+export const getPoliceStationLazyTree = (type, id) => {
+ return request({
+ url: `/api/policeStationInfo/policeStationInfo/getPoliceStationLazyTree`,
+ method: 'get',
+ params: {
+ type,
+ id
+ }
+ })
+}
+
+// 转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`,
+ method: 'get',
+ params: {
+ aoiId
+ }
+ })
+}
+
+// 户籍人口、重点人口信息
+export const getVillagePersonStatisticInfoByBuildId = (buildId) => {
+ return request({
+ url: `/api/villagePersonInfo/villagePersonInfo/getVillagePersonStatisticInfoByBuildId`,
+ method: 'get',
+ params: {
+ buildId
+ }
+ })
+}
+
+// 户籍人口、重点人口信息
+export const getVillagePersonInfo = (resBusId) => {
+ return request({
+ url: `/api/villagePersonInfo/villagePersonInfo/page`,
+ method: 'get',
+ params: {
+ resBusId
+ }
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3