forked from drone/command-center-dashboard

罗广辉
2025-04-01 888bc41f22b18b6ab05f248266a2c36d046ff717
src/api/home/machineNest.js
@@ -1,10 +1,30 @@
import request from '@/axios';
// 机巢列表
// 机巢统计
export const getDeviceInfoNum = () => {
  return request({
    url: '/manage/api/v1/devices/getDeviceInfoNum',
    method: 'post',
    url: 'drone-device-core/manage/api/v1/devices/getDeviceInfoNum',
    method: 'get',
    params: {},
  });
};
};
// 机巢列表
export const selectDevicePage = ({ nickname,is_execute, ...params}) => {
  return request({
    url: `drone-device-core/manage/api/v1/devices/selectDevicePage`,
    method: 'post',
    data: {
      nickname,
      is_execute,
    },
    params,
  });
};
// 机巢数据
export const getFlightStatistics = (dockSn) => {
  return request({
    url: `drone-device-core/manage/api/v1/devices/getFlightStatistics?dockSn=${dockSn}`,
    method: 'get',
    params: {},
  });
};