From 369f48ced530f793b8e84a9be21114fbfb65a73e Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: Fri, 16 May 2025 21:00:48 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E5=B0=81=E8=A3=85=E6=88=90=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Process/approvalButton.vue | 56 +++++++++++++++++++++++ src/views/workflow/leave/leaveEdit.vue | 29 +++++------- 2 files changed, 68 insertions(+), 17 deletions(-) create mode 100644 src/components/Process/approvalButton.vue diff --git a/src/components/Process/approvalButton.vue b/src/components/Process/approvalButton.vue new file mode 100644 index 0000000..cb4fe8d --- /dev/null +++ b/src/components/Process/approvalButton.vue @@ -0,0 +1,56 @@ + + + + 暂存 + 提 交 + 审批 + 流程进度 + + + + 返回 + + + + diff --git a/src/views/workflow/leave/leaveEdit.vue b/src/views/workflow/leave/leaveEdit.vue index 16e6235..d68a0f2 100644 --- a/src/views/workflow/leave/leaveEdit.vue +++ b/src/views/workflow/leave/leaveEdit.vue @@ -1,17 +1,15 @@ - - - 暂存 - 提 交 - 审批 - 流程进度 - - - 返回 - - + @@ -64,6 +62,7 @@ import { LeaveForm, LeaveQuery, LeaveVO } from '@/api/workflow/leave/types'; import { startWorkFlow } from '@/api/workflow/task'; import SubmitVerify from '@/components/Process/submitVerify.vue'; import ApprovalRecord from '@/components/Process/approvalRecord.vue'; +import ApprovalButton from '@/components/Process/approvalButton.vue'; import { AxiosResponse } from 'axios'; import { StartProcessBo } from '@/api/workflow/workflowCommon/types'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; @@ -128,6 +127,8 @@ const dialogVisible = reactive({ const submitVerifyRef = ref>(); //审批记录组件 const approvalRecordRef = ref>(); +//按钮组件 +const approvalButtonRef = ref>(); const leaveFormRef = ref(); @@ -276,12 +277,6 @@ const submitCallback = async () => { await proxy.$tab.closePage(proxy.$route); proxy.$router.go(-1); }; - -//返回 -const goBack = () => { - proxy.$tab.closePage(proxy.$route); - proxy.$router.go(-1); -}; //审批 const approvalVerifyOpen = async () => { submitVerifyRef.value.openDialog(routeParams.value.taskId);