导出优化
This commit is contained in:
parent
2d9c89c66c
commit
8ae195b7b3
|
|
@ -366,12 +366,23 @@ export default {
|
||||||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||||
return `${year}${month}${day}_${hours}${minutes}${seconds}`;
|
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());
|
const currentTime = formatTime(new Date());
|
||||||
this.download(
|
this.download(
|
||||||
'material/complex_query/exportProjUsingRecord',
|
'material/complex_query/exportProjUsingRecord',
|
||||||
{
|
{
|
||||||
...this.queryParams,
|
...params,
|
||||||
},
|
},
|
||||||
`综合查询_工程机具使用_${currentTime}.xlsx`,
|
`综合查询_工程机具使用_${currentTime}.xlsx`,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue