This commit is contained in:
2025-03-10 16:33:55 +08:00
parent 8e9b2f6444
commit bbd9972761
3 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: Do not edit
* @Date: 2023-08-29 14:59:29
* @LastEditTime: 2025-02-24 14:51:47
* @LastEditTime: 2025-03-03 10:38:00
* @LastEditors: zwq
* @Description:
-->
@@ -379,6 +379,7 @@ export default {
tables.removeChild(tables.querySelector('.el-table__fixed-right'));
}
let exportTable = XLSX.utils.table_to_book(tables);
exportTable.Sheets.Sheet1.A1.v = '序号' //导出表格第一列表头为序号
var exportTableOut = XLSX.write(exportTable, {
bookType: 'xlsx',