首页与国际化

This commit is contained in:
猫猫guowen
2025-08-05 15:41:03 +08:00
parent 4e5ba7fd59
commit 91d92b81e5

57
ruoyi-ui/src/api/index.js Normal file
View File

@@ -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'
})
}