提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export type DictDataVO = { |
|
4 |
id: number | undefined |
|
5 |
sort: number | undefined |
|
6 |
label: string |
|
7 |
value: string |
|
8 |
dictType: string |
|
9 |
status: number |
|
10 |
colorType: string |
|
11 |
cssClass: string |
|
12 |
remark: string |
|
13 |
createTime: Date |
|
14 |
} |
|
15 |
|
|
16 |
// 查询字典数据(精简)列表 |
|
17 |
export const getSimpleDictDataList = () => { |
|
18 |
return request.get({ url: '/system/dict-data/simple-list' }) |
|
19 |
} |
|
20 |
|
|
21 |
// 查询字典数据列表 |
|
22 |
export const getDictDataPage = (params: PageParam) => { |
|
23 |
return request.get({ url: '/system/dict-data/page', params }) |
|
24 |
} |
|
25 |
|
|
26 |
// 查询字典数据详情 |
|
27 |
export const getDictData = (id: number) => { |
|
28 |
return request.get({ url: '/system/dict-data/get?id=' + id }) |
|
29 |
} |
|
30 |
|
|
31 |
// 新增字典数据 |
|
32 |
export const createDictData = (data: DictDataVO) => { |
|
33 |
return request.post({ url: '/system/dict-data/create', data }) |
|
34 |
} |
|
35 |
|
|
36 |
// 修改字典数据 |
|
37 |
export const updateDictData = (data: DictDataVO) => { |
|
38 |
return request.put({ url: '/system/dict-data/update', data }) |
|
39 |
} |
|
40 |
|
|
41 |
// 删除字典数据 |
|
42 |
export const deleteDictData = (id: number) => { |
|
43 |
return request.delete({ url: '/system/dict-data/delete?id=' + id }) |
|
44 |
} |
|
45 |
|
|
46 |
// 导出字典类型数据 |
|
47 |
export const exportDictData = (params) => { |
|
48 |
return request.download({ url: '/system/dict-data/export', params }) |
|
49 |
} |