|
@@ -2,10 +2,10 @@ export default { |
|
@@ -2,10 +2,10 @@ export default { |
2
|
name: 'ajConfig',
|
2
|
name: 'ajConfig',
|
3
|
template: '',
|
3
|
template: '',
|
4
|
components: {},
|
4
|
components: {},
|
5
|
- props:[],
|
|
|
6
|
- data () {
|
5
|
+ props: [],
|
|
|
6
|
+ data() {
|
7
|
return {
|
7
|
return {
|
8
|
- radio:'0',
|
8
|
+ radio: '0',
|
9
|
docRulesForm: {
|
9
|
docRulesForm: {
|
10
|
id: [
|
10
|
id: [
|
11
|
{
|
11
|
{
|
|
@@ -14,32 +14,32 @@ export default { |
|
@@ -14,32 +14,32 @@ export default { |
14
|
trigger: 'blur',
|
14
|
trigger: 'blur',
|
15
|
}
|
15
|
}
|
16
|
],
|
16
|
],
|
17
|
- type:[{
|
17
|
+ type: [{
|
18
|
required: true,
|
18
|
required: true,
|
19
|
message: '请选择类型!',
|
19
|
message: '请选择类型!',
|
20
|
trigger: 'blur',
|
20
|
trigger: 'blur',
|
21
|
}],
|
21
|
}],
|
22
|
- menuPid:[{
|
22
|
+ menuPid: [{
|
23
|
required: true,
|
23
|
required: true,
|
24
|
message: '请选择父菜单!',
|
24
|
message: '请选择父菜单!',
|
25
|
trigger: 'blur',
|
25
|
trigger: 'blur',
|
26
|
}],
|
26
|
}],
|
27
|
- menuName:[{
|
27
|
+ menuName: [{
|
28
|
required: true,
|
28
|
required: true,
|
29
|
message: '请填写菜单名称!',
|
29
|
message: '请填写菜单名称!',
|
30
|
trigger: 'blur',
|
30
|
trigger: 'blur',
|
31
|
}],
|
31
|
}],
|
32
|
- title:[{
|
32
|
+ title: [{
|
33
|
required: true,
|
33
|
required: true,
|
34
|
message: '请填写弹框标题!',
|
34
|
message: '请填写弹框标题!',
|
35
|
trigger: 'blur',
|
35
|
trigger: 'blur',
|
36
|
}],
|
36
|
}],
|
37
|
- designPage:[{
|
37
|
+ designPage: [{
|
38
|
required: true,
|
38
|
required: true,
|
39
|
message: '请选择设计页面!',
|
39
|
message: '请选择设计页面!',
|
40
|
trigger: 'blur',
|
40
|
trigger: 'blur',
|
41
|
}],
|
41
|
}],
|
42
|
- resType:[{
|
42
|
+ resType: [{
|
43
|
required: true,
|
43
|
required: true,
|
44
|
message: '请选择资源类型!',
|
44
|
message: '请选择资源类型!',
|
45
|
trigger: 'blur',
|
45
|
trigger: 'blur',
|
|
@@ -53,169 +53,169 @@ export default { |
|
@@ -53,169 +53,169 @@ export default { |
53
|
}
|
53
|
}
|
54
|
|
54
|
|
55
|
},
|
55
|
},
|
56
|
- setup(props, {attrs, slots, emit}){
|
56
|
+ setup(props, {attrs, slots, emit}) {
|
57
|
const {proxy} = Vue.getCurrentInstance();
|
57
|
const {proxy} = Vue.getCurrentInstance();
|
58
|
let height = Vue.ref(window.innerHeight - 10);
|
58
|
let height = Vue.ref(window.innerHeight - 10);
|
59
|
let configs = Vue.ref([{
|
59
|
let configs = Vue.ref([{
|
60
|
- name:'resId',
|
|
|
61
|
- desc:'资源ID(资源列表可用)'
|
|
|
62
|
- },{
|
|
|
63
|
- name:'access_token',
|
|
|
64
|
- desc:'Token'
|
|
|
65
|
- },{
|
|
|
66
|
- name:'lgn',
|
|
|
67
|
- desc:'登录账号'
|
|
|
68
|
- },{
|
|
|
69
|
- name:'user_id',
|
|
|
70
|
- desc:'用户id'
|
60
|
+ name: 'resId',
|
|
|
61
|
+ desc: '资源ID(资源列表可用)'
|
|
|
62
|
+ }, {
|
|
|
63
|
+ name: 'access_token',
|
|
|
64
|
+ desc: 'Token'
|
|
|
65
|
+ }, {
|
|
|
66
|
+ name: 'lgn',
|
|
|
67
|
+ desc: '登录账号'
|
|
|
68
|
+ }, {
|
|
|
69
|
+ name: 'user_id',
|
|
|
70
|
+ desc: '用户id'
|
71
|
}]);
|
71
|
}]);
|
72
|
//表格字段
|
72
|
//表格字段
|
73
|
- let columns=Vue.ref([]);
|
|
|
74
|
- let detailColumns=Vue.ref([
|
73
|
+ let columns = Vue.ref([]);
|
|
|
74
|
+ let detailColumns = Vue.ref([
|
75
|
{
|
75
|
{
|
76
|
prop: 'id',
|
76
|
prop: 'id',
|
77
|
label: '编号',
|
77
|
label: '编号',
|
78
|
sortable: true,
|
78
|
sortable: true,
|
79
|
align: 'center',
|
79
|
align: 'center',
|
80
|
- width:'250'
|
80
|
+ width: '250'
|
81
|
},
|
81
|
},
|
82
|
{
|
82
|
{
|
83
|
prop: 'type',
|
83
|
prop: 'type',
|
84
|
label: '类型',
|
84
|
label: '类型',
|
85
|
sortable: true,
|
85
|
sortable: true,
|
86
|
align: 'center',
|
86
|
align: 'center',
|
87
|
- width:'250',
|
87
|
+ width: '100',
|
88
|
},
|
88
|
},
|
89
|
{
|
89
|
{
|
90
|
prop: 'resType',
|
90
|
prop: 'resType',
|
91
|
label: '资源类型',
|
91
|
label: '资源类型',
|
92
|
sortable: true,
|
92
|
sortable: true,
|
93
|
align: 'center',
|
93
|
align: 'center',
|
94
|
- width:'250'
|
|
|
95
|
- },{
|
94
|
+ width: '180'
|
|
|
95
|
+ }, {
|
96
|
prop: 'provider',
|
96
|
prop: 'provider',
|
97
|
label: '品牌',
|
97
|
label: '品牌',
|
98
|
sortable: true,
|
98
|
sortable: true,
|
99
|
align: 'center',
|
99
|
align: 'center',
|
100
|
- width:'250'
|
|
|
101
|
- },{
|
100
|
+ width: '180'
|
|
|
101
|
+ }, {
|
102
|
prop: 'designPage',
|
102
|
prop: 'designPage',
|
103
|
label: '设计器编码',
|
103
|
label: '设计器编码',
|
104
|
sortable: true,
|
104
|
sortable: true,
|
105
|
align: 'center',
|
105
|
align: 'center',
|
106
|
- width:'250'
|
|
|
107
|
- },{
|
106
|
+ width: '250'
|
|
|
107
|
+ }, {
|
108
|
prop: 'param',
|
108
|
prop: 'param',
|
109
|
label: '参数',
|
109
|
label: '参数',
|
110
|
sortable: true,
|
110
|
sortable: true,
|
111
|
align: 'left'
|
111
|
align: 'left'
|
112
|
}
|
112
|
}
|
113
|
])
|
113
|
])
|
114
|
- let menuColumns=Vue.ref([
|
114
|
+ let menuColumns = Vue.ref([
|
115
|
{
|
115
|
{
|
116
|
prop: 'id',
|
116
|
prop: 'id',
|
117
|
label: '编号',
|
117
|
label: '编号',
|
118
|
sortable: true,
|
118
|
sortable: true,
|
119
|
align: 'center',
|
119
|
align: 'center',
|
120
|
- width:'250'
|
120
|
+ width: '250'
|
121
|
},
|
121
|
},
|
122
|
{
|
122
|
{
|
123
|
prop: 'type',
|
123
|
prop: 'type',
|
124
|
label: '类型',
|
124
|
label: '类型',
|
125
|
sortable: true,
|
125
|
sortable: true,
|
126
|
align: 'center',
|
126
|
align: 'center',
|
127
|
- width:'250',
|
127
|
+ width: '100',
|
128
|
},
|
128
|
},
|
129
|
{
|
129
|
{
|
130
|
prop: 'menuName',
|
130
|
prop: 'menuName',
|
131
|
label: '菜单名称',
|
131
|
label: '菜单名称',
|
132
|
sortable: true,
|
132
|
sortable: true,
|
133
|
align: 'center',
|
133
|
align: 'center',
|
134
|
- width:'250'
|
134
|
+ width: '200'
|
135
|
},
|
135
|
},
|
136
|
{
|
136
|
{
|
137
|
prop: 'designPage',
|
137
|
prop: 'designPage',
|
138
|
label: '设计器编码',
|
138
|
label: '设计器编码',
|
139
|
sortable: true,
|
139
|
sortable: true,
|
140
|
align: 'center',
|
140
|
align: 'center',
|
141
|
- width:'250'
|
|
|
142
|
- },{
|
141
|
+ width: '120'
|
|
|
142
|
+ }, {
|
143
|
prop: 'param',
|
143
|
prop: 'param',
|
144
|
label: '参数',
|
144
|
label: '参数',
|
145
|
sortable: true,
|
145
|
sortable: true,
|
146
|
- align: 'center',
|
|
|
147
|
- width:'300'
|
|
|
148
|
- },{
|
146
|
+ align: 'center'
|
|
|
147
|
+ }, {
|
149
|
prop: 'creatTime',
|
148
|
prop: 'creatTime',
|
150
|
label: '创建时间',
|
149
|
label: '创建时间',
|
151
|
sortable: true,
|
150
|
sortable: true,
|
152
|
- align: 'center'
|
151
|
+ align: 'center',
|
|
|
152
|
+ width: '170'
|
153
|
}
|
153
|
}
|
154
|
])
|
154
|
])
|
155
|
- let butColumns=Vue.ref([
|
155
|
+ let butColumns = Vue.ref([
|
156
|
{
|
156
|
{
|
157
|
prop: 'id',
|
157
|
prop: 'id',
|
158
|
label: '编号',
|
158
|
label: '编号',
|
159
|
sortable: true,
|
159
|
sortable: true,
|
160
|
align: 'center',
|
160
|
align: 'center',
|
161
|
- width:'250'
|
161
|
+ width: '250'
|
162
|
},
|
162
|
},
|
163
|
{
|
163
|
{
|
164
|
prop: 'type',
|
164
|
prop: 'type',
|
165
|
label: '类型',
|
165
|
label: '类型',
|
166
|
sortable: true,
|
166
|
sortable: true,
|
167
|
align: 'center',
|
167
|
align: 'center',
|
168
|
- width:'250',
|
168
|
+ width: '120',
|
169
|
},
|
169
|
},
|
170
|
{
|
170
|
{
|
171
|
prop: 'title',
|
171
|
prop: 'title',
|
172
|
label: '弹框标题',
|
172
|
label: '弹框标题',
|
173
|
sortable: true,
|
173
|
sortable: true,
|
174
|
align: 'center',
|
174
|
align: 'center',
|
175
|
- width:'250'
|
175
|
+ width: '150'
|
176
|
},
|
176
|
},
|
177
|
{
|
177
|
{
|
178
|
prop: 'designPage',
|
178
|
prop: 'designPage',
|
179
|
label: '设计器编码',
|
179
|
label: '设计器编码',
|
180
|
sortable: true,
|
180
|
sortable: true,
|
181
|
align: 'center',
|
181
|
align: 'center',
|
182
|
- width:'250'
|
|
|
183
|
- },{
|
182
|
+ width: '300'
|
|
|
183
|
+ }, {
|
184
|
prop: 'param',
|
184
|
prop: 'param',
|
185
|
label: '参数',
|
185
|
label: '参数',
|
186
|
sortable: true,
|
186
|
sortable: true,
|
187
|
- align: 'center',
|
|
|
188
|
- width:'300'
|
|
|
189
|
- },{
|
187
|
+ align: 'center'
|
|
|
188
|
+ }, {
|
190
|
prop: 'creatTime',
|
189
|
prop: 'creatTime',
|
191
|
label: '创建时间',
|
190
|
label: '创建时间',
|
192
|
sortable: true,
|
191
|
sortable: true,
|
193
|
- align: '创建时间'
|
192
|
+ align: 'center',
|
|
|
193
|
+ width: '200'
|
194
|
}
|
194
|
}
|
195
|
])
|
195
|
])
|
196
|
- let currentPage=Vue.ref(1);
|
|
|
197
|
- let pageSize=Vue.ref(10);
|
|
|
198
|
- let keyword=Vue.ref();
|
|
|
199
|
- let count=Vue.ref(0);
|
|
|
200
|
- let tableDataList=Vue.ref([]);
|
196
|
+ let currentPage = Vue.ref(1);
|
|
|
197
|
+ let pageSize = Vue.ref(10);
|
|
|
198
|
+ let keyword = Vue.ref();
|
|
|
199
|
+ let count = Vue.ref(0);
|
|
|
200
|
+ let tableDataList = Vue.ref([]);
|
201
|
let checkedId = Vue.ref(0);
|
201
|
let checkedId = Vue.ref(0);
|
202
|
- let titleName=Vue.ref('新增配置信息')
|
|
|
203
|
- let cacheVisible=Vue.ref(false);
|
|
|
204
|
- let viewData=Vue.ref();
|
|
|
205
|
- let addOrUpdate=Vue.ref(false)
|
|
|
206
|
- let radio=Vue.ref(0);
|
202
|
+ let titleName = Vue.ref('新增配置信息')
|
|
|
203
|
+ let cacheVisible = Vue.ref(false);
|
|
|
204
|
+ let viewData = Vue.ref();
|
|
|
205
|
+ let addOrUpdate = Vue.ref(false)
|
|
|
206
|
+ let radio = Vue.ref(0);
|
207
|
//下拉框
|
207
|
//下拉框
|
208
|
- let options=Vue.ref([]);
|
208
|
+ let options = Vue.ref([]);
|
209
|
//菜单下拉框
|
209
|
//菜单下拉框
|
210
|
- let menuOptions=Vue.ref([]);
|
210
|
+ let menuOptions = Vue.ref([]);
|
211
|
let search = Vue.ref({
|
211
|
let search = Vue.ref({
|
212
|
- keyword:'',
|
|
|
213
|
- type:'',
|
|
|
214
|
- page:1,
|
|
|
215
|
- limit:10,
|
212
|
+ keyword: '',
|
|
|
213
|
+ type: '',
|
|
|
214
|
+ page: 1,
|
|
|
215
|
+ limit: 10,
|
216
|
});
|
216
|
});
|
217
|
//按钮下拉框
|
217
|
//按钮下拉框
|
218
|
- let typeOptions=Vue.ref([
|
218
|
+ let typeOptions = Vue.ref([
|
219
|
{
|
219
|
{
|
220
|
value: '0',
|
220
|
value: '0',
|
221
|
label: '菜单',
|
221
|
label: '菜单',
|
|
@@ -230,49 +230,49 @@ export default { |
|
@@ -230,49 +230,49 @@ export default { |
230
|
}]);
|
230
|
}]);
|
231
|
let couponSelected = Vue.ref();
|
231
|
let couponSelected = Vue.ref();
|
232
|
let ajConfigFrom = Vue.ref({
|
232
|
let ajConfigFrom = Vue.ref({
|
233
|
- id:'',
|
233
|
+ id: '',
|
234
|
type: 0,
|
234
|
type: 0,
|
235
|
designPage: '',
|
235
|
designPage: '',
|
236
|
param: '&resId=#resId&access_token=#access_token',
|
236
|
param: '&resId=#resId&access_token=#access_token',
|
237
|
resType: '',
|
237
|
resType: '',
|
238
|
- remark:'',
|
|
|
239
|
- creatTime:'',
|
|
|
240
|
- createName:'',
|
|
|
241
|
- state:'',
|
|
|
242
|
- title:'',
|
|
|
243
|
- menuPid:'',
|
|
|
244
|
- menuName:''
|
238
|
+ remark: '',
|
|
|
239
|
+ creatTime: '',
|
|
|
240
|
+ createName: '',
|
|
|
241
|
+ state: '',
|
|
|
242
|
+ title: '',
|
|
|
243
|
+ menuPid: '',
|
|
|
244
|
+ menuName: ''
|
245
|
});
|
245
|
});
|
246
|
//新增弹框
|
246
|
//新增弹框
|
247
|
- const addAj=()=>{
|
247
|
+ const addAj = () => {
|
248
|
clearForm();
|
248
|
clearForm();
|
249
|
- cacheVisible.value=true;
|
249
|
+ cacheVisible.value = true;
|
250
|
pageList();
|
250
|
pageList();
|
251
|
menuList();
|
251
|
menuList();
|
252
|
|
252
|
|
253
|
}
|
253
|
}
|
254
|
//新增或修改aj配置信息
|
254
|
//新增或修改aj配置信息
|
255
|
- let addAjConfig=(ruleForm)=>{
|
|
|
256
|
- let params={};
|
|
|
257
|
- params= ajConfigFrom.value;
|
255
|
+ let addAjConfig = (ruleForm) => {
|
|
|
256
|
+ let params = {};
|
|
|
257
|
+ params = ajConfigFrom.value;
|
258
|
let msg = '';
|
258
|
let msg = '';
|
259
|
- if (addOrUpdate.value){
|
259
|
+ if (addOrUpdate.value) {
|
260
|
proxy.$http.post(`/api-web/ajConfig/updateAj`, params, function (res) {
|
260
|
proxy.$http.post(`/api-web/ajConfig/updateAj`, params, function (res) {
|
261
|
if (res && res.success == true) {
|
261
|
if (res && res.success == true) {
|
262
|
msg = res.msg;
|
262
|
msg = res.msg;
|
263
|
- cacheVisible.value=false;
|
263
|
+ cacheVisible.value = false;
|
264
|
proxy.$global.showMsg(msg);
|
264
|
proxy.$global.showMsg(msg);
|
265
|
clearForm();
|
265
|
clearForm();
|
266
|
getDataList();
|
266
|
getDataList();
|
267
|
}
|
267
|
}
|
268
|
})
|
268
|
})
|
269
|
- }else{
|
269
|
+ } else {
|
270
|
proxy.$http.post(`/api-web/ajConfig/addAj`, params, function (res) {
|
270
|
proxy.$http.post(`/api-web/ajConfig/addAj`, params, function (res) {
|
271
|
if (res && res.success == true) {
|
271
|
if (res && res.success == true) {
|
272
|
msg = res.msg;
|
272
|
msg = res.msg;
|
273
|
- cacheVisible.value=false;
|
273
|
+ cacheVisible.value = false;
|
274
|
proxy.$global.showMsg(msg);
|
274
|
proxy.$global.showMsg(msg);
|
275
|
- if (params.type==0){
|
275
|
+ if (params.type == 0) {
|
276
|
window.history.go(0);
|
276
|
window.history.go(0);
|
277
|
}
|
277
|
}
|
278
|
clearForm();
|
278
|
clearForm();
|
|
@@ -283,28 +283,28 @@ export default { |
|
@@ -283,28 +283,28 @@ export default { |
283
|
}
|
283
|
}
|
284
|
}
|
284
|
}
|
285
|
//清理表单
|
285
|
//清理表单
|
286
|
- let clearForm=()=>{
|
|
|
287
|
- ajConfigFrom.value={
|
|
|
288
|
- id:'',
|
286
|
+ let clearForm = () => {
|
|
|
287
|
+ ajConfigFrom.value = {
|
|
|
288
|
+ id: '',
|
289
|
type: '0',
|
289
|
type: '0',
|
290
|
designPage: '',
|
290
|
designPage: '',
|
291
|
param: '',
|
291
|
param: '',
|
292
|
resType: '',
|
292
|
resType: '',
|
293
|
- remark:'',
|
|
|
294
|
- creatTime:'',
|
|
|
295
|
- createName:'',
|
|
|
296
|
- state:'',
|
|
|
297
|
- title:'',
|
|
|
298
|
- menuPid:'',
|
|
|
299
|
- menuName:''
|
293
|
+ remark: '',
|
|
|
294
|
+ creatTime: '',
|
|
|
295
|
+ createName: '',
|
|
|
296
|
+ state: '',
|
|
|
297
|
+ title: '',
|
|
|
298
|
+ menuPid: '',
|
|
|
299
|
+ menuName: ''
|
300
|
}
|
300
|
}
|
301
|
- addOrUpdate.value=false;
|
301
|
+ addOrUpdate.value = false;
|
302
|
}
|
302
|
}
|
303
|
|
303
|
|
304
|
//删除
|
304
|
//删除
|
305
|
- let handleDelete=(row)=>{
|
|
|
306
|
- let param={
|
|
|
307
|
- id:row.id
|
305
|
+ let handleDelete = (row) => {
|
|
|
306
|
+ let param = {
|
|
|
307
|
+ id: row.id
|
308
|
}
|
308
|
}
|
309
|
proxy.$http.get(`/api-web/ajConfig/deleteById`, param, function (res) {
|
309
|
proxy.$http.get(`/api-web/ajConfig/deleteById`, param, function (res) {
|
310
|
|
310
|
|
|
@@ -313,7 +313,7 @@ export default { |
|
@@ -313,7 +313,7 @@ export default { |
313
|
if (!msg) {
|
313
|
if (!msg) {
|
314
|
msg = "删除失败";
|
314
|
msg = "删除失败";
|
315
|
}
|
315
|
}
|
316
|
- if (row.type==0){
|
316
|
+ if (row.type == 0) {
|
317
|
history.go(0);
|
317
|
history.go(0);
|
318
|
}
|
318
|
}
|
319
|
proxy.$global.showMsg(msg);
|
319
|
proxy.$global.showMsg(msg);
|
|
@@ -321,33 +321,33 @@ export default { |
|
@@ -321,33 +321,33 @@ export default { |
321
|
}
|
321
|
}
|
322
|
})
|
322
|
})
|
323
|
}
|
323
|
}
|
324
|
- let handleUpdate=(row)=>{
|
|
|
325
|
- addOrUpdate.value =true;
|
|
|
326
|
- ajConfigFrom.value=row;
|
|
|
327
|
- cacheVisible.value=true;
|
324
|
+ let handleUpdate = (row) => {
|
|
|
325
|
+ addOrUpdate.value = true;
|
|
|
326
|
+ ajConfigFrom.value = row;
|
|
|
327
|
+ cacheVisible.value = true;
|
328
|
pageList();
|
328
|
pageList();
|
329
|
menuList();
|
329
|
menuList();
|
330
|
}
|
330
|
}
|
331
|
|
331
|
|
332
|
//预览
|
332
|
//预览
|
333
|
- let preview=(row)=>{
|
|
|
334
|
- if (row instanceof Object){
|
|
|
335
|
- proxy.$global.viewAjView(row.id,'80%','80%');
|
|
|
336
|
- }else if (row){
|
|
|
337
|
- proxy.$global.viewAjView(row,'80%','80%');
|
333
|
+ let preview = (row) => {
|
|
|
334
|
+ if (row instanceof Object) {
|
|
|
335
|
+ proxy.$global.viewAjView(row.id, '80%', '80%');
|
|
|
336
|
+ } else if (row) {
|
|
|
337
|
+ proxy.$global.viewAjView(row, '80%', '80%');
|
338
|
}
|
338
|
}
|
339
|
|
339
|
|
340
|
}
|
340
|
}
|
341
|
|
341
|
|
342
|
//aj报表管理信息
|
342
|
//aj报表管理信息
|
343
|
- let pageList=()=>{
|
343
|
+ let pageList = () => {
|
344
|
proxy.$http.get(`/api-web/ajConfig/pageList`, null, function (res) {
|
344
|
proxy.$http.get(`/api-web/ajConfig/pageList`, null, function (res) {
|
345
|
if (res && res.success == true) {
|
345
|
if (res && res.success == true) {
|
346
|
- let params=res.object.data.records;
|
|
|
347
|
- params.forEach(function(e){
|
|
|
348
|
- let report={}
|
|
|
349
|
- report.label=e.reportName;
|
|
|
350
|
- report.value=e.reportCode;
|
346
|
+ let params = res.object.data.records;
|
|
|
347
|
+ params.forEach(function (e) {
|
|
|
348
|
+ let report = {}
|
|
|
349
|
+ report.label = e.reportName;
|
|
|
350
|
+ report.value = e.reportCode;
|
351
|
options.value.push(report)
|
351
|
options.value.push(report)
|
352
|
});
|
352
|
});
|
353
|
}
|
353
|
}
|
|
@@ -355,14 +355,14 @@ export default { |
|
@@ -355,14 +355,14 @@ export default { |
355
|
}
|
355
|
}
|
356
|
|
356
|
|
357
|
//菜单
|
357
|
//菜单
|
358
|
- let menuList=()=>{
|
358
|
+ let menuList = () => {
|
359
|
proxy.$http.get(`/api-user/menus/findAlls`, null, function (res) {
|
359
|
proxy.$http.get(`/api-user/menus/findAlls`, null, function (res) {
|
360
|
- if (res && res.count>0) {
|
|
|
361
|
- let params=res.data;
|
|
|
362
|
- params.forEach(function(e){
|
|
|
363
|
- let menu={}
|
|
|
364
|
- menu.label=e.name;
|
|
|
365
|
- menu.value=e.id;
|
360
|
+ if (res && res.count > 0) {
|
|
|
361
|
+ let params = res.data;
|
|
|
362
|
+ params.forEach(function (e) {
|
|
|
363
|
+ let menu = {}
|
|
|
364
|
+ menu.label = e.name;
|
|
|
365
|
+ menu.value = e.id;
|
366
|
menuOptions.value.push(menu)
|
366
|
menuOptions.value.push(menu)
|
367
|
});
|
367
|
});
|
368
|
}
|
368
|
}
|
|
@@ -370,7 +370,7 @@ export default { |
|
@@ -370,7 +370,7 @@ export default { |
370
|
|
370
|
|
371
|
}
|
371
|
}
|
372
|
//AJ设计登录
|
372
|
//AJ设计登录
|
373
|
- let handleView=()=>{
|
373
|
+ let handleView = () => {
|
374
|
window.open(sessionStorage.getItem("ajWeb") + '/#/login?access_token=' + localStorage.getItem("access_token"));
|
374
|
window.open(sessionStorage.getItem("ajWeb") + '/#/login?access_token=' + localStorage.getItem("access_token"));
|
375
|
}
|
375
|
}
|
376
|
|
376
|
|
|
@@ -382,49 +382,49 @@ export default { |
|
@@ -382,49 +382,49 @@ export default { |
382
|
getDataList()
|
382
|
getDataList()
|
383
|
}
|
383
|
}
|
384
|
|
384
|
|
385
|
- let onChangeStripe = (e)=>{
|
|
|
386
|
- if(e =='0'){
|
|
|
387
|
- columns.value=menuColumns.value;
|
385
|
+ let onChangeStripe = (e) => {
|
|
|
386
|
+ if (e == '0') {
|
|
|
387
|
+ columns.value = menuColumns.value;
|
388
|
}
|
388
|
}
|
389
|
- if (e =='1'){
|
|
|
390
|
- columns.value=butColumns.value;
|
389
|
+ if (e == '1') {
|
|
|
390
|
+ columns.value = butColumns.value;
|
391
|
}
|
391
|
}
|
392
|
- if (e =='2'){
|
|
|
393
|
- columns.value=detailColumns.value;
|
392
|
+ if (e == '2') {
|
|
|
393
|
+ columns.value = detailColumns.value;
|
394
|
}
|
394
|
}
|
395
|
- search.value.type=e;
|
395
|
+ search.value.type = e;
|
396
|
getDataList()
|
396
|
getDataList()
|
397
|
}
|
397
|
}
|
398
|
|
398
|
|
399
|
//获取aj配置信息
|
399
|
//获取aj配置信息
|
400
|
- let getDataList=()=>{
|
|
|
401
|
- let params={
|
|
|
402
|
- page:search.value.page,
|
|
|
403
|
- limit:search.value.limit,
|
|
|
404
|
- type:search.value.type,
|
|
|
405
|
- keyword:search.value.keyword
|
400
|
+ let getDataList = () => {
|
|
|
401
|
+ let params = {
|
|
|
402
|
+ page: search.value.page,
|
|
|
403
|
+ limit: search.value.limit,
|
|
|
404
|
+ type: search.value.type,
|
|
|
405
|
+ keyword: search.value.keyword
|
406
|
}
|
406
|
}
|
407
|
- proxy.$http.get(`/api-web/ajConfig/ajConfigList`,params, function (res) {
|
407
|
+ proxy.$http.get(`/api-web/ajConfig/ajConfigList`, params, function (res) {
|
408
|
if (res && res.data) {
|
408
|
if (res && res.data) {
|
409
|
count.value = res.count;
|
409
|
count.value = res.count;
|
410
|
tableDataList.value = res.data;
|
410
|
tableDataList.value = res.data;
|
411
|
- }else{
|
411
|
+ } else {
|
412
|
count.value = 0;
|
412
|
count.value = 0;
|
413
|
- tableDataList.value='暂无数据';
|
413
|
+ tableDataList.value = '暂无数据';
|
414
|
}
|
414
|
}
|
415
|
});
|
415
|
});
|
416
|
|
416
|
|
417
|
}
|
417
|
}
|
418
|
|
418
|
|
419
|
//关闭弹框
|
419
|
//关闭弹框
|
420
|
- let cancelBtn=()=>{
|
|
|
421
|
- cacheVisible.value=false;
|
420
|
+ let cancelBtn = () => {
|
|
|
421
|
+ cacheVisible.value = false;
|
422
|
}
|
422
|
}
|
423
|
// 挂载完
|
423
|
// 挂载完
|
424
|
Vue.onMounted(() => {
|
424
|
Vue.onMounted(() => {
|
425
|
couponSelected.value = typeOptions.value[0].label;
|
425
|
couponSelected.value = typeOptions.value[0].label;
|
426
|
- columns.value=menuColumns.value;
|
|
|
427
|
- search.value.type=typeOptions.value[0].value;
|
426
|
+ columns.value = menuColumns.value;
|
|
|
427
|
+ search.value.type = typeOptions.value[0].value;
|
428
|
getDataList();
|
428
|
getDataList();
|
429
|
})
|
429
|
})
|
430
|
|
430
|
|