n20-common-lib 2.4.75 → 2.4.77

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.75",
3
+ "version": "2.4.77",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -24,6 +24,7 @@
24
24
  :hide-percent="true"
25
25
  :footer-btn="footer"
26
26
  :validate-confirm="validateConfirm"
27
+ @importError="importError"
27
28
  />
28
29
  </div>
29
30
  </el-dropdown>
@@ -95,6 +96,9 @@ export default {
95
96
  }
96
97
  },
97
98
  methods: {
99
+ importError() {
100
+ this.$emit('importError')
101
+ },
98
102
  commandFn(val) {
99
103
  val === 'import' && this.importFn()
100
104
  val === 'down' && this.downFn()
@@ -44,6 +44,7 @@
44
44
  :footer-btn="footer"
45
45
  :validate-result="validateResult"
46
46
  :validate-confirm="validateConfirm"
47
+ @importError="importError"
47
48
  />
48
49
  </el-upload>
49
50
  </template>
@@ -183,6 +184,9 @@ export default {
183
184
  }
184
185
  },
185
186
  methods: {
187
+ importError() {
188
+ this.$emit('importError')
189
+ },
186
190
  clearFile() {
187
191
  if (this.onRemove) {
188
192
  this.onRemove(this.fileList[0], this.fileList)
@@ -45,16 +45,7 @@
45
45
  <div class="bd-t bd-l bd-r">
46
46
  <div class="flex-box flex-lr flex-v m-t m-b p-l p-r">
47
47
  <span>{{ '无效数据详情' | $lc }}</span>
48
- <el-button
49
- type="text"
50
- @click="
51
- () => {
52
- footerBtn.importBtn.click()
53
- progressV = false
54
- }
55
- "
56
- >{{ '导出错误数据' | $lc }}</el-button
57
- >
48
+ <el-button type="text" @click="importError">{{ '导出错误数据' | $lc }}</el-button>
58
49
  </div>
59
50
  <el-table :data="errorList" border style="width: 100%">
60
51
  <el-table-column
@@ -64,7 +55,7 @@
64
55
  :label="column.label"
65
56
  :width="column.width"
66
57
  :align="column.align"
67
- v-bind="$attrs"
58
+ :show-overflow-tooltip="column.showOverflowTooltip"
68
59
  >
69
60
  <template slot-scope="scope">
70
61
  <!-- eslint-disable-next-line vue/no-v-html -->
@@ -182,6 +173,9 @@ export default {
182
173
  }
183
174
  },
184
175
  methods: {
176
+ importError() {
177
+ this.$emit('importError')
178
+ },
185
179
  confirmFn() {
186
180
  if (this.validateConfirm) {
187
181
  this.validateConfirm(() => {