|
@@ -141,7 +141,9 @@ export function export_json_to_excel(th, jsonData, defaultTitle, options = { mer
|
|
|
wb.SheetNames.push(ws_name)
|
|
wb.SheetNames.push(ws_name)
|
|
|
wb.Sheets[ws_name] = ws
|
|
wb.Sheets[ws_name] = ws
|
|
|
|
|
|
|
|
- var wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: false, type: 'binary' })
|
|
|
|
|
|
|
+// var wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: false, type: 'binary' })
|
|
|
|
|
+ var wbout = XLSX.write(wb, { bookType: 'xls', bookSST: false, type: 'binary' })
|
|
|
var title = defaultTitle || '列表'
|
|
var title = defaultTitle || '列表'
|
|
|
- FileSaver.saveAs(new Blob([s2ab(wbout)], { type: 'application/octet-stream' }), title + '.xlsx')
|
|
|
|
|
|
|
+// FileSaver.saveAs(new Blob([s2ab(wbout)], { type: 'application/octet-stream' }), title + '.xlsx')
|
|
|
|
|
+FileSaver.saveAs(new Blob([s2ab(wbout)], { type: 'application/octet-stream' }), title + '.xls')
|
|
|
}
|
|
}
|