From 3b9696ac03a7fc8dfc581fb6ea836f4de57f33eb Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Tue, 20 Jan 2026 10:35:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[bpm]=20=E6=96=B0=E5=A2=9E=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E8=AF=A6=E6=83=85=20timeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/definition/index.ts | 5 + src/api/bpm/processInstance/index.ts | 2 +- src/components/system-select/user-picker.vue | 33 ++ src/pages-bpm/oa/leave/create/index.vue | 245 +++++++++-- .../detail/components/time-line.vue | 400 +++++++++--------- .../processInstance/detail/index.vue | 14 +- 6 files changed, 437 insertions(+), 262 deletions(-) diff --git a/src/api/bpm/definition/index.ts b/src/api/bpm/definition/index.ts index 6858e51..daf738e 100644 --- a/src/api/bpm/definition/index.ts +++ b/src/api/bpm/definition/index.ts @@ -19,3 +19,8 @@ export interface ProcessDefinition { export function getProcessDefinitionList(params?: { suspensionState?: number }) { return http.get('/bpm/process-definition/list', params) } + +/** 获取流程定义详情 */ +export function getProcessDefinition(id?: string, key?: string) { + return http.get('/bpm/process-definition/get', { id, key }) +} diff --git a/src/api/bpm/processInstance/index.ts b/src/api/bpm/processInstance/index.ts index ac0a3fe..0632623 100644 --- a/src/api/bpm/processInstance/index.ts +++ b/src/api/bpm/processInstance/index.ts @@ -108,7 +108,7 @@ export function getProcessInstance(id: string) { } /** 获取审批详情 */ -export function getApprovalDetail(params: { processInstanceId: string, activityId?: string, taskId?: string }) { +export function getApprovalDetail(params: { processDefinitionId?: string, processInstanceId?: string, activityId?: string, taskId?: string, processVariablesStr?: string }) { return http.get('/bpm/process-instance/get-approval-detail', params) } diff --git a/src/components/system-select/user-picker.vue b/src/components/system-select/user-picker.vue index 6efedbe..109d5f4 100644 --- a/src/components/system-select/user-picker.vue +++ b/src/components/system-select/user-picker.vue @@ -1,5 +1,24 @@