提交 | 用户 | 时间
|
a57dc2
|
1 |
import request from '@/utils/request' |
W |
2 |
|
|
3 |
// 查询流程部署列表 |
|
4 |
export function listDeploy(query) { |
|
5 |
return request({ |
|
6 |
url: '/workflow/deploy/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
export function listPublish(query) { |
|
13 |
return request({ |
|
14 |
url: '/workflow/deploy/publishList', |
|
15 |
method: 'get', |
|
16 |
params: query |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 获取流程模型流程图 |
|
21 |
export function getBpmnXml(definitionId) { |
|
22 |
return request({ |
|
23 |
url: '/workflow/deploy/bpmnXml/' + definitionId, |
|
24 |
method: 'get' |
|
25 |
}) |
|
26 |
} |
|
27 |
|
|
28 |
// 修改流程状态 |
|
29 |
export function changeState(params) { |
|
30 |
return request({ |
|
31 |
url: '/workflow/deploy/changeState', |
|
32 |
method: 'put', |
|
33 |
params: params |
|
34 |
}) |
|
35 |
} |
|
36 |
|
|
37 |
// 删除流程部署 |
|
38 |
export function delDeploy(deployIds) { |
|
39 |
return request({ |
|
40 |
url: '/workflow/deploy/' + deployIds, |
|
41 |
method: 'delete' |
|
42 |
}) |
|
43 |
} |
|
44 |
|
|
45 |
// 查询流程部署关联表单信息 |
|
46 |
export function getFormByDeployId(deployId) { |
|
47 |
return request({ |
|
48 |
url: '/workflow/deploy/form/' + deployId, |
|
49 |
method: 'get', |
|
50 |
}) |
|
51 |
} |