|
@@ -9,7 +9,6 @@ import { Message, MessageBox } from 'element-ui'
|
|
|
*/
|
|
|
const downTable = (id, width, name) => {
|
|
|
name = name + '.xlsx' || 'test.xlsx'
|
|
|
- console.log(document.getElementById(id))
|
|
|
const excel = exportExcel(document.getElementById(id), width, name)
|
|
|
if (excel) {
|
|
|
Message({
|
|
@@ -34,7 +33,26 @@ import { Message, MessageBox } from 'element-ui'
|
|
|
} else {
|
|
|
wb = XLSX.utils.table_to_book(ele);
|
|
|
}
|
|
|
+ console.log(wb.Sheets.Sheet1, Object.keys(wb.Sheets.Sheet1).filter(item => /^\D\d$/.test(item)))
|
|
|
+
|
|
|
wb.Sheets.Sheet1['!cols'] = wscols;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ console.log(wb.Sheets.Sheet1)
|
|
|
|
|
|
const wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: true, type: 'array', cellDates: true })
|
|
|
try {
|