| | |
| | | }) |
| | | } |
| | | // 导出 |
| | | export const exportExcel = ids => { |
| | | export const exportExcel = data => { |
| | | return request({ |
| | | url: `/drone-device-core/patches/api/v1/Patches/getExcel?ids=${ids}`, |
| | | method: 'get', |
| | | url: `/drone-device-core/patches/api/v1/Patches/exportExcel`, |
| | | method: 'post', |
| | | data, |
| | | 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, |
| | | }) |
| | | } |
| | | // 获取所有图斑数据 |
| | | export const AlltableMapListApi = params => { |
| | | return request({ |
| | | url: `/drone-device-core/patches/api/v1/Patches/getLotInfoList`, |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |