无人机管理后台前端(已迁走)
张含笑
2025-08-28 e1cb0923a89efbaddeec71a292607c4fa5cb33ac
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
import request from '@/axios';
// 获取图斑列表
export const getPatchesSpotList = params => {
    return request({
        url: `/drone-device-core/patches/api/v1/Patches/listPatches`,
        method: 'get',
        params,
    })
}
// 图斑类型分页
export const listOfSpotTypesApi = params => {
    return request({
        url: `/drone-device-core/patchesType/page`,
        method: 'get',
        params,
    })
}
// 图斑类型创建
export const spotTypesCreateApi = (data) => {
    return request({
        url: `/drone-device-core/patchesType/create`,
        method: 'post',
        data
    })
}
// 图斑类型编辑
export const editSpotTypeApi = (data) => {
    return request({
        url: `/drone-device-core/patchesType/updateType`,
        method: 'put',
        data
    })
}
// 图斑类型删除
export const deleteSpotTypeApi = (data) => {
    return request({
        url: `/drone-device-core/patchesType/batch`,
        method:'delete',
        data
    })
}
 
//图斑管理表格
export const spotManagementTableApi = params => {
    return request({
        url: `/drone-device-core/patches/api/v1/Patches/getPatchesPage`,
        method: 'get',
        params,
    })
}
// 图斑管理搜索
export const searchManagementApi = params => {
    return request({
        url: `/drone-device-core/patches/api/v1/Patches/getPatchesInfoUserAndArea`,
        method: 'get',
        params,
    })
}
// 图斑上传
export const uploadManagementApi = data => {
    return request({
        url: `/drone-device-core/patches/api/v1/Patches/uploadLot`,
        method: 'post',
        data,
    })
}
// 图斑地图表格接口
export const tableMapListApi = params => {
    return request({
        url: `/drone-device-core/patches/api/v1/Patches/getLotInfoByPatchesId`,
        method: 'get',
        params,
    })
}
// 导出
export const exportExcel = ids => {
    return request({
        url: `/drone-device-core/patches/api/v1/Patches/getExcel?ids=${ids}`,
        method: 'get',
        responseType: 'blob',
    })
}