n20-common-lib 2.5.20 → 2.5.22

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.5.20",
3
+ "version": "2.5.22",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -467,7 +467,6 @@ export default {
467
467
  if (this.getFileMethod) {
468
468
  return this.getFileMethod(row, type)
469
469
  }
470
-
471
470
  let _url = row[this.keys.url]
472
471
  this.seePrefix && (_url = this.seePrefix + _url)
473
472
  if (_url) {
@@ -475,15 +474,15 @@ export default {
475
474
  // 预览
476
475
  return {
477
476
  url: `/api/onlinePreview?beid=${row[this.keys.url]}`,
478
- name: row.name + '.html',
479
- sameOrg: this.seeTypes.test(row.name)
477
+ name: row[this.keys.name] + '.html',
478
+ sameOrg: this.seeTypes.test(row[this.keys.name])
480
479
  }
481
480
  } else {
482
481
  // 下载
483
482
  let blob = await this.$axios.get(`/neams/eamsbaserecord/download/${row[this.keys.url]}`, null, {
484
483
  responseType: 'blob'
485
484
  })
486
- let name = row.name || blob.name
485
+ let name = row[this.keys.name] || blob.name
487
486
  return {
488
487
  url: URL.createObjectURL(blob),
489
488
  name: name,
@@ -57,7 +57,6 @@
57
57
  :width="column.width"
58
58
  :align="column.align"
59
59
  :show-overflow-tooltip="column.showOverflowTooltip"
60
- :formatter="item.formatter | colfF(item.formatterMap)"
61
60
  >
62
61
  <template slot-scope="scope">
63
62
  <span v-html="scope.row[column.prop]"></span>
package/src/i18n.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "en": "Online preview is not supported, please"
13
13
  },
14
14
  "已选合计": {
15
- "en": "Selected total"
15
+ "en": "Total selected"
16
16
  },
17
17
  "天!": {
18
18
  "en": "God!"
@@ -288,7 +288,7 @@
288
288
  "en": "Article."
289
289
  },
290
290
  "笔数": {
291
- "en": "Number of pens"
291
+ "en": "Counts"
292
292
  },
293
293
  "重新上传": {
294
294
  "en": "upload again"
@@ -1880,4 +1880,4 @@
1880
1880
  "请先勾选要删除的数据!": {
1881
1881
  "en": "Please select the data to be deleted first!"
1882
1882
  }
1883
- }
1883
+ }