This commit is contained in:
parent
65a85b3d63
commit
c06cd6dc0f
|
|
@ -444,11 +444,19 @@ export default {
|
|||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||
return `${year}${month}${day}_${hours}${minutes}${seconds}`;
|
||||
};
|
||||
const params = {
|
||||
keyWord: this.queryParams.keyWord,
|
||||
status: this.queryParams.taskStatus,
|
||||
startTime: this.queryParams.startTime,
|
||||
endTime: this.queryParams.endTime,
|
||||
pageSize: this.queryParams.pageSize,
|
||||
pageNum: this.queryParams.pageNum,
|
||||
};
|
||||
|
||||
const currentTime = formatTime(new Date());
|
||||
this.download(
|
||||
"/material/leaseTask/exportPublish",
|
||||
{ ...this.queryParams },
|
||||
params,
|
||||
`领料申请发布_${currentTime}.xlsx`
|
||||
);
|
||||
},
|
||||
|
|
@ -557,7 +565,7 @@ export default {
|
|||
async downloadPDF() {
|
||||
try {
|
||||
this.$modal.loading('正在生成PDF,请稍候...')
|
||||
|
||||
|
||||
// 获取要转换的DOM元素
|
||||
const element = document.getElementById('print-content1')
|
||||
if (!element) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue