n20-common-lib 2.4.56 → 2.4.58

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.4.56",
3
+ "version": "2.4.58",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -94,9 +94,6 @@ export default {
94
94
  this.errorV = val
95
95
  }
96
96
  },
97
- mounted() {
98
- console.log(this.footer)
99
- },
100
97
  methods: {
101
98
  commandFn(val) {
102
99
  val === 'import' && this.importFn()
@@ -194,7 +194,7 @@
194
194
  <i class="el-icon-s-release" style="font-size: 60px; color: #999"></i>
195
195
  <span style="margin-top: 16px">
196
196
  {{ '不支持在线预览,请' | $lc
197
- }}<el-link type="primary" @click="downFile(seeRow)">{{ '下载' | $lc }}</el-link
197
+ }}<el-link type="primary" class="color-primary" @click="downFile(seeRow)">{{ '下载' | $lc }}</el-link
198
198
  >{{ '到本地查看' | $lc }}
199
199
  </span>
200
200
  </div>
@@ -403,7 +403,6 @@ export default {
403
403
  },
404
404
  tabRefresh({ uuid, path }) {
405
405
  let tab = undefined
406
- console.log(this.tabList)
407
406
  if (uuid) {
408
407
  tab = this.tabList.find((t) => uuid === t.uuid)
409
408
  } else if (path) {
@@ -42,7 +42,19 @@
42
42
  </div>
43
43
  <template v-if="validateResult.errorList.length">
44
44
  <div class="bd-t bd-l bd-r">
45
- <div class="m-t m-b p-l">{{ '无效数据详情' | $lc }}</div>
45
+ <div class="flex-box flex-lr flex-v m-t m-b p-l p-r">
46
+ <span>{{ '无效数据详情' | $lc }}</span>
47
+ <el-button
48
+ type="text"
49
+ @click="
50
+ () => {
51
+ footerBtn.export.click()
52
+ progressV = false
53
+ }
54
+ "
55
+ >{{ '导出错误数据' | $lc }}</el-button
56
+ >
57
+ </div>
46
58
  <el-table :data="errorList" border style="width: 100%">
47
59
  <el-table-column
48
60
  v-for="column in columnsList"
@@ -52,7 +52,8 @@ export default {
52
52
  enumData,
53
53
  tips: [],
54
54
  list: '',
55
- interval: ''
55
+ interval: '',
56
+ timer: null
56
57
  }
57
58
  },
58
59
  computed: {
@@ -66,12 +67,15 @@ export default {
66
67
  this.setTimedTask(res.customOpt.timedTask)
67
68
  })
68
69
  },
70
+ beforeDestroy() {
71
+ clearInterval(this.timer)
72
+ },
69
73
  methods: {
70
74
  /**
71
75
  * 设置定时任务
72
76
  */
73
77
  setTimedTask(timer = 60000) {
74
- setInterval(this.getOperatingStatus, timer)
78
+ this.timer = setInterval(this.getOperatingStatus, timer)
75
79
  },
76
80
  /**
77
81
  * 获取营业状态
package/src/i18n.json CHANGED
@@ -1205,6 +1205,9 @@
1205
1205
  "请求超时,请刷新尝试": {
1206
1206
  "en": "The request timed out, please refresh the attempt."
1207
1207
  },
1208
+ "导出错误数据": {
1209
+ "en": "Export error data"
1210
+ },
1208
1211
  "一列导出数据": {
1209
1212
  "en": "One column of export data"
1210
1213
  },