|
@@ -568,6 +568,7 @@ export default {
|
|
|
async DownloadPdfNew() {
|
|
async DownloadPdfNew() {
|
|
|
//获取所有的area_page 元素
|
|
//获取所有的area_page 元素
|
|
|
const elements = document.querySelectorAll(".web_mode .web_area_page");
|
|
const elements = document.querySelectorAll(".web_mode .web_area_page");
|
|
|
|
|
+ const elLens = elements.length - 1;
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
// this.targetProgress = 1;
|
|
// this.targetProgress = 1;
|
|
|
// this.showReportLoading = true;
|
|
// this.showReportLoading = true;
|
|
@@ -637,7 +638,12 @@ export default {
|
|
|
{
|
|
{
|
|
|
pdf.addPage();
|
|
pdf.addPage();
|
|
|
}
|
|
}
|
|
|
- pdf.addImage(dataUrl, "JPEG", xPosition, yPosition - 5, adjustWidth, adjustHeight);
|
|
|
|
|
|
|
+ //处理封面图铺满屏
|
|
|
|
|
+ let pdfAdjustHeight = adjustHeight;
|
|
|
|
|
+ if(pageIndex == 0 || pageIndex == elLens){
|
|
|
|
|
+ pdfAdjustHeight = adjustHeight + 6
|
|
|
|
|
+ }
|
|
|
|
|
+ pdf.addImage(dataUrl, "JPEG", xPosition, yPosition - 6, adjustWidth, pdfAdjustHeight);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 保存pdf文件
|
|
// 保存pdf文件
|