From b80702cd9d2ff50517d6ee3ab9caf92dfaff96fb Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Tue, 26 Sep 2023 19:43:55 +0800 Subject: [PATCH 1/3] refactor: vue3.3 defineOptions --- src/router/modules/remaining.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 70d8ec6a..5866e159 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -60,7 +60,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ { path: 'index', component: () => import('@/views/Home/Index.vue'), - name: 'Index', + name: 'Home', meta: { title: t('router.home'), icon: 'ep:home-filled', From 2c7488871281a942fb7274d5f67b555887dde9af Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Tue, 26 Sep 2023 19:56:57 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E3=80=90=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E3=80=91--=E5=A7=94=E6=B4=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/task/index.ts | 11 ++- src/views/bpm/processInstance/detail.vue | 12 ++- .../detail/TaskDelegateForm.vue | 86 +++++++++++++++++++ 3 files changed, 104 insertions(+), 5 deletions(-) create mode 100644 src/views/bpm/processInstance/detail/TaskDelegateForm.vue diff --git a/src/api/bpm/task/index.ts b/src/api/bpm/task/index.ts index e6478d31..d8be8025 100644 --- a/src/api/bpm/task/index.ts +++ b/src/api/bpm/task/index.ts @@ -48,6 +48,13 @@ export const getReturnList = async (params) => { } // 回退 -export const returnTask = async (data) => { - return await request.put({ url: '/bpm/task/return', data }) +export const okRollback = async (data) => { + return await request.put({ url: '/bpm/task/rollback', data }) +} + +/** + * 委派 + */ +export const delegateTask = async (data) => { + return await request.put({ url: '/bpm/task/delegate', data }) } diff --git a/src/views/bpm/processInstance/detail.vue b/src/views/bpm/processInstance/detail.vue index f524017b..32b36026 100644 --- a/src/views/bpm/processInstance/detail.vue +++ b/src/views/bpm/processInstance/detail.vue @@ -192,6 +192,8 @@ + + From 1b30ca07ed539d58b73444c0fc3f63bacb78040a Mon Sep 17 00:00:00 2001 From: youkehai Date: Mon, 25 Sep 2023 11:31:13 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E5=AF=B9=E9=BD=90=E5=90=8E?= =?UTF-8?q?=E7=AB=AF-=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=A7=94=E6=B4=BE?= =?UTF-8?q?=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 0fba0d9a6a81b2e4555128a77985eb89e2cf7125) --- .../bpm/processInstance/detail/TaskDelegateForm.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/bpm/processInstance/detail/TaskDelegateForm.vue b/src/views/bpm/processInstance/detail/TaskDelegateForm.vue index 99c6cc7e..dc757a0c 100644 --- a/src/views/bpm/processInstance/detail/TaskDelegateForm.vue +++ b/src/views/bpm/processInstance/detail/TaskDelegateForm.vue @@ -7,8 +7,8 @@ :rules="formRules" label-width="110px" > - - + + { const resetForm = () => { formData.value = { id: '', - receiveId: undefined + delegateUserId: undefined } formRef.value?.resetFields() }