|
@ -319,7 +319,7 @@ const doExportExcel = async () => { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const pageSize = 100 // 每批次获取 100 条数据 |
|
|
|
|
|
|
|
|
const pageSize = 5000 // 每批次获取 100 条数据 |
|
|
const totalPages = Math.ceil(totalExport.value / pageSize) |
|
|
const totalPages = Math.ceil(totalExport.value / pageSize) |
|
|
|
|
|
|
|
|
for (let page = 1; page <= totalPages; page++) { |
|
|
for (let page = 1; page <= totalPages; page++) { |
|
@ -351,9 +351,10 @@ const doExportExcel = async () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (isExporting.value) { |
|
|
if (isExporting.value) { |
|
|
// 导出的数据将字段映射 |
|
|
|
|
|
const exportData = allExportData.map((item) => { |
|
|
|
|
|
|
|
|
// 导出的数据将字段映射,添加序号列 |
|
|
|
|
|
const exportData = allExportData.map((item, index) => { |
|
|
return { |
|
|
return { |
|
|
|
|
|
序号: index + 1, // 添加序号列 |
|
|
姓名: item.nickname, |
|
|
姓名: item.nickname, |
|
|
精网号: item.jwcode, |
|
|
精网号: item.jwcode, |
|
|
地区: item.ipAddress, |
|
|
地区: item.ipAddress, |
|
|