提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export type FormVO = { |
|
4 |
id: number |
|
5 |
name: string |
|
6 |
conf: string |
|
7 |
fields: string[] |
|
8 |
status: number |
|
9 |
remark: string |
|
10 |
createTime: string |
|
11 |
} |
|
12 |
|
|
13 |
// 创建工作流的表单定义 |
|
14 |
export const createForm = async (data: FormVO) => { |
|
15 |
return await request.post({ |
|
16 |
url: '/bpm/form/create', |
|
17 |
data: data |
|
18 |
}) |
|
19 |
} |
|
20 |
|
|
21 |
// 更新工作流的表单定义 |
|
22 |
export const updateForm = async (data: FormVO) => { |
|
23 |
return await request.put({ |
|
24 |
url: '/bpm/form/update', |
|
25 |
data: data |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
// 删除工作流的表单定义 |
|
30 |
export const deleteForm = async (id: number) => { |
|
31 |
return await request.delete({ |
|
32 |
url: '/bpm/form/delete?id=' + id |
|
33 |
}) |
|
34 |
} |
|
35 |
|
|
36 |
// 获得工作流的表单定义 |
|
37 |
export const getForm = async (id: number) => { |
|
38 |
return await request.get({ |
|
39 |
url: '/bpm/form/get?id=' + id |
|
40 |
}) |
|
41 |
} |
|
42 |
|
|
43 |
// 获得工作流的表单定义分页 |
|
44 |
export const getFormPage = async (params) => { |
|
45 |
return await request.get({ |
|
46 |
url: '/bpm/form/page', |
|
47 |
params |
|
48 |
}) |
|
49 |
} |
|
50 |
|
|
51 |
// 获得动态表单的精简列表 |
|
52 |
export const getFormSimpleList = async () => { |
|
53 |
return await request.get({ |
|
54 |
url: '/bpm/form/simple-list' |
|
55 |
}) |
|
56 |
} |