n20-common-lib 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/Layout/HeaderWrap/indexN.vue +6 -8
- package/src/components/LoginSetting/indexN.vue +9 -2
- package/src/components/LoginSetting/setItem.vue +13 -9
- package/src/components/LoginTemporary/form.vue +8 -1
- package/src/components/LoginTemporary/indexN.vue +46 -10
- package/src/components/LoginTemporary/systemIconMap.js +8 -8
package/package.json
CHANGED
|
@@ -116,14 +116,12 @@
|
|
|
116
116
|
<span class="_edit el-icon-edit" @click="editByLabel"></span>
|
|
117
117
|
</div>
|
|
118
118
|
</div>
|
|
119
|
-
<
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
>
|
|
125
|
-
<changePwd :visible.sync="cpwdV" />
|
|
126
|
-
</dialogWrap>
|
|
119
|
+
<el-dropdown-item command="changePassword">
|
|
120
|
+
<div class="flex-box flex-v">
|
|
121
|
+
<span>{{ '修改密码' | $lc }}</span>
|
|
122
|
+
<i class="el-icon-caret-right m-l-auto m-r-0"></i>
|
|
123
|
+
</div>
|
|
124
|
+
</el-dropdown-item>
|
|
127
125
|
<el-dropdown-item v-if="customOpt.agency" command="myAgency">
|
|
128
126
|
<div class="flex-box flex-v">
|
|
129
127
|
<span>{{ '工作代理' | $lc }}</span>
|
|
@@ -35,7 +35,13 @@
|
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
<template v-for="item in munList">
|
|
38
|
-
<SetItem
|
|
38
|
+
<SetItem
|
|
39
|
+
v-if="activateMunId === item.id"
|
|
40
|
+
:key="item.id + siKey"
|
|
41
|
+
class="flex-item"
|
|
42
|
+
:id-no="activateMunId"
|
|
43
|
+
@renewal="siKey = siKey + 1"
|
|
44
|
+
/>
|
|
39
45
|
</template>
|
|
40
46
|
</div>
|
|
41
47
|
<div slot="footer" style="height: 44px"></div>
|
|
@@ -51,7 +57,8 @@ export default {
|
|
|
51
57
|
return {
|
|
52
58
|
userNo: sessionStorage.getItem('userNo'),
|
|
53
59
|
munList: [],
|
|
54
|
-
activateMunId: undefined
|
|
60
|
+
activateMunId: undefined,
|
|
61
|
+
siKey: 0
|
|
55
62
|
}
|
|
56
63
|
},
|
|
57
64
|
created() {
|
|
@@ -163,56 +163,56 @@ export default {
|
|
|
163
163
|
LOGIN_TYPE: 'T1',
|
|
164
164
|
SYSTEM_LIST: [
|
|
165
165
|
{
|
|
166
|
-
NO: '
|
|
166
|
+
NO: 'CSZHYW',
|
|
167
167
|
NAME: '财司综合业务系统',
|
|
168
168
|
ICON: undefined,
|
|
169
169
|
LOGIN_MODE: [],
|
|
170
170
|
OPEN: true
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
|
-
NO: '
|
|
173
|
+
NO: 'CSYWGL',
|
|
174
174
|
NAME: '财司业务管理系统',
|
|
175
175
|
ICON: undefined,
|
|
176
176
|
LOGIN_MODE: [],
|
|
177
177
|
OPEN: false
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
|
-
NO: '
|
|
180
|
+
NO: 'CSFZJC',
|
|
181
181
|
NAME: '财司辅助决策系统',
|
|
182
182
|
ICON: undefined,
|
|
183
183
|
LOGIN_MODE: [],
|
|
184
184
|
OPEN: false
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
|
-
NO: '
|
|
187
|
+
NO: 'CSWY',
|
|
188
188
|
NAME: '财司网银系统',
|
|
189
189
|
ICON: undefined,
|
|
190
190
|
LOGIN_MODE: [],
|
|
191
191
|
OPEN: false
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
|
-
NO: '
|
|
194
|
+
NO: 'JTZL',
|
|
195
195
|
NAME: '财司直连平台系统',
|
|
196
196
|
ICON: undefined,
|
|
197
197
|
LOGIN_MODE: [],
|
|
198
198
|
OPEN: false
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
NO: '
|
|
201
|
+
NO: 'JRWG',
|
|
202
202
|
NAME: '金融网管系统',
|
|
203
203
|
ICON: undefined,
|
|
204
204
|
LOGIN_MODE: [],
|
|
205
205
|
OPEN: false
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
NO: '
|
|
208
|
+
NO: 'JTSKYWGK',
|
|
209
209
|
NAME: '集团司库业务管控系统',
|
|
210
210
|
ICON: undefined,
|
|
211
211
|
LOGIN_MODE: [],
|
|
212
212
|
OPEN: false
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
|
-
NO: '
|
|
215
|
+
NO: 'JTSKSJFX',
|
|
216
216
|
NAME: '集团数据分析系统',
|
|
217
217
|
ICON: undefined,
|
|
218
218
|
LOGIN_MODE: [],
|
|
@@ -320,7 +320,11 @@ export default {
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
this.$axios.post(`/bems/1.0/sysSetting`, data).then((res) => {
|
|
323
|
-
this
|
|
323
|
+
this.$message({
|
|
324
|
+
type: 'success',
|
|
325
|
+
message: `设置成功.`
|
|
326
|
+
})
|
|
327
|
+
this.$emit('renewal')
|
|
324
328
|
})
|
|
325
329
|
},
|
|
326
330
|
Logout() {
|
|
@@ -181,6 +181,10 @@ export default {
|
|
|
181
181
|
asyncRelaNos: {
|
|
182
182
|
type: Boolean,
|
|
183
183
|
default: false
|
|
184
|
+
},
|
|
185
|
+
extraForm: {
|
|
186
|
+
type: Object,
|
|
187
|
+
default: () => ({})
|
|
184
188
|
}
|
|
185
189
|
},
|
|
186
190
|
data() {
|
|
@@ -570,7 +574,10 @@ export default {
|
|
|
570
574
|
this.loadingAdd()
|
|
571
575
|
let { data } = await axios.get(
|
|
572
576
|
'/bems/1.0/menuTree/tree',
|
|
573
|
-
{
|
|
577
|
+
{
|
|
578
|
+
resType: this.asyncRelaNos ? '1' : undefined,
|
|
579
|
+
...this.extraForm
|
|
580
|
+
},
|
|
574
581
|
{ loading: this.loadingSub }
|
|
575
582
|
)
|
|
576
583
|
data || (data = [])
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
v-for="(item, i) in systemList"
|
|
57
57
|
:key="item.NO"
|
|
58
58
|
class="sys-item float-left"
|
|
59
|
+
:class="{ active: item.NO === sltSys.NO }"
|
|
59
60
|
:style="{
|
|
60
61
|
marginRight: (i + 1) % 4 ? '32px' : undefined,
|
|
61
62
|
marginBottom: systemList.length > 4 && i < 4 ? '54px' : undefined
|
|
@@ -76,8 +77,9 @@
|
|
|
76
77
|
v-if="operateType === 'login'"
|
|
77
78
|
:before-login="beforeLogin"
|
|
78
79
|
:login-types="loginTypes"
|
|
79
|
-
:login-then="
|
|
80
|
+
:login-then="loginThenT"
|
|
80
81
|
:async-rela-nos="asyncRelaNos"
|
|
82
|
+
:extra-form="extraForm"
|
|
81
83
|
class="login-form"
|
|
82
84
|
@changType="getChangetype"
|
|
83
85
|
>
|
|
@@ -200,56 +202,56 @@ export default {
|
|
|
200
202
|
LOGIN_TYPE: undefined,
|
|
201
203
|
SYSTEM_LIST: [
|
|
202
204
|
{
|
|
203
|
-
NO: '
|
|
205
|
+
NO: 'CSZHYW',
|
|
204
206
|
NAME: '财司综合业务系统',
|
|
205
207
|
ICON: undefined,
|
|
206
208
|
LOGIN_MODE: [],
|
|
207
209
|
OPEN: false
|
|
208
210
|
},
|
|
209
211
|
{
|
|
210
|
-
NO: '
|
|
212
|
+
NO: 'CSYWGL',
|
|
211
213
|
NAME: '财司业务管理系统',
|
|
212
214
|
ICON: undefined,
|
|
213
215
|
LOGIN_MODE: [],
|
|
214
216
|
OPEN: false
|
|
215
217
|
},
|
|
216
218
|
{
|
|
217
|
-
NO: '
|
|
219
|
+
NO: 'CSFZJC',
|
|
218
220
|
NAME: '财司辅助决策系统',
|
|
219
221
|
ICON: undefined,
|
|
220
222
|
LOGIN_MODE: [],
|
|
221
223
|
OPEN: false
|
|
222
224
|
},
|
|
223
225
|
{
|
|
224
|
-
NO: '
|
|
226
|
+
NO: 'CSWY',
|
|
225
227
|
NAME: '财司网银系统',
|
|
226
228
|
ICON: undefined,
|
|
227
229
|
LOGIN_MODE: [],
|
|
228
230
|
OPEN: false
|
|
229
231
|
},
|
|
230
232
|
{
|
|
231
|
-
NO: '
|
|
233
|
+
NO: 'JTZL',
|
|
232
234
|
NAME: '财司直连平台系统',
|
|
233
235
|
ICON: undefined,
|
|
234
236
|
LOGIN_MODE: [],
|
|
235
237
|
OPEN: false
|
|
236
238
|
},
|
|
237
239
|
{
|
|
238
|
-
NO: '
|
|
240
|
+
NO: 'JRWG',
|
|
239
241
|
NAME: '金融网管系统',
|
|
240
242
|
ICON: undefined,
|
|
241
243
|
LOGIN_MODE: [],
|
|
242
244
|
OPEN: false
|
|
243
245
|
},
|
|
244
246
|
{
|
|
245
|
-
NO: '
|
|
247
|
+
NO: 'JTSKYWGK',
|
|
246
248
|
NAME: '集团司库业务管控系统',
|
|
247
249
|
ICON: undefined,
|
|
248
250
|
LOGIN_MODE: [],
|
|
249
251
|
OPEN: false
|
|
250
252
|
},
|
|
251
253
|
{
|
|
252
|
-
NO: '
|
|
254
|
+
NO: 'JTSKSJFX',
|
|
253
255
|
NAME: '集团数据分析系统',
|
|
254
256
|
ICON: undefined,
|
|
255
257
|
LOGIN_MODE: [],
|
|
@@ -257,7 +259,7 @@ export default {
|
|
|
257
259
|
}
|
|
258
260
|
]
|
|
259
261
|
},
|
|
260
|
-
sltSys:
|
|
262
|
+
sltSys: {},
|
|
261
263
|
inspectionV: false
|
|
262
264
|
}
|
|
263
265
|
},
|
|
@@ -300,6 +302,16 @@ export default {
|
|
|
300
302
|
},
|
|
301
303
|
systemList() {
|
|
302
304
|
return this.form.SYSTEM_LIST.filter((d) => d.OPEN)
|
|
305
|
+
},
|
|
306
|
+
extraForm() {
|
|
307
|
+
let form = {}
|
|
308
|
+
if (this?.sltSys?.NO) {
|
|
309
|
+
form.systemNo = this.sltSys.NO
|
|
310
|
+
} else if (this.systemList.length === 1) {
|
|
311
|
+
form.systemNo = this.systemList[0].NO
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return form
|
|
303
315
|
}
|
|
304
316
|
},
|
|
305
317
|
created() {
|
|
@@ -316,6 +328,16 @@ export default {
|
|
|
316
328
|
window.removeEventListener('resize', this.setWrapSty)
|
|
317
329
|
},
|
|
318
330
|
methods: {
|
|
331
|
+
async loginThenT() {
|
|
332
|
+
if (this.sltSys?.NO) {
|
|
333
|
+
localStorage.setItem('pageInSystemNo', this.sltSys.NO)
|
|
334
|
+
} else {
|
|
335
|
+
localStorage.removeItem('pageInSystemNo')
|
|
336
|
+
}
|
|
337
|
+
if (this.loginThen) {
|
|
338
|
+
await this.loginThen()
|
|
339
|
+
}
|
|
340
|
+
},
|
|
319
341
|
setWrapSty() {
|
|
320
342
|
let winW = document.documentElement.clientWidth
|
|
321
343
|
let winH = document.documentElement.clientHeight
|
|
@@ -377,8 +399,18 @@ export default {
|
|
|
377
399
|
this.jsonData = _layoutData
|
|
378
400
|
|
|
379
401
|
this.$nextTick(() => {
|
|
402
|
+
let systemNo = localStorage.getItem('pageInSystemNo')
|
|
403
|
+
let acSysI = this.systemList.findIndex((s) => s.NO === systemNo)
|
|
404
|
+
|
|
380
405
|
if (this.form.LOGIN_TYPE === 'T1') {
|
|
381
406
|
this.newSwiper()
|
|
407
|
+
if (acSysI !== -1) {
|
|
408
|
+
window.loginSwiperSys(acSysI)
|
|
409
|
+
}
|
|
410
|
+
} else {
|
|
411
|
+
if (acSysI !== -1) {
|
|
412
|
+
this.selSystem(this.systemList[acSysI])
|
|
413
|
+
}
|
|
382
414
|
}
|
|
383
415
|
})
|
|
384
416
|
},
|
|
@@ -661,6 +693,10 @@ export default {
|
|
|
661
693
|
background: linear-gradient(180deg, rgba(153, 165, 186, 0.53), rgba(96, 108, 133, 0.15));
|
|
662
694
|
border-radius: 6px;
|
|
663
695
|
}
|
|
696
|
+
.login-wrap-2 .sys-item:hover,
|
|
697
|
+
.login-wrap-2 .sys-item.active {
|
|
698
|
+
background: linear-gradient(180deg, #327bff, rgba(74, 102, 158, 0.3));
|
|
699
|
+
}
|
|
664
700
|
.login-wrap-2 .sys-item-title {
|
|
665
701
|
height: 58px;
|
|
666
702
|
font-size: 14px;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
CSZHYW: '/server-assets/N01.png',
|
|
3
|
+
CSYWGL: '/server-assets/N02.png',
|
|
4
|
+
CSFZJC: '/server-assets/N03.png',
|
|
5
|
+
CSWY: '/server-assets/N04.png',
|
|
6
|
+
JTZL: '/server-assets/N05.png',
|
|
7
|
+
JRWG: '/server-assets/N06.png',
|
|
8
|
+
JTSKYWGK: '/server-assets/N07.png',
|
|
9
|
+
JTSKSJFX: '/server-assets/N08.png'
|
|
10
10
|
}
|