吉安感知网项目-前端
罗广辉
2026-01-26 beb95fb5fc166804056abafd70fc01ac27de7621
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
import request from '@/axios'
import { ElMessage } from 'element-plus'
 
export const getWaylineFileListApi = params => {
    return request({
        url: `/drone-device-core/wayline/api/v1/workspaces/getWaylineFileList`,
        method: 'get',
        params,
    })
}
 
export const newGetWorkspacesPage = params => {
    return request({
        url: `/drone-device-core/wayline/api/v1/wayline-groups/page`,
        method: 'get',
        params,
    })
}
 
export const updateWaylineNameApi = params => {
    return request({
        url: `/drone-device-core/wayline/api/v1/wayline-groups/updateWaylineName`,
        method: 'put',
        params,
    })
}
 
export const creatWaylineApi = data => {
    return request({
        url: `/drone-device-core/dp/home/flyToPointsSplit`,
        method: 'post',
        data,
    })
}
 
export const updateWaylineApi = data => {
    return request({
        url: `/drone-device-core/dp/home/updateWaylineSplit/${data.id}`,
        method: 'post',
        data,
    })
}
 
export const deleteWaylineApi = params => {
    return request({
        url: `/drone-device-core/wayline/api/v1/wayline-groups/waylines/remove`,
        method: 'post',
        params,
    })
}
 
// 获取航线规划-航线拆分
export const getWaylineSplitApi = id => {
    return request({
        url: `/drone-device-core/wayline/api/v1/wayline-groups/${id}`,
        method: 'get',
    })
}
 
// waylineType:航线类型 0普通 1图斑 2航测 3航点 4正射举证
// dkbh:图斑举证航线的图斑编号
// patchesId:举证图斑的id
// isTemp:是否为临时航线,0为临时航线不保存在库中
export const importKmzFileApi = function (data, params = {}) {
    let url = `/drone-device-core/wayline/api/v1/workspaces/waylines/file/uploadFile`
    return request({
        url: url,
        method: 'post',
        headers: { 'Content-Type': 'multipart/form-data' },
        data,
        params,
    })
}
 
// 上传录音 文件
export const waylineSpeakApi = data => {
    return request({
        url: `/drone-device-core/speak/api/v1/waylineSpeak`,
        method: 'post',
        data,
    })
}
 
// 获取音频列表
export const getVoiceByUserIdApi = params => {
    return request({
        url: `/drone-device-core/speak/api/v1/getVoiceByUserId`,
        method: 'get',
        params,
    })
}
 
// 删除音频
export const deleteSpeakVoiceByIdApi = id => {
    return request({
        url: `/drone-device-core/speak/api/v1/deleteSpeakVoiceById`,
        method: 'delete',
        params: { id },
    })
}
 
// 获取音频列表
export const updateSpeakVoiceByIdApi = params => {
    return request({
        url: `/drone-device-core/speak/api/v1/updateSpeakVoiceById`,
        method: 'put',
        params,
    })
}
// 获取音频详情
export const getSpeakVoiceByIdApi = id => {
    return request({
        url: `/drone-device-core/speak/api/v1/getSpeakVoiceById`,
        method: 'get',
        params: { id },
    })
}
 
// 判断当前航线是否有执行中或者待执行任务
export const hasPendingOrRunningJobs = di => {
    return request({
        url: `/drone-device-core/wayline/api/v1/workspaces/hasPendingOrRunningJobs/${di}`,
        method: 'get',
    })
}
 
export const getAreaGridFilmGeoJsonApi = () => {
    return request({
        url: `/drone-odm/whiteFilmGeoJson/getAreaGridFilmGeoJson`,
        method: 'get',
    })
}