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
| 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',
| })
| }
| // 图斑管理删除
| export const patchDeleteApi = (id) => {
| return request({
| url: `/drone-device-core/patches/api/v1/Patches/delete/${id}`,
| method: 'delete'
| })
| }
| // 编辑图斑信息
| export const patchEditApi = (data) => {
| return request({
| url: `/drone-device-core/patches/api/v1/Patches/updatePatchesInfo`,
| method: 'put',
| data
| })
| }
| // 删除数据
| export const deletePatches = params => {
| return request({
| url: `/drone-device-core/patches/api/v1/Patches/deleteBatch`,
| method: 'delete',
| params,
| })
| }
|
|