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}} + + +
+
+
+