From 85fb13abbeadc1765d2c0056ba99c6c19aa35dfd Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sun, 09 Apr 2023 03:44:49 +0800
Subject: [PATCH] 电子沙盘的调整
---
src/api/dept/index.js | 316 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 309 insertions(+), 7 deletions(-)
diff --git a/src/api/dept/index.js b/src/api/dept/index.js
index 107e6e7..c650e0b 100644
--- a/src/api/dept/index.js
+++ b/src/api/dept/index.js
@@ -2,11 +2,11 @@
* @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-05 02:37:40
* @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"
@@ -15,10 +15,312 @@
* @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',
+ url: '/sf3d/area/stdgetAoiByPt',
+ method: 'get',
+ authorization: false,
+ 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',
+ url: '/sf3d/build/stdhouses',
+ method: 'get',
+ authorization: false,
+ requestBaseUrl: 'fengt',
+ params: {
+ build_id,
+ adcode
+ }
+ })
+}
+
+
+
+/**
+ * 大搜
+ * @param {*} adcode
+ * @returns
+ */
+export const getSearchExtensively = (ak, region, query, ids) => {
+ return request({
+ url: '/zhs/bs/search',
+ method: 'get',
+ requestBaseUrl: 'fengtDS',
+ params: {
+ ak,
+ region,
+ query,
+ ids
+ }
+ })
+}
+
+/**
+ * 大搜-搜索停车场、出入口、商场
+ * @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
+ }
+ })
+}
+
+// 小区树形数据
+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`,
+ method: 'get',
+ params: {
+ aoiId
+ }
+ })
+}
+
+// 派出所默认展示小区
+export const getPoliceSationVillageInfo = (param) => {
+ return request({
+ url: `/api/villageInfo/villageInfo/details`,
+ method: 'get',
+ params: param
+ })
+}
+
+// 户籍人口、重点人口信息
+export const getVillagePersonStatisticInfoByBuildId = (buildId) => {
+ return request({
+ url: `/api/villagePersonInfo/villagePersonInfo/getVillagePersonStatisticInfoByBuildId`,
+ method: 'get',
+ params: {
+ buildId
+ }
+ })
+}
+
+// 户籍人口、重点人口信息
+export const getVillagePersonInfo = (resBusId, buildId, status, current, realName, phone) => {
+ return request({
+ url: `/api/villagePersonInfo/villagePersonInfo/page`,
+ method: 'get',
+ params: {
+ resBusId,
+ buildId,
+ status,
+ current,
+ realName,
+ phone
+ }
+ })
+}
+
+// 获取各个派出所的人口数量,以及人口总数和重点人员数量
+export const getVillagePersonStatisticInfo = () => {
+ return request({
+ url: `/api/villagePersonInfo/villagePersonInfo/getVillagePersonStatisticInfo`,
+ method: 'get',
+ })
+}
+
+/**
+ * @description: 获取首页重点人员的数据
+ * @param {*} params
+ * @return {*}
+ */
+export const getPersonInfo = (params) => {
+ return request({
+ url: '/api/villagePersonInfo/villagePersonInfo/keyPersonnelCount',
+ method: 'get',
+ params: {
+ ...params,
+ }
+ })
+}
+
+
+/**
+ * @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,
+ areaId,
+ policeName,
+ phone,
+ size
+ }
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3