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
| import request from '@/axios'
|
| // 任务总数统计
| export const totalJobNum = params => {
| return request({
| url: '/drone-device-core/wayline/waylineJobInfo/totalJobNum',
| method: 'get',
| params: params,
| })
| }
| // 其他任务统计
| export const jobStatistics = data => {
| return request({
| url: '/drone-device-core/wayline/waylineJobInfo/jobStatistics',
| method: 'post',
| data: data,
| })
| }
| // 行业任务统计
| export const industryJobNumPieChart = data => {
| return request({
| url: '/drone-device-core/wayline/waylineJobInfo/industryJobNumPieChart',
| method: 'post',
| data: data,
| })
| }
| // 时间任务统计
| export const jobNumBar = data => {
| return request({
| url: '/drone-device-core/wayline/waylineJobInfo/jobNumBar',
| method: 'post',
| data: data,
| })
| }
| // 事件任务统计
| export const jobEventBar = data => {
| return request({
| url: '/drone-device-core/wayline/waylineJobInfo/jobEventBar',
| method: 'post',
| data: data,
| })
| }
| // 任务列表
| export const jobList = data => {
| return request({
| url: '/drone-device-core/wayline/waylineJobInfo/jobList?current=' + data.current + '&size=' + data.size,
| method: 'post',
| data: data.searchParams,
| })
| }
| // 任务详情
| export const getJobDetails = params => {
| return request({
| url: '/drone-device-core/wayline/waylineJobInfo/jobDetails',
| method: 'get',
| params,
| })
| }
|
| // 设备-任务列表
| export const getDeviceJobList = (data, params) => {
| return request({
| url: `/drone-device-core/wayline/waylineJobInfo/jobList`,
| method: 'post',
| data,
| params,
| })
| }
|
| // 根据任务id查成果
| export const getJobInfoFiles = params => {
| return request({
| url: `/blade-resource/media/api/v1/workspaces/files/getJobInfoFiles`,
| method: 'get',
| params,
| })
| }
|
| // 根据任务id和批次号 查成果
| export const getEventMediaListApi = data => {
| return request({
| url: `/drone-device-core/jobEvent/eventMediaList`,
| method: 'POST',
| data,
| })
| }
|
| // 获取航线列表
| export const getWaylineList = params => {
| return request({
| url: `/drone-device-core/wayline/api/v1/workspaces/getWaylineFileListByArea`,
| method: 'get',
| params,
| })
| }
|
| // 获取可飞行机巢列表
| export const getFlyingNestBy = (data, page) => {
| return request({
| url: `/drone-device-core/manage/api/v1/devices/getFlyingNestBy?current=${page.current}&size=${page.size}`,
| method: 'post',
| data: data,
| })
| }
|
| // 机场发布功能
| export const createTask = data => {
| return request({
| url: `/drone-device-core/wayline/waylineJobInfo/createTask`,
| method: 'post',
| data,
| })
| }
|
| // 面状航线
| export const getWaylineByArea = data => {
| return request({
| url: `/drone-device-core/wayline/api/v1/workspaces/getWaylineByArea`,
| method: 'post',
| data,
| })
| }
|
| // 单机巢取消任务
| export const cancelWayline = data => {
| return request({
| url: `/drone-device-core/wayline/api/v1/workspaces/${data.dock_sn}/cancelOneJobs?job_id=${data.job_id}`,
| method: 'delete',
| })
| }
| // 都使用最新的取消任务接口
| export const cancelJobs = data => {
| return request({
| url: `/drone-device-core/wayline/api/v1/workspaces/cancelJobs?batchNo=${data.batchNo}&jobInfoId=${data.jobInfoId}&isSingle=${data.isSingle}`,
| method: 'delete',
| })
| }
|
| // 任务管理-取消任务
| export const cancelAllWayline = data => {
| return request({
| url: `/drone-device-core/wayline/api/v1/workspaces/${data.dock_sn}/cancelAllJobs?job_id=${data.job_id}`,
| method: 'delete',
| data,
| })
| }
| // 任务管理-返航
| export const taskReturnLines = data => {
| return request({
| url: `/drone-device-core/dp/home/drc/moreReturnHome`,
| method: 'post',
| data,
| })
| }
|
| export const deptsByAreaCode = params => {
| return request({
| url: `/blade-system/dept/deptsByAreaCode?areaCode=${params}`,
| method: 'get',
| params: {},
| })
| }
|
| export const getDeviceRegion = params => {
| return request({
| url: '/drone-device-core/manage/api/v1/devices/getDeviceRegion',
| method: 'get',
| params,
| })
| }
|
| // 获取区域全部
| export const getRegionTreeAll = params => {
| return request({
| url: '/blade-system/region/findRegionByPartnerCode',
| method: 'get',
| params,
| })
| }
|
| // 设备-事件列表
| export const getDeviceEventList = (data, params) => {
| return request({
| url: `/drone-device-core/jobEvent/eventPage`,
| method: 'post',
| data,
| params,
| })
| }
|
| // 多个字典查询
| export const getMultipleDictionary = params => {
| return request({
| url: `/blade-system/dict-biz/listByCodes?codes=${params}`,
| method: 'get',
| })
| }
|
|