commit | author | age
|
9bcb19
|
1 |
import { axios } from '@/utils/request' |
I |
2 |
|
|
3 |
/** |
|
4 |
* 分页查询系统字典类型 |
|
5 |
* |
|
6 |
* @author yubaoshan |
|
7 |
* @date 2020/5/17 01:46 |
|
8 |
*/ |
|
9 |
export function sysDictTypePage (parameter) { |
|
10 |
return axios({ |
|
11 |
url: '/sysDictType/page', |
|
12 |
method: 'get', |
|
13 |
params: parameter |
|
14 |
}) |
|
15 |
} |
|
16 |
|
|
17 |
/** |
|
18 |
* 添加系统字典类型 |
|
19 |
* |
|
20 |
* @author yubaoshan |
|
21 |
* @date 2020/5/17 01:46 |
|
22 |
*/ |
|
23 |
export function sysDictTypeAdd (parameter) { |
|
24 |
return axios({ |
|
25 |
url: '/sysDictType/add', |
|
26 |
method: 'post', |
|
27 |
data: parameter |
|
28 |
}) |
|
29 |
} |
|
30 |
|
|
31 |
/** |
|
32 |
* 编辑系统字典类型 |
|
33 |
* |
|
34 |
* @author yubaoshan |
|
35 |
* @date 2020/5/17 01:50 |
|
36 |
*/ |
|
37 |
export function sysDictTypeEdit (parameter) { |
|
38 |
return axios({ |
|
39 |
url: '/sysDictType/edit', |
|
40 |
method: 'post', |
|
41 |
data: parameter |
|
42 |
}) |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* 删除系统字典类型 |
|
47 |
* |
|
48 |
* @author yubaoshan |
|
49 |
* @date 2020/5/17 01:50 |
|
50 |
*/ |
|
51 |
export function sysDictTypeDelete (parameter) { |
|
52 |
return axios({ |
|
53 |
url: '/sysDictType/delete', |
|
54 |
method: 'post', |
|
55 |
data: parameter |
|
56 |
}) |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* 获取字典类型下所有字典,举例,返回格式为:[{code:"M",value:"男"},{code:"F",value:"女"}] |
|
61 |
* |
|
62 |
* @author yubaoshan |
|
63 |
* @date 2020/6/10 00:10 |
|
64 |
*/ |
|
65 |
export function sysDictTypeDropDown (parameter) { |
|
66 |
return axios({ |
|
67 |
url: '/sysDictType/dropDown', |
|
68 |
method: 'get', |
|
69 |
params: parameter |
|
70 |
}) |
|
71 |
} |
|
72 |
|
|
73 |
/** |
|
74 |
* 获取所有字典,启动时加入缓存使用 |
|
75 |
* |
|
76 |
* @author yubaoshan |
|
77 |
* @date 2020/6/10 00:10 |
|
78 |
*/ |
|
79 |
export function sysDictTypeTree (parameter) { |
|
80 |
return axios({ |
|
81 |
url: '/sysDictType/tree', |
|
82 |
method: 'get', |
|
83 |
params: parameter |
|
84 |
}) |
|
85 |
} |