|
|
@@ -185,7 +185,7 @@ export function fetchOaTemplateDetail(appId: string) {
|
|
|
/** 发起前审批流预览(条件齐后返回最终路径) */
|
|
|
export function fetchOaFlowPreview(
|
|
|
appId: string,
|
|
|
- opts?: { formData?: Record<string, any>; initiatorSelectUserIds?: string[] }
|
|
|
+ opts?: { formData?: Record<string, any>; initiatorSelectByNode?: Record<string, string[]> }
|
|
|
) {
|
|
|
return request.post<{
|
|
|
resolved: boolean
|
|
|
@@ -195,7 +195,7 @@ export function fetchOaFlowPreview(
|
|
|
url: `${BASE}/templates/${appId}/flow-preview`,
|
|
|
data: {
|
|
|
formData: opts?.formData || {},
|
|
|
- initiatorSelectUserIds: opts?.initiatorSelectUserIds || undefined
|
|
|
+ initiatorSelectByNode: opts?.initiatorSelectByNode || undefined
|
|
|
},
|
|
|
showSuccessMessage: false
|
|
|
})
|
|
|
@@ -217,7 +217,7 @@ export function fetchStartOaInstance(data: {
|
|
|
formData?: Record<string, any>
|
|
|
title?: string
|
|
|
initiatorDeptId?: string
|
|
|
- initiatorSelectUserIds?: string[]
|
|
|
+ initiatorSelectByNode?: Record<string, string[]>
|
|
|
relatedInstanceIds?: string[]
|
|
|
}) {
|
|
|
return request.post({
|