Browse Source

修复导出excel

xiaochan 2 years ago
parent
commit
e961ac4ca0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/ExportExcel.js

+ 1 - 1
src/utils/ExportExcel.js

@@ -9,7 +9,7 @@ export function Export(json, fields, filename) {
     XEUtils.arrayEach(json, (item) => {
         let tempData = {}
         for (let key in fields) {
-            tempData[key] = item[fields[key]]
+            tempData[fields[key]] = item[key]
         }
         temp.push(tempData)
     })