初始提交
This commit is contained in:
65
api/workFlow/schedule.js
Normal file
65
api/workFlow/schedule.js
Normal file
@@ -0,0 +1,65 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取日程安排列表
|
||||
export function List(data) {
|
||||
return request({
|
||||
url: '/api/system/Schedule/AppList',
|
||||
method: 'get',
|
||||
data,
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 新建日程安排
|
||||
export function ScheduleCreate(data) {
|
||||
return request({
|
||||
url: '/api/system/Schedule',
|
||||
method: 'post',
|
||||
data,
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 删除日程安排
|
||||
export function ScheduleDelete(id, type) {
|
||||
return request({
|
||||
url: `/api/system/Schedule/${id}/${type}`,
|
||||
method: 'DELETE',
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取日程安排信息
|
||||
export function ScheduleInfo(id) {
|
||||
return request({
|
||||
url: `/api/system/Schedule/${id}`,
|
||||
method: 'get',
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 更新日程安排
|
||||
export function ScheduleUpdate(data, type) {
|
||||
return request({
|
||||
url: `/api/system/Schedule/${data.id}/${type}`,
|
||||
method: 'PUT',
|
||||
data,
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
//查看日程详情
|
||||
export function ScheduleDetail(groupId, id) {
|
||||
return request({
|
||||
url: `/api/system/Schedule/detail?groupId=${groupId}&id=${id}`,
|
||||
method: 'get',
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user