浏览代码

修复导出excel

xiaochan 2 年之前
父节点
当前提交
e961ac4ca0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
     })