From 3c27c188890b96fe2f96c8f8008e48c637ec6cc7 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: Sat, 9 Mar 2024 13:41:20 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=B7=BB=E5=8A=A0=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/task/index.ts | 12 +++++++ src/api/workflow/task/types.ts | 5 +++ src/components/Process/approvalRecord.vue | 8 ++--- src/views/workflow/task/allTaskWaiting.vue | 42 ++++++++++++++++++++-- 4 files changed, 61 insertions(+), 6 deletions(-) diff --git a/src/api/workflow/task/index.ts b/src/api/workflow/task/index.ts index 6c4538f..aabdd15 100644 --- a/src/api/workflow/task/index.ts +++ b/src/api/workflow/task/index.ts @@ -192,6 +192,7 @@ export const transferTask = (data: any) => { data: data }); }; + /** * 终止任务 * @returns @@ -203,3 +204,14 @@ export const terminationTask = (data: any) => { data: data }); }; + +/** + * 查询流程变量 + * @returns + */ +export const getInstanceVariable = (taskId: string) => { + return request({ + url: `/workflow/task/getInstanceVariable/${taskId}`, + method: 'get' + }); +}; diff --git a/src/api/workflow/task/types.ts b/src/api/workflow/task/types.ts index 11cc48b..f1aede9 100644 --- a/src/api/workflow/task/types.ts +++ b/src/api/workflow/task/types.ts @@ -37,3 +37,8 @@ export interface TaskVO extends BaseEntity { participantVo: ParticipantVo; multiInstance: boolean; } + +export interface VariableVo { + key: string; + value: string; +} diff --git a/src/components/Process/approvalRecord.vue b/src/components/Process/approvalRecord.vue index 04694d1..5da0a56 100644 --- a/src/components/Process/approvalRecord.vue +++ b/src/components/Process/approvalRecord.vue @@ -8,7 +8,7 @@
- + @@ -17,6 +17,9 @@ + + + - - -
diff --git a/src/views/workflow/task/allTaskWaiting.vue b/src/views/workflow/task/allTaskWaiting.vue index 057bc29..cee2d26 100644 --- a/src/views/workflow/task/allTaskWaiting.vue +++ b/src/views/workflow/task/allTaskWaiting.vue @@ -83,6 +83,9 @@ 减签 + + 流程变量 + @@ -101,15 +104,31 @@ + + + +
+ 流程定义名称:{{processDefinitionName}} +
+
+ + + {{v.value}} + + +
+
+
+