dictionaries.js
1.89 KB
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
import request from '@/utils/request'
class dictionaries {
// 获取所有字典接口
async getDictionary(data){
return request({
url: '/system/sysDictionary/getDictionary',
method: 'get',
params: data,
})
}
// 获取字典根据字典标识码
async getDdicById (id) {
return request({
url: '/system/sysDictionary/getDdicById',
method: 'get',
params: {
id: id
},
})
}
//入住管理 导出
async checkexportData(data){
return request({
url:'/rent/zLiveManage/exportData',
method:'post',
data,
responseType: 'blob'
})
}
// 获取字典根据字典名称
async getDdicByMC (mc) {
return request({
url: '/system/sysDictionary/getDdicByMC',
method: 'get',
params: {
mc: mc
},
})
}
//
async getDetail () {
return request({
url: '/system/sysUser/getAddressInfo',
method: 'get',
})
}
// 根据市id,获取行政区-县区
async getDistByCity () {
return request({
url: '/xzq/getDistByCity',
method: 'get',
params: {
id: '350200000000'
},
})
}
// 行政区-县区-街道
async getXzq () {
return request({
url: '/xzq/getXzq',
method: 'get'
})
}
// 联想查询接口
async searchDepartmentByKeys () {
return request({
url: '/resource/fDepartment/searchDepartmentByKeys',
method: 'get',
})
}
async getAllDepartment(){
return request({
url:'/resource/fDepartment/getAllDepartment',
method:'get'
})
}
}
export default new dictionaries()