提交 | 用户 | 时间
|
a57dc2
|
1 |
import request from '@/utils/request' |
W |
2 |
|
|
3 |
// 查询流程表单列表 |
|
4 |
export function listForm(query) { |
|
5 |
return request({ |
|
6 |
url: '/workflow/form/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
// 查询流程表单详细 |
|
13 |
export function getForm(formId) { |
|
14 |
return request({ |
|
15 |
url: '/workflow/form/' + formId, |
|
16 |
method: 'get' |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 新增流程表单 |
|
21 |
export function addForm(data) { |
|
22 |
return request({ |
|
23 |
url: '/workflow/form', |
|
24 |
method: 'post', |
|
25 |
data: data |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改流程表单 |
|
30 |
export function updateForm(data) { |
|
31 |
return request({ |
|
32 |
url: '/workflow/form', |
|
33 |
method: 'put', |
|
34 |
data: data |
|
35 |
}) |
|
36 |
} |
|
37 |
// 挂载表单 |
|
38 |
export function addDeployForm(data) { |
|
39 |
return request({ |
|
40 |
url: '/workflow/form/addDeployForm', |
|
41 |
method: 'post', |
|
42 |
data: data |
|
43 |
}) |
|
44 |
} |
|
45 |
|
|
46 |
// 删除流程表单 |
|
47 |
export function delForm(formId) { |
|
48 |
return request({ |
|
49 |
url: '/workflow/form/' + formId, |
|
50 |
method: 'delete' |
|
51 |
}) |
|
52 |
} |