| | |
| | | |
| | | // 机巢统计 |
| | | export const getDeviceInfoNum = params => { |
| | | return request({ |
| | | url: '/drone-device-core/manage/api/v1/devices/getDeviceInfoNum', |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | return request({ |
| | | url: '/drone-device-core/manage/api/v1/devices/getDeviceInfoNum', |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | | // 机巢列表 |
| | | export const selectDevicePage = ({ nickname, ...params }) => { |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/devices/selectDevicePage?type=${params.type}¤t=${params.current}&size=${params.size}`, |
| | | method: 'post', |
| | | data: { |
| | | nickname, |
| | | }, |
| | | }) |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/devices/selectDevicePage?type=${params.type}¤t=${params.current}&size=${params.size}`, |
| | | method: 'post', |
| | | data: { |
| | | nickname, |
| | | }, |
| | | }) |
| | | } |
| | | // 机巢数据 |
| | | export const getFlightStatistics = dockSn => { |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`, |
| | | method: 'get', |
| | | params: {}, |
| | | }) |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`, |
| | | method: 'get', |
| | | params: {}, |
| | | }) |
| | | } |
| | | // 机巢直播/无人机直播 均可使用 |
| | | export const liveStart = (deviceSn, quality) => { |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/live/streams/liveStart?deviceSn=${deviceSn}&quality=${quality}`, |
| | | method: 'post', |
| | | data: {}, |
| | | headers: { |
| | | areaCode: '', |
| | | }, |
| | | }) |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/live/streams/liveStart?deviceSn=${deviceSn}&quality=${quality}`, |
| | | method: 'post', |
| | | data: {}, |
| | | headers: { |
| | | areaCode: '', |
| | | }, |
| | | }) |
| | | } |
| | | // 单个机巢获取机巢详情 |
| | | export const getDeviceDetail = deviceSn => { |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/devices/getDeviceDetail?deviceSn=${deviceSn}`, |
| | | method: 'get', |
| | | params: {}, |
| | | }) |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/devices/getDeviceDetail?deviceSn=${deviceSn}`, |
| | | method: 'get', |
| | | params: {}, |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | // 设备-事件列表 |
| | | export const getDeviceEventList = (data,params) => { |
| | | return request({ |
| | | url: `/drone-device-core/jobEvent/eventPage`, |
| | | method: 'post', |
| | | data, |
| | | params |
| | | }) |
| | | export const getDeviceEventList = (data, params) => { |
| | | return request({ |
| | | url: `/drone-device-core/jobEvent/eventPage`, |
| | | method: 'post', |
| | | data, |
| | | params |
| | | }) |
| | | } |
| | | |
| | | // 事件列表---点位上图 |
| | | export const getEventList = (data, params) => { |
| | | return request({ |
| | | url: '/drone-device-core/jobEvent/eventList', |
| | | method: 'post', |
| | | data, |
| | | params |
| | | }) |
| | | } |
| | | |