From 6054b8b5666f32aa0ee1400407ea4e3570b8d78c Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 7 Sep 2021 14:14:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:PDF=E5=AF=BC=E5=87=BA=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=80=82=E9=85=8D=E6=A8=AA=E5=90=91=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/export/PDFPreExport.vue | 4 ++-- frontend/src/views/panel/list/PanelViewShow.vue | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/panel/export/PDFPreExport.vue b/frontend/src/views/panel/export/PDFPreExport.vue index cd52a2a27f..aab905164b 100644 --- a/frontend/src/views/panel/export/PDFPreExport.vue +++ b/frontend/src/views/panel/export/PDFPreExport.vue @@ -85,7 +85,7 @@ export default { const contentWidth = canvas.width const contentHeight = canvas.height const pageData = canvas.toDataURL('image/jpeg', 1.0) - const PDF = new JsPDF('p', 'pt', [contentWidth, contentHeight]) + const PDF = new JsPDF('l', 'px', [contentWidth, contentHeight]) PDF.addImage(pageData, 'JPEG', 0, 0, contentWidth, contentHeight) PDF.save(_this.panelName + '.pdf') } @@ -103,7 +103,7 @@ export default { } .export_body_class{ border: 1px solid #dcdfe6 ; - height: 500px; + height: 65vh; overflow-y: auto; } diff --git a/frontend/src/views/panel/list/PanelViewShow.vue b/frontend/src/views/panel/list/PanelViewShow.vue index 1894e25976..f6490ca8dc 100644 --- a/frontend/src/views/panel/list/PanelViewShow.vue +++ b/frontend/src/views/panel/list/PanelViewShow.vue @@ -79,7 +79,8 @@ v-if="pdfExportShow" :title="'['+panelInfo.name+']'+'PDF导出'" :visible.sync="pdfExportShow" - width="70%" + width="80%" + :top="'8vh'" :destroy-on-close="true" class="dialog-css2" >