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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -116,14 +116,12 @@
116
116
  <span class="_edit el-icon-edit" @click="editByLabel"></span>
117
117
  </div>
118
118
  </div>
119
- <dialogWrap
120
- :title="'修改密码' | $lc"
121
- :visible.sync="cpwdV"
122
- append-to-body
123
- :width="_lang == 'zh' ? '400px' : '460px'"
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 v-if="activateMunId === item.id" :key="item.id" class="flex-item" :id-no="activateMunId" />
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: 'N01',
166
+ NO: 'CSZHYW',
167
167
  NAME: '财司综合业务系统',
168
168
  ICON: undefined,
169
169
  LOGIN_MODE: [],
170
170
  OPEN: true
171
171
  },
172
172
  {
173
- NO: 'N02',
173
+ NO: 'CSYWGL',
174
174
  NAME: '财司业务管理系统',
175
175
  ICON: undefined,
176
176
  LOGIN_MODE: [],
177
177
  OPEN: false
178
178
  },
179
179
  {
180
- NO: 'N03',
180
+ NO: 'CSFZJC',
181
181
  NAME: '财司辅助决策系统',
182
182
  ICON: undefined,
183
183
  LOGIN_MODE: [],
184
184
  OPEN: false
185
185
  },
186
186
  {
187
- NO: 'N04',
187
+ NO: 'CSWY',
188
188
  NAME: '财司网银系统',
189
189
  ICON: undefined,
190
190
  LOGIN_MODE: [],
191
191
  OPEN: false
192
192
  },
193
193
  {
194
- NO: 'N05',
194
+ NO: 'JTZL',
195
195
  NAME: '财司直连平台系统',
196
196
  ICON: undefined,
197
197
  LOGIN_MODE: [],
198
198
  OPEN: false
199
199
  },
200
200
  {
201
- NO: 'N06',
201
+ NO: 'JRWG',
202
202
  NAME: '金融网管系统',
203
203
  ICON: undefined,
204
204
  LOGIN_MODE: [],
205
205
  OPEN: false
206
206
  },
207
207
  {
208
- NO: 'N07',
208
+ NO: 'JTSKYWGK',
209
209
  NAME: '集团司库业务管控系统',
210
210
  ICON: undefined,
211
211
  LOGIN_MODE: [],
212
212
  OPEN: false
213
213
  },
214
214
  {
215
- NO: 'N08',
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.countDown()
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
- { resType: this.asyncRelaNos ? '1' : undefined },
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="loginThen"
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: 'N01',
205
+ NO: 'CSZHYW',
204
206
  NAME: '财司综合业务系统',
205
207
  ICON: undefined,
206
208
  LOGIN_MODE: [],
207
209
  OPEN: false
208
210
  },
209
211
  {
210
- NO: 'N02',
212
+ NO: 'CSYWGL',
211
213
  NAME: '财司业务管理系统',
212
214
  ICON: undefined,
213
215
  LOGIN_MODE: [],
214
216
  OPEN: false
215
217
  },
216
218
  {
217
- NO: 'N03',
219
+ NO: 'CSFZJC',
218
220
  NAME: '财司辅助决策系统',
219
221
  ICON: undefined,
220
222
  LOGIN_MODE: [],
221
223
  OPEN: false
222
224
  },
223
225
  {
224
- NO: 'N04',
226
+ NO: 'CSWY',
225
227
  NAME: '财司网银系统',
226
228
  ICON: undefined,
227
229
  LOGIN_MODE: [],
228
230
  OPEN: false
229
231
  },
230
232
  {
231
- NO: 'N05',
233
+ NO: 'JTZL',
232
234
  NAME: '财司直连平台系统',
233
235
  ICON: undefined,
234
236
  LOGIN_MODE: [],
235
237
  OPEN: false
236
238
  },
237
239
  {
238
- NO: 'N06',
240
+ NO: 'JRWG',
239
241
  NAME: '金融网管系统',
240
242
  ICON: undefined,
241
243
  LOGIN_MODE: [],
242
244
  OPEN: false
243
245
  },
244
246
  {
245
- NO: 'N07',
247
+ NO: 'JTSKYWGK',
246
248
  NAME: '集团司库业务管控系统',
247
249
  ICON: undefined,
248
250
  LOGIN_MODE: [],
249
251
  OPEN: false
250
252
  },
251
253
  {
252
- NO: 'N08',
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: undefined,
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
- N01: '/server-assets/N01.png',
3
- N02: '/server-assets/N02.png',
4
- N03: '/server-assets/N03.png',
5
- N04: '/server-assets/N04.png',
6
- N05: '/server-assets/N05.png',
7
- N06: '/server-assets/N06.png',
8
- N07: '/server-assets/N07.png',
9
- N08: '/server-assets/N08.png'
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
  }