From 559b060f7296969954ced4b17c8fc5d46a51cc1d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 17 Jan 2023 08:57:31 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/srs-police-affairs

---
 src/api/dept/index.js |   70 ++++++++++++++++++++++++++++++-----
 1 files changed, 60 insertions(+), 10 deletions(-)

diff --git a/src/api/dept/index.js b/src/api/dept/index.js
index befcbbf..39fa00c 100644
--- a/src/api/dept/index.js
+++ b/src/api/dept/index.js
@@ -4,9 +4,9 @@
  * @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"
 
@@ -149,13 +149,24 @@
 }
 
 // 小区树形数据
-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
         }
     })
 }
@@ -197,12 +208,51 @@
 }
 
 // 户籍人口、重点人口信息
-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
         }
     })
-}
\ No newline at end of file
+}
+
+// 获取各个派出所的人口数量,以及人口总数和重点人员数量
+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
+        }
+    })
+}

--
Gitblit v1.9.3