heyujie
2022-07-14 998cff2189462a97cb8d6e1e7b9f88d9ecca524b
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
import request from '@/scripts/httpRequest'
import qs from "qs";
 
 
//初始化查询
export const getlstInit = (query: any) =>
  request({
    url: '/data/api-c/lkg/getlstA',
    method: 'get',
    params: query
  })
export const getlst = (query: any) =>
  request({
    url: '/data/api-c/lkg/getlstB',
    method: 'get',
    params: query
  })
export const getShuohuangDepartTree = () =>
  request({
    url: '/data/api-c/dept/getlstWithUser',
    method: 'get'
  })
export const getOrganizeTree = () =>
  request({
    url: '/data/api-c/dept/getlstWithOutUser',
    method: 'get'
  })
 
export const updateFollow = (data: any) =>
  request({
    url: '/data/api-c/lkg/updateFollow',
    method: 'post',
    data: qs.stringify(data)
  })
export const getRelatedVideoInfo = (query: any) =>
  request({
    url: '/data/api-c/lkg/getRelatedVideo',
    method: 'get',
    params: query
  })
export const getCarVideos = (query: any) =>
  request({
    url: '/data/api-c/lkg/getCarVideos',
    method: 'get',
    params: query
  })
export const getLabelMap = () =>
  request({
    url: '/data/api-c/lkg/getCode',
    method: 'get'
  })
export const delLabel = (data: any) =>
  request({
    url: '/data/api-c/lkg/delLable',
    method: 'post',
    data
  })
export const editLabel = (data: any) =>
  request({
    url: '/data/api-c/lkg/addLable',
    method: 'post',
    data
  })
export const getMemberList = (query: any) =>
  request({
    url: '/data/api-c/user/getlst',
    method: 'get',
    params: query
  })
export const updateUnit = (query: any) =>
  request({
    url: '/data/api-c/user/updateUnit',
    method: 'post',
    params: query
  })
export const addMember = (data: any) =>
  request({
    url: '/data/api-c/user/add',
    method: 'post',
    data
  })
export const updateMemberInfo = (data: any) =>
  request({
    url: '/data/api-c/user/update',
    method: 'post',
    data
  })
export const uploadMemberPic = (data: any) =>
  request({
    url: '/data/api-c/user/upload',
    method: 'post',
    data
  })
export const getMemberByOrg = (query: any) =>
  request({
    url: '/data/api-c/user/getUserByDeptID',
    method: 'get',
    params: query
  })
export const getVideoListBySearch = (query: any) =>
  request({
    url: '/data/api-c/lkg/getlstBySearch',
    method: 'get',
    params: query
  })
export const addToAssignList = (data: any) =>
  request({
    url: '/data/api-c/lkg/assignMission',
    method: 'post',
    data
  })
export const getTaskList = (query: any) =>
  request({
    url: '/data/api-c/lkg/getTaskList',
    method: 'get',
    params: query
  })
export const distributeTask = (data: any) =>
  request({
    url: '/data/api-c/lkg/assignMissionEnd',
    method: 'post',
    data
  })
export const cancelMission = (data: any) =>
  request({
    url: '/data/api-c/lkg/cancelMission',
    method: 'post',
    data
  })
 
export const cancelAssign = (data: any) =>
  request({
    url: '/data/api-c/lkg/cancelAssign',
    method: 'post',
    data
  })
export const uploadDirectory = (data: any) =>
  request({
    url: '/data/api-c/user/uploadMulti',
    method: 'post',
    data
  })
 
export const getTransferRecord = (query: any) => request({
  url: '/data/api-c/saverecord/getlst',
  method: 'get',
  params: query
})
 
export const getTransferStatusList = () => request({
  url: '/data/api-c/saverecord/getStatusList',
  method: 'get'
})
export const addDevice = (data: any) => request({
  url: '/data/api-c/device/add',
  method: 'post',
  data
})
export const getDeviceList = () => request({
  url: '/data/api-c/device/getlst',
  method: 'get'
})
export const getDeviceInfo = (data: any) => request({
  url: '/data/api-c/slot/getlst',
  method: 'post',
  data: data
})
 
export const uploadLKG = (data: any) =>
  request({
    url: '/data/api-c/lkg/uploadLKGExcel',
    method: 'post',
    data
  })
 
export const getLKGData = () =>
  request({
    url: '/data/api-c/lkg/getLKGData',
    method: 'get',
  })
 
export const delLKGData = (query: any) =>
  request({
    url: '/data/api-c/lkg/delLKGData',
    method: 'get',
    params: query
  })
 
export const getEventVideo = (query: any) => request({
  url: '/data/api-c/event/getEventClip',
  method: 'get',
  params: query
})
 
export const getVideoUrl = (query: any) => request({
  url: '/data/api-c/event/getEventVideo',
  method: 'get',
  params: query
})
 
export const downloadFile = () => request({
  url: '/data/api-c/user/downloadExcel',
  method: 'get',
  responseType: "blob"
})
 
export const getHiddenEventStatistics = (query: any) => request({
  url: '/data/api-c/index/getHiddenEventStatistics',
  method: 'get',
  params: query
})