提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
// BPM 流程分类 VO |
|
4 |
export interface CategoryVO { |
|
5 |
id: number // 分类编号 |
|
6 |
name: string // 分类名 |
|
7 |
code: string // 分类标志 |
|
8 |
status: number // 分类状态 |
|
9 |
sort: number // 分类排序 |
|
10 |
} |
|
11 |
|
|
12 |
// BPM 流程分类 API |
|
13 |
export const CategoryApi = { |
|
14 |
// 查询流程分类分页 |
|
15 |
getCategoryPage: async (params: any) => { |
|
16 |
return await request.get({ url: `/bpm/category/page`, params }) |
|
17 |
}, |
|
18 |
|
|
19 |
// 查询流程分类列表 |
|
20 |
getCategorySimpleList: async () => { |
|
21 |
return await request.get({ url: `/bpm/category/simple-list` }) |
|
22 |
}, |
|
23 |
|
|
24 |
// 查询流程分类详情 |
|
25 |
getCategory: async (id: number) => { |
|
26 |
return await request.get({ url: `/bpm/category/get?id=` + id }) |
|
27 |
}, |
|
28 |
|
|
29 |
// 新增流程分类 |
|
30 |
createCategory: async (data: CategoryVO) => { |
|
31 |
return await request.post({ url: `/bpm/category/create`, data }) |
|
32 |
}, |
|
33 |
|
|
34 |
// 修改流程分类 |
|
35 |
updateCategory: async (data: CategoryVO) => { |
|
36 |
return await request.put({ url: `/bpm/category/update`, data }) |
|
37 |
}, |
|
38 |
|
3e359e
|
39 |
// 批量修改流程分类的排序 |
H |
40 |
updateCategorySortBatch: async (ids: number[]) => { |
|
41 |
return await request.put({ |
|
42 |
url: `/bpm/category/update-sort-batch`, |
|
43 |
params: { |
|
44 |
ids: ids.join(',') |
|
45 |
} |
|
46 |
}) |
|
47 |
}, |
|
48 |
|
820397
|
49 |
// 删除流程分类 |
H |
50 |
deleteCategory: async (id: number) => { |
|
51 |
return await request.delete({ url: `/bpm/category/delete?id=` + id }) |
|
52 |
} |
|
53 |
} |