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" >