1
0
mirror of synced 2025-12-08 06:26:45 +08:00
This commit is contained in:
xuliangzhan
2020-03-26 19:15:44 +08:00
parent d921f9b448
commit f048cea8f6
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -40,7 +40,7 @@ function exportXLSX (params: InterceptorExportParams) {
const { footerData } = $table.getTableData()
const footers = footerFilterMethod ? footerData.filter(footerFilterMethod) : footerData
footers.forEach((rows) => {
const item: any = {}
const item: { [key: string]: any } = {}
columns.forEach((column) => {
item[column.id] = getFooterCellValue($table, options, rows, column)
})
@@ -92,7 +92,7 @@ function parseCsv (columns: ColumnConfig[], content: string) {
list[0].split(',').map(replaceDoubleQuotation)
rList.forEach((r) => {
if (r) {
const item: any = {}
const item: { [key: string]: any } = {}
r.split(',').forEach((val, colIndex) => {
if (fields[colIndex]) {
item[fields[colIndex]] = replaceDoubleQuotation(val)