提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
// BPM 流程表达式 VO |
|
4 |
export interface ProcessExpressionVO { |
|
5 |
id: number // 编号 |
|
6 |
name: string // 表达式名字 |
|
7 |
status: number // 表达式状态 |
|
8 |
expression: string // 表达式 |
|
9 |
} |
|
10 |
|
|
11 |
// BPM 流程表达式 API |
|
12 |
export const ProcessExpressionApi = { |
|
13 |
// 查询BPM 流程表达式分页 |
|
14 |
getProcessExpressionPage: async (params: any) => { |
|
15 |
return await request.get({ url: `/bpm/process-expression/page`, params }) |
|
16 |
}, |
|
17 |
|
|
18 |
// 查询BPM 流程表达式详情 |
|
19 |
getProcessExpression: async (id: number) => { |
|
20 |
return await request.get({ url: `/bpm/process-expression/get?id=` + id }) |
|
21 |
}, |
|
22 |
|
|
23 |
// 新增BPM 流程表达式 |
|
24 |
createProcessExpression: async (data: ProcessExpressionVO) => { |
|
25 |
return await request.post({ url: `/bpm/process-expression/create`, data }) |
|
26 |
}, |
|
27 |
|
|
28 |
// 修改BPM 流程表达式 |
|
29 |
updateProcessExpression: async (data: ProcessExpressionVO) => { |
|
30 |
return await request.put({ url: `/bpm/process-expression/update`, data }) |
|
31 |
}, |
|
32 |
|
|
33 |
// 删除BPM 流程表达式 |
|
34 |
deleteProcessExpression: async (id: number) => { |
|
35 |
return await request.delete({ url: `/bpm/process-expression/delete?id=` + id }) |
|
36 |
}, |
|
37 |
|
|
38 |
// 导出BPM 流程表达式 Excel |
|
39 |
exportProcessExpression: async (params) => { |
|
40 |
return await request.download({ url: `/bpm/process-expression/export-excel`, params }) |
|
41 |
} |
|
42 |
} |