提交
This commit is contained in:
1 parent
417d6c9c51
commit
c8fe0cdc20
102 files changed
+19847
-12224
No files matched your search
@@ -182,13 +182,22 @@ export function fetchOaTemplateDetail(appId: string) {
|
||||
return request.get<any>({ url: `${BASE}/templates/${appId}` })
|
||||
}
|
||||
|
||||
/** 发起前审批流预览(按当前登录人解析审批人) */
|
||||
export function fetchOaFlowPreview(appId: string, initiatorSelectUserIds?: string[]) {
|
||||
return request.get<{ steps: OaFlowPreviewStep[] }>({
|
||||
/** 发起前审批流预览(条件齐后返回最终路径) */
|
||||
export function fetchOaFlowPreview(
|
||||
appId: string,
|
||||
opts?: { formData?: Record<string, any>; initiatorSelectUserIds?: string[] }
|
||||
) {
|
||||
return request.post<{
|
||||
resolved: boolean
|
||||
message?: string
|
||||
steps: OaFlowPreviewStep[]
|
||||
}>({
|
||||
url: `${BASE}/templates/${appId}/flow-preview`,
|
||||
params: initiatorSelectUserIds?.length
|
||||
? { initiatorSelectUserIds: initiatorSelectUserIds.join(',') }
|
||||
: undefined
|
||||
data: {
|
||||
formData: opts?.formData || {},
|
||||
initiatorSelectUserIds: opts?.initiatorSelectUserIds || undefined
|
||||
},
|
||||
showSuccessMessage: false
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user