导出优化

This commit is contained in:
bb_pan 2025-07-18 11:17:54 +08:00
parent 2d9c89c66c
commit 8ae195b7b3
1 changed files with 12 additions and 1 deletions

View File

@ -366,12 +366,23 @@ export default {
const seconds = String(date.getSeconds()).padStart(2, '0');
return `${year}${month}${day}_${hours}${minutes}${seconds}`;
};
const params = {
unitId: this.queryParams.unitId,
proId: this.queryParams.proId,
keyWord: this.queryParams.keyWord,
typeName: this.queryParams.typeName,
isSlt: this.queryParams.isSlt,
startTime: this.queryParams.time && this.queryParams.time[0],
endTime: this.queryParams.time && this.queryParams.time[1],
pageSize: this.queryParams.pageSize,
pageNum: this.queryParams.pageNum
}
const currentTime = formatTime(new Date());
this.download(
'material/complex_query/exportProjUsingRecord',
{
...this.queryParams,
...params,
},
`综合查询_工程机具使用_${currentTime}.xlsx`,
)