n20-common-lib 2.3.18 → 2.3.20

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.3.18",
3
+ "version": "2.3.20",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -115,8 +115,8 @@ $--header-color: #3d4a57;
115
115
  line-height: 37px;
116
116
  }
117
117
  }
118
- .user-info-drop-menu-new .user-info-drop_height {
119
- height: 512px;
118
+ .user-info-drop-menu-new.user-info-drop_height {
119
+ height: 522px;
120
120
  }
121
121
 
122
122
  .uif-user-w {
@@ -278,9 +278,7 @@ export default {
278
278
  async preview(row) {
279
279
  this.visibleP = true
280
280
  this.seeRow = row
281
- const blob = await axios.get(`/api/onlinePreview?beid=${row.beid}`, {}, { responseType: 'blob' })
282
- let url = URL.createObjectURL(blob)
283
- this.previewUrl = url
281
+ this.previewUrl = `/api/onlinePreview?beid=${row.beid}`
284
282
  this.previewName = row.fileName
285
283
  this.previewSameOrg = this.seeTypes.test(row.fileName)
286
284
  },
@@ -338,7 +338,7 @@ export default {
338
338
  byLabel: '',
339
339
  byEV: false,
340
340
  headerUserInfoBg: realUrl('/server-assets/userInfoBg.png'),
341
- inBack: !window.localStorage.getItem('pageInSystemNo') && window.localStorage.getItem('pageInType') === 'inBack'
341
+ inBack: window.localStorage.getItem('pageInType') === 'inBack'
342
342
  }
343
343
  },
344
344
  computed: {
@@ -418,7 +418,7 @@ export default {
418
418
  },
419
419
  async clickSystem(item) {
420
420
  await this.getTreeList(item)
421
- window.localStorage.setItem('pageInType', 'toFront')
421
+ localStorage.setItem('pageInType', 'inFront')
422
422
  window.localStorage.setItem('pageInSystemNo', item.systemCode)
423
423
  let { base = '/' } = this.$router.options
424
424
  if (!/\/$/.test(base)) base += '/'
@@ -516,6 +516,7 @@ export default {
516
516
  },
517
517
  selSystem(item) {
518
518
  localStorage.setItem('pageInSystemNo', item.NO)
519
+ localStorage.setItem('pageInType', 'inFront')
519
520
  this.sltSys = item
520
521
  }
521
522
  }