初始提交
This commit is contained in:
44
api/home.js
Normal file
44
api/home.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
// 获取通知公告
|
||||
export function getNotice(data) {
|
||||
return request({
|
||||
url: '/api/visualdev/Dashboard/Notice',
|
||||
method: 'post',
|
||||
data,
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取未读邮件
|
||||
export function getEmail() {
|
||||
return request({
|
||||
url: '/api/visualdev/Dashboard/Email',
|
||||
method: 'get',
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取待办事项
|
||||
export function getFlowTodo(type) {
|
||||
return request({
|
||||
url: `/api/workflow/monitor/FlowTodo?type=${type}`,
|
||||
method: 'get',
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取我的待办事项
|
||||
export function getMyFlowTodo() {
|
||||
return request({
|
||||
url: '/api/visualdev/Dashboard/MyFlowTodo',
|
||||
method: 'get',
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user