首页与国际化
This commit is contained in:
57
ruoyi-ui/src/api/index.js
Normal file
57
ruoyi-ui/src/api/index.js
Normal 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'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user