diff --git a/src/api/workflow/leave/index.ts b/src/api/workflow/leave/index.ts index 4e6f363..5a88edb 100644 --- a/src/api/workflow/leave/index.ts +++ b/src/api/workflow/leave/index.ts @@ -39,6 +39,18 @@ export const addLeave = (data: LeaveForm): AxiosPromise => { }); }; +/** + * 提交请假并发起流程 + * @param data + */ +export const submitAndFlowStart = (data: LeaveForm): AxiosPromise => { + return request({ + url: '/workflow/leave/submitAndFlowStart', + method: 'post', + data: data + }); +}; + /** * 修改请假 * @param data diff --git a/src/components/Process/approvalButton.vue b/src/components/Process/approvalButton.vue index cb4fe8d..e53ad3b 100644 --- a/src/components/Process/approvalButton.vue +++ b/src/components/Process/approvalButton.vue @@ -1,8 +1,8 @@