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