t20-common-lib 0.14.1 → 0.14.3
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
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
// 使用 `* as` 可兼容不同打包器的导出形态。
|
|
36
36
|
import * as XLSX from 'xlsx'
|
|
37
37
|
import uploadMsg from './Upload/uploadMsg.vue'
|
|
38
|
-
import writeImportErrorExcel from '
|
|
38
|
+
import writeImportErrorExcel from '../../../src/utils/writeImportErrorExcel'
|
|
39
|
+
import { parseDate } from '../../../src/utils/date'
|
|
39
40
|
|
|
40
41
|
export default {
|
|
41
42
|
name: 'FileImport',
|
|
@@ -82,7 +83,8 @@ export default {
|
|
|
82
83
|
getDefaultErrorExportFileName() {
|
|
83
84
|
const baseName = String(this.fileName || '导入文件')
|
|
84
85
|
const pureName = baseName.replace(/\.(xlsx|xls|csv)$/i, '')
|
|
85
|
-
|
|
86
|
+
const date = parseDate(new Date(), "yyyyMMdd");
|
|
87
|
+
return `${pureName}-错误数据-${date}.xlsx`
|
|
86
88
|
},
|
|
87
89
|
getErrorExportParams() {
|
|
88
90
|
return {
|