1
guanqb
2024-01-20 f13afcb61276061871b30bce17a7877287df0b67
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
/*
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-11-30 15:18:29
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2023-04-18 19:27:38
 * @FilePath: \srs-police-affairs\src\api\dept\index.js
 * @Description:
 *
 * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved.
 */
import request from "@/router/axios.js"
 
/**
 * 获取派出所和责任区数据
 * @param {*} params
 * @returns
 */
export const getPoliceStationList = () => {
    return request({
        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',
        // url: '/data/getResidentialQuartersInfo.json',
        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',
        // url: '/data/getAoiByBgId.json',
        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',
        // url: '/data/huafu15d.json',
        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',
        // url: '/data/jingzuo.json',
        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',
        // 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: {
            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
    })
}
 
// 户籍人口、重点人口信息  buildId/aoiId
export const getVillagePersonStatisticInfoByBuildId = (params) => {
    return request({
        url: `/api/villagePersonInfo/villagePersonInfo/getVillagePersonStatisticInfoByBuildId`,
        method: 'get',
        params: {
            ...params
        }
    })
}
 
// 查询户室关联情况
export const getPersonConnectionConditionByBuildingId = (params) => {
    return request({
        url: `/api/villagePersonInfo/villagePersonInfo/getPersonConnectionConditionByBuildingId`,
        method: 'get',
        params: {
            ...params
        }
    })
}
 
// 户籍人口、重点人口信息
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 getPicURL = (resBusId) => {
    return request({
        url: `/api/villagePersonInfo/villagePersonInfo/getPicURL`,
        method: 'get',
        params: {
            resBusId,
        }
    })
}
 
// 获取各个派出所的人口数量,以及人口总数和重点人员数量
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
        }
    })
}
 
/**
 * @description:酒店列表
 * @param {*} deptId
 * @param {*} status
 * @param {*} orderName
 * @param {*} orderRule
 * @return {*}
 */
export const getHotelList = (params) => {
    return request({
        url: `/api/hotel/hotel/page`,
        method: 'get',
        params
    })
}