| | |
| | | import request from '@/axios' |
| | | |
| | | // 查 |
| | | // 查page |
| | | export const fwDevicePageApi = params => { |
| | | return request({ |
| | | url: `/drone-fw/device/fwDevice/page`, |
| | | method: 'get', |
| | | params:{descs:'update_time',...params}, |
| | | }) |
| | | } |
| | | |
| | | // 查list |
| | | export const fwDeviceListApi = params => { |
| | | return request({ |
| | | url: `/drone-fw/fwDevice/fwDevice/list`, |
| | | url: `/drone-fw/device/fwDevice/list`, |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | | // 增 |
| | | export const fwDeviceSaveApi = data => { |
| | | |
| | | // 多边形过滤设备列表 |
| | | export const fwDeviceListByPolygonsApi = data => { |
| | | return request({ |
| | | url: `/drone-fw/fwDevice/fwDevice/save`, |
| | | url: `/drone-fw/device/fwDevice/listByPolygons`, |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | // 改 |
| | | export const fwDeviceUpdateApi = data => { |
| | | |
| | | // 增加或更新 |
| | | export const fwDeviceSubmitApi = data => { |
| | | return request({ |
| | | url: `/drone-fw/fwDevice/fwDevice/update`, |
| | | url: `/drone-fw/device/fwDevice/submit`, |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | |
| | | //删除 |
| | | export const fwDeviceRemoveApi = data => { |
| | | export const fwDeviceRemoveApi = params => { |
| | | return request({ |
| | | url: `/drone-fw/fwDevice/fwDevice/remove`, |
| | | url: `/drone-fw/device/fwDevice/remove`, |
| | | method: 'post', |
| | | data, |
| | | params, |
| | | }) |
| | | } |
| | | |
| | | //详情 |
| | | export const fwDeviceDetailApi = params => { |
| | | return request({ |
| | | url: `/drone-fw/fwDevice/fwDevice/detail`, |
| | | url: `/drone-fw/device/fwDevice/detail`, |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | | |
| | | //导出 |
| | | export const exportFwDeviceApi = () => { |
| | | return request({ |
| | | url: `/drone-fw/record/fwDroneAlarmRecord/export-fwDroneAlarmRecord`, |
| | | method: 'get', |
| | | responseType: 'blob', |
| | | }) |
| | | } |
| | | |
| | | //设备类型统计 |
| | | export const statisticalDeviceTypeApi = params => { |
| | | return request({ |
| | | url: `/drone-fw/device/fwDevice/statisticalDeviceType`, |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | | //设备出库去向统计 |
| | | export const statisticalDeviceOutApi = params => { |
| | | return request({ |
| | | url: `/drone-fw/device/fwDevice/statisticalDeviceOut`, |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | | //设备生产厂商统计 |
| | | export const statisticalDeviceManufacturerApi = params => { |
| | | return request({ |
| | | url: `/drone-fw/device/fwDevice/statisticalDeviceManufacturer`, |
| | | method: 'get', |
| | | params, |
| | | }) |