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
| 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
| })
| }
|
| // 获取航线列表
| 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,
| })
| }
|
|