| | |
| | | import request from '@/axios'; |
| | | import request from '@/axios' |
| | | |
| | | // 巡检总任务数量 |
| | | export const getTotalJobNum = (params) => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/totalJobNum', |
| | | method: 'get', |
| | | params |
| | | }); |
| | | }; |
| | | export const getTotalJobNum = params => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/totalJobNum', |
| | | method: 'get', |
| | | params, |
| | | }) |
| | | } |
| | | |
| | | // 巡检任务item数量 |
| | | export const getJobStatistics = (data) => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/jobStatistics', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | }; |
| | | export const getJobStatistics = data => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/jobStatistics', |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | |
| | | // 巡检任务柱状图数据 |
| | | export const getJobNumBar = (data) => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/jobNumBar', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | }; |
| | | export const getJobNumBar = data => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/jobNumBar', |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | // 事件概况总数 |
| | | export const getJobEventTotal = () => { |
| | | return request({ |
| | | url: '/drone-device-core/jobEvent/total', |
| | | method: 'get', |
| | | }); |
| | | }; |
| | | return request({ |
| | | url: '/drone-device-core/jobEvent/total', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | // 事件概况分类数 |
| | | export const getJobEventByStatus = (data) => { |
| | | return request({ |
| | | url: '/drone-device-core/jobEvent/eventByStatus', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | }; |
| | | export const getJobEventBrokerLine = (data) => { |
| | | return request({ |
| | | url: '/drone-device-core/jobEvent/eventBrokerLine', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | }; |
| | | export const getJobEventByStatus = data => { |
| | | return request({ |
| | | url: '/drone-device-core/jobEvent/eventByStatus', |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | export const getJobEventBrokerLine = data => { |
| | | return request({ |
| | | url: '/drone-device-core/jobEvent/eventBrokerLine', |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | |
| | | // 任务成果 |
| | | export const getMediaFileCountBy = () => { |
| | | return request({ |
| | | url: '/blade-resource/media/api/v1/workspaces/files/getMediaFileCountBy', |
| | | method: 'get', |
| | | }); |
| | | }; |
| | | return request({ |
| | | url: '/blade-resource/media/api/v1/workspaces/files/getMediaFileCountBy', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | // 降本增效 |
| | | export const optimizeCostEfficiency = () => { |
| | | return request({ |
| | | url: '/drone-device-core/manage/api/v1/devices/optimizeCostEfficiency', |
| | | method: 'get', |
| | | }); |
| | | }; |
| | | return request({ |
| | | url: '/drone-device-core/manage/api/v1/devices/optimizeCostEfficiency', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | // 历史巡检任务列表 |
| | | export const getBeforeJob = (data) => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/beforeJob', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | }; |
| | | export const getBeforeJob = data => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/beforeJob', |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | // 当前巡检任务列表 |
| | | export const getTodayJob = (data) => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/todayJob', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | }; |
| | | export const getTodayJob = data => { |
| | | return request({ |
| | | url: `/drone-device-core/wayline/waylineJobInfo/todayJob?current=${data.current}&size=${data.size}`, |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | |
| | | // 巡检任务详情 柱状图 |
| | | export const jobNumBar = (data) => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/jobEventBar', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | }; |
| | | export const jobNumBar = data => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/waylineJobInfo/jobEventBar', |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | // 巡检任务详情 饼图 |
| | | export const eventNumPie = (data) => { |
| | | return request({ |
| | | url: '/drone-device-core/jobEvent/eventNumPie', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | }; |
| | | export const eventNumPie = data => { |
| | | return request({ |
| | | url: '/drone-device-core/jobEvent/eventNumPie', |
| | | method: 'post', |
| | | data, |
| | | }) |
| | | } |
| | | |
| | | // 获取区域 |
| | | export const getRegion = (code) => { |
| | | return request({ |
| | | url: '/blade-system/region/select', |
| | | method: 'get', |
| | | params:{code} |
| | | }); |
| | | }; |
| | | export const getRegion = code => { |
| | | return request({ |
| | | url: '/blade-system/region/select', |
| | | method: 'get', |
| | | params: { code }, |
| | | }) |
| | | } |
| | | // 立即返航 |
| | | export const flyByJobId = jobId => { |
| | | return request({ |
| | | url: '/drone-device-core/wayline/api/v1/workspaces/flyByJobId?jobId=' + jobId, |
| | | method: 'post', |
| | | }) |
| | | } |
| | | // 再次执行 |
| | | export const returnHome = sn => { |
| | | return request({ |
| | | url: `/drone-device-core/dp/home/${sn}/drc/returnHome`, |
| | | method: 'post', |
| | | }) |
| | | } |
| | | |
| | | // 根据经纬度获取区域code |
| | | export const getAreaCodeApi = (params) => { |
| | | return request({ |
| | | url: `/drone-device-core/map/amap/searchByLatLng?`, |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |