dictionaries.js
926 Bytes
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
import request from '@/utils/request'
class dictionaries {
// 获取整个字典数据
async getDicData (data) {
return request({
url: '/SysDict/getJson',
method: 'get'
})
}
// 编辑
async editSysDict (data) {
return request({
url: '/SysDict/editSysDictByTypeId',
method: 'post',
data
})
}
// 获取字典表父级集合
async getSysDictParent (data) {
return request({
url: '/SysDict/getSysDictParent',
method: 'post',
data
})
}
// 编辑界面获取指定字典编码子集
async getSysDictByTypeId (id) {
return request({
url: '/SysDict/getSysDictByTypeId',
method: 'get',
params: {
typeId: id
}
})
}
// 接入业务信息表
async getAllSysJrywxx () {
return request({
url: '/sysJrywxx/getAllSysJrywxx',
method: 'get'
})
}
}
export default new dictionaries()