feat: 发布流程时校验当前流程版本是否存在正在进行中的单据
This commit is contained in:
@ -76,3 +76,13 @@ export const deployModel = async (id: number) => {
|
||||
export const cleanModel = async (id: number) => {
|
||||
return await request.delete({ url: '/bpm/model/clean?id=' + id })
|
||||
}
|
||||
/**
|
||||
* 查询当前流程实例下是否存在正在进行中的单据
|
||||
* @param processDefinitionId 流程定义id
|
||||
* @returns true/false
|
||||
*/
|
||||
export const getProcessInstance = async (processDefinitionId: string) => {
|
||||
return await request.get({
|
||||
url: '/bpm/task/manager-list?processDefinitionId=' + processDefinitionId
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user