From 20fe34364629bf7d6f7ca0c30b28766a43cf28eb Mon Sep 17 00:00:00 2001 From: kehaiyou Date: Sun, 24 Sep 2023 15:44:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=80=90=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=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 | 7 ++ .../detail/ProcessInstanceTaskList.vue | 3 + .../detail/TaskDelegateForm.vue | 86 +++++++++++++++++++ .../bpm/processInstance/detail/index.vue | 9 +- 4 files changed, 102 insertions(+), 3 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 126f01eb..3177eefc 100644 --- a/src/api/bpm/task/index.ts +++ b/src/api/bpm/task/index.ts @@ -57,3 +57,10 @@ export const getReturnList = async (params) => { 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/ProcessInstanceTaskList.vue b/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue index ec87104d..6f4557ae 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue @@ -92,6 +92,9 @@ const getTimelineItemType = (item) => { if (item.result === 5) { return 'warning' } + if (item.result === 6) { + return 'default' + } return '' } diff --git a/src/views/bpm/processInstance/detail/TaskDelegateForm.vue b/src/views/bpm/processInstance/detail/TaskDelegateForm.vue new file mode 100644 index 00000000..99c6cc7e --- /dev/null +++ b/src/views/bpm/processInstance/detail/TaskDelegateForm.vue @@ -0,0 +1,86 @@ + + diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index 6b57242d..d513bbbd 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -93,6 +93,8 @@ + +