n20-common-lib 1.2.30 → 1.2.33

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": "1.2.30",
3
+ "version": "1.2.33",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -13,13 +13,8 @@
13
13
  <el-divider direction="vertical" />
14
14
  <!-- eslint-disable-next-line vue/no-v-html -->
15
15
  <h3 class="header-title" v-html="headerTitle"></h3>
16
- <el-tooltip
17
- class="set-user-btn"
18
- effect="dark"
19
- content="帮助文档"
20
- placement="top-start"
21
- >
22
- <i class="el-icon-info" @click="openHelp"></i>
16
+ <el-tooltip content="帮助文档">
17
+ <span class="set-user-btn el-icon-info" @click="openHelp"></span>
23
18
  </el-tooltip>
24
19
 
25
20
  <el-dropdown
@@ -94,9 +89,12 @@
94
89
  <el-dropdown-item command="changePassword" divided>{{
95
90
  '修改密码' | $l(i18n)
96
91
  }}</el-dropdown-item>
97
- <el-dropdown-item command="myDeal" divided>{{
98
- '我的交易' | $l(i18n)
99
- }}</el-dropdown-item>
92
+ <el-dropdown-item
93
+ v-if="customOpt.mydeal !== false"
94
+ command="myDeal"
95
+ divided
96
+ >{{ '我的交易' | $l(i18n) }}</el-dropdown-item
97
+ >
100
98
  <el-dropdown-item
101
99
  v-if="customOpt.agency && customOpt.agency.show"
102
100
  command="myAgency"
@@ -214,13 +214,6 @@ export default {
214
214
  },
215
215
  getTabList() {
216
216
  let tabList = JSON.parse(window.sessionStorage.getItem('tab-list')) || []
217
- if (!tabList.some((tab) => tab.route === this.keepTab)) {
218
- let menu = this.menuList.find((m) => m.route === this.keepTab)
219
- if (menu) {
220
- let keepMenu = Object.assign({}, menu, { keep: true })
221
- tabList.unshift(keepMenu)
222
- }
223
- }
224
217
  this.tabList = tabList
225
218
  },
226
219
  setTabList() {
@@ -232,9 +225,9 @@ export default {
232
225
  )
233
226
  if (tab) {
234
227
  this.activeNav = tab.uuid
235
- } else {
228
+ } else if (this.keepTab) {
236
229
  this.$router.replace({
237
- path: this.keepTab || '/'
230
+ path: this.keepTab
238
231
  })
239
232
  }
240
233
  },
@@ -365,9 +358,9 @@ export default {
365
358
  }
366
359
  }
367
360
 
368
- this.$nextTick(() => {
361
+ setTimeout(() => {
369
362
  this.removeOcache({ path: path })
370
- })
363
+ }, 100)
371
364
  } else {
372
365
  console.warn('请求关闭的Tab页签不存在')
373
366
  }
@@ -385,12 +378,12 @@ export default {
385
378
  })
386
379
  }
387
380
 
388
- this.$nextTick(() => {
381
+ setTimeout(() => {
389
382
  nextTabs.forEach((t) => {
390
383
  this.removeOcache({ path: t.route })
391
384
  })
392
385
  nextTabs = undefined
393
- })
386
+ }, 100)
394
387
  },
395
388
  tabCloseOthers(uuid) {
396
389
  let tab = this.tabList.find((t) => t.uuid === uuid)
@@ -416,12 +409,12 @@ export default {
416
409
  })
417
410
  }
418
411
 
419
- this.$nextTick(() => {
412
+ setTimeout(() => {
420
413
  otherTabs.forEach((t) => {
421
414
  this.removeOcache({ path: t.route })
422
415
  })
423
416
  otherTabs = undefined
424
- })
417
+ }, 100)
425
418
  },
426
419
  tabRefresh({ uuid, path }) {
427
420
  let tab = undefined
@@ -281,9 +281,18 @@ export default {
281
281
  this.outTime(60)
282
282
 
283
283
  axios
284
- .get(
285
- `/bems/prod_1.0/uas/api/authorization/captcha/${this.form[type]}/1`,
286
- null,
284
+ // .get(
285
+ // `/bems/prod_1.0/uas/api/authorization/captcha/${this.form[type]}/1`,
286
+ // null,
287
+ // { loading: false, noMsg: true }
288
+ // )
289
+ .post(
290
+ '/bems/prod_1.0/uas/api/authorization/captcha',
291
+ {
292
+ handleType: 1,
293
+ mobile: type === 'phone' ? this.form[type] : '',
294
+ username: type !== 'phone' ? this.form[type] : ''
295
+ },
287
296
  { loading: false, noMsg: true }
288
297
  )
289
298
  .then(() => {
@@ -21,11 +21,7 @@ export function setRela(name) {
21
21
  )
22
22
  console.log(relaObj, 'has权限列表')
23
23
 
24
- let relaNosGlobal = []
25
- relaNos.forEach((item) => {
26
- relaNosGlobal.push.apply(relaNosGlobal, item.relaNos)
27
- })
28
- relaObj.relaNosGlobal = relaNosGlobal
24
+ relaObj.relaNosGlobal = relaNos.map((item) => item.relaNos).flat()
29
25
  return
30
26
  }
31
27
  /* 兼容旧门户 */