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 @@