diff --git a/ruoyi-ui/src/api/index.js b/ruoyi-ui/src/api/index.js new file mode 100644 index 0000000..15abe22 --- /dev/null +++ b/ruoyi-ui/src/api/index.js @@ -0,0 +1,57 @@ +import request from '@/utils/request' + +// 获取设备统计数据 +export function getDeviceStats() { + return request({ + url: '/index/deviceStats', + method: 'get' + }) +} + +// 获取任务统计数据 +export function getTaskStats() { + return request({ + url: '/index/taskStats', + method: 'get' + }) +} + +// 获取当前任务队列 +export function getCurrentTasks() { + return request({ + url: '/index/currentTasks', + method: 'get' + }) +} + +// 获取设备列表 +export function getDeviceList() { + return request({ + url: '/index/deviceList', + method: 'get' + }) +} + +// 获取任务类型分布图表数据 +export function getTaskTypeChart() { + return request({ + url: '/index/taskTypeChart', + method: 'get' + }) +} + +// 获取设备状态分布图表数据 +export function getDeviceStatusChart() { + return request({ + url: '/index/deviceStatusChart', + method: 'get' + }) +} + +// 获取首页综合数据 +export function getIndexData() { + return request({ + url: '/index/data', + method: 'get' + }) +} \ No newline at end of file