config.js
4.17 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
import request from '@/utils/request'
import _ from 'lodash'
// 查询参数列表
export function listConfig(query) {
return request({
url: '/system/config/list',
method: 'get',
params: query
})
}
// 查询参数详细
export function getConfig(configId) {
return request({
url: '/system/config/' + configId,
method: 'get'
})
}
// 根据参数键名查询参数值
export function getConfigKey(configKey) {
return request({
url: '/system/config/configKey/' + configKey,
method: 'get'
})
}
// 新增参数配置
export function addConfig(data) {
return request({
url: '/system/config',
method: 'post',
data: data
})
}
// 修改参数配置
export function updateConfig(data) {
return request({
url: '/system/config',
method: 'put',
data: data
})
}
// 修改参数配置
export function updateConfigByKey(key, value) {
return request({
url: '/system/config/updateByKey',
method: 'put',
data: {
configKey: key,
configValue: value
}
})
}
// 删除参数配置
export function delConfig(configId) {
return request({
url: '/system/config/' + configId,
method: 'delete'
})
}
// 刷新参数缓存
export function refreshCache() {
return request({
url: '/system/config/refreshCache',
method: 'delete'
})
}
export function getZtxSysConfig() {
return request({
url: '/system/config/getZtxSysConfig',
method: 'get'
})
}
export function getZtxFeeConfig() {
return request({
url: '/system/config/getZtxFeeConfig',
method: 'get'
})
}
export function getZtxBankConfig() {
return request({
url: '/system/config/getZtxBankConfig',
method: 'get'
})
}
export function editZtxSysConfig(data) {
return request({
url: '/system/config/editZtxSysConfig',
method: 'post',
data: data
})
}
export function editZtxFeeConfig(data) {
return request({
url: '/system/config/editZtxFeeConfig',
method: 'post',
data: data
})
}
export function editZtxBankConfig(data) {
return request({
url: '/system/config/editZtxBankConfig',
method: 'post',
data: data
})
}
export function getZtxDuanAgeConfig() {
return request({
url: '/system/config/getZtxDuanAgeConfig',
method: 'get'
})
}
export function editZtxDuanAgeConfig(data) {
return request({
url: '/system/config/editZtxDuanAgeConfig',
method: 'post',
data: data
})
}
export function getZtxbeyondDuanConfig() {
return request({
url: '/system/config/getZtxbeyondDuanConfig',
method: 'get'
})
}
export function editZtxBeyondDuanConfig(data) {
return request({
url: '/system/config/editZtxBeyondDuanConfig',
method: 'post',
data: data
})
}
export function getBusinessConfig() {
return request({
url: '/system/config/getBusinessConfig',
method: 'get'
}).then(res => {
return _.orderBy(_.map(res.data, (d) => {
const value = JSON.parse(d.configValue)
value.configId = d.configId
return value
}), ['year'])
})
}
export function editBusinessConfig(data) {
return request({
url: '/system/config/editBusinessConfig',
method: 'post',
data: data
})
}
export function delBusinessConfig(id) {
return request({
url: '/system/config/delBusinessConfig',
method: 'post',
data: id
})
}
// 优惠政策
export function editZtxDiscountPolicy(data) {
return request({
url: '/system/config/editZtxDiscountPolicy',
method: 'post',
data
})
}
// 优惠政策回显
export function getZtxDiscountPolicy(params) {
return request({
url: '/system/config/getZtxDiscountPolicy',
method: 'get',
params
})
}
// 个人会员审核配置
export function editZtxVerifyConfig(data) {
return request({
url: '/system/config/editZtxVerifyConfig',
method: 'post',
data
})
}
// 个人会员审核配置回显
export function getZtxVerifyConfig() {
return request({
url: '/system/config/getZtxVerifyConfig'
})
}
// 单位会员审批记录
export function getMyRecent() {
return request({
url: '/system/certifiedNew/getMyRecent'
})
}
// 单位会员审批记录
export function getLogs(id) {
return request({
url: `/system/certifiedNew/getLogs/${id}`
})
}