You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

27 lines
606 B

import { defHttp } from '@/utils/http/axios'
export type LeaveVO = {
id: number
result: number
type: number
reason: string
processInstanceId: string
startTime: string
endTime: string
createTime: string
}
// 创建请假申请
export function createLeave(data: LeaveVO) {
return defHttp.post({ url: '/bpm/oa/leave/create', data })
}
// 获得请假申请
export function getLeave(id: number) {
return defHttp.get({ url: '/bpm/oa/leave/get?id=' + id })
}
// 获得请假申请分页
export function getLeavePage(params) {
return defHttp.get({ url: '/bpm/oa/leave/page', params })
}