| | |
| | | |
| | | /** |
| | | * 删除流程定义 |
| | | * @param processDefinitionId 流程定义id |
| | | * @param deploymentId 部署id |
| | | * @param processDefinitionId 流程定义id |
| | | * @returns |
| | | */ |
| | | export const deleteProcessDefinition = (deploymentId: string, processDefinitionId: string) => { |
| | | export const deleteProcessDefinition = (deploymentId: string | string[], processDefinitionId: string | string[]) => { |
| | | return request({ |
| | | url: `/workflow/processDefinition/${deploymentId}/${processDefinitionId}`, |
| | | method: 'delete' |
| | |
| | | return request({ |
| | | url: '/workflow/processDefinition/deployByFile', |
| | | method: 'post', |
| | | data: data |
| | | data: data, |
| | | headers: { |
| | | repeatSubmit: false |
| | | } |
| | | }); |
| | | } |
| | | |
| | |
| | | method: 'put' |
| | | }); |
| | | }; |
| | | |