上饶市警务平台后台管理前端
zhongrj
2025-01-21 c393f8b721c1e7f6ea65ff0f3ad3a47dce71cfbc
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
import request from '@/router/axios';
 
export const getList = (current, size, params) => {
  return request({
    url: '/api/security/security/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
 
export const getPage = (current, size, params) => {
  return request({
    url: '/api/security/security/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
 
export const getAll = () => {
  return request({
    url: '/api/security/security/all',
    method: 'get',
  })
}
 
export const getDetail = (id) => {
  return request({
    url: '/api/security/security/details',
    method: 'get',
    params: {
      id
    }
  })
}
 
export const remove = (ids) => {
  return request({
    url: '/api/security/security/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}
 
export const add = (row) => {
  return request({
    url: '/api/security/security/submit',
    method: 'post',
    data: row
  })
}
 
export const update = (row) => {
  return request({
    url: '/api/security/security/submit',
    method: 'post',
    data: row
  })
}
 
//http://192.168.0.112:18080/sf3d/area/getAoiByPt?lng=117.9471794&lat=28.4474852&height=0&tolerance=10&adcode=361102
export const getAoiByPt = (row) =>{
  return request({
    url:'http://192.168.0.112:18080/sf3d/area/getAoiByPt',
    method:'get',
    data:row
  })
}
 
//192.168.0.112:9091/zhs/bs/search?ak=ebf48ecaa1fd436fa3d40c4600aa051f&region=361100&query=公安局&ids=61743e28bbf11700e9fc4ef03dd8bea9
export const searchByQuery  = (ak, region, query, ids) => {
  return request({
    url: '/bsapi/zhs/bs/search',
    method: 'get',
    params: {
      ak,
      region,
      query,
      ids
    }
  })
}
 
//http://{IP}:{PORT}/zhs/bs/search?ak=***&query= 万 达 商 场
// &region=440300&region_type=circle&page_size=3&page_num=1&infos=1&radius=500&location=113.841901,22.628249
export const searchByLonLat  = (ak, query,region,region_type,page_size,page_num,infos,radius,location) => {
  return request({
    url: '/bsapi/zhs/bs/search',
    method: 'get',
    params: {
      ak,
      query,
      region,
      region_type,
      page_size,
      page_num,
      infos,
      radius,
      location
    }
  })
}