Explorar el Código

修复导出excel

xiaochan hace 2 años
padre
commit
e961ac4ca0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
     })