diff --git a/frontend/src/components/canvas/components/editor/Preview.vue b/frontend/src/components/canvas/components/editor/Preview.vue index a2232340e1..05a8e141af 100644 --- a/frontend/src/components/canvas/components/editor/Preview.vue +++ b/frontend/src/components/canvas/components/editor/Preview.vue @@ -444,6 +444,9 @@ export default { bus.$off('trigger-reset-button', this.triggerResetButton) }, methods: { + getCanvasHeight() { + return this.mainHeightCount + }, openChartDetailsDialog(paramInfo) { if (this.canvasId === 'canvas-main') { this.showChartInfo = paramInfo.showChartInfo diff --git a/frontend/src/views/panel/export/PDFPreExport.vue b/frontend/src/views/panel/export/PDFPreExport.vue index a2042fa5e7..cc87cdb17a 100644 --- a/frontend/src/views/panel/export/PDFPreExport.vue +++ b/frontend/src/views/panel/export/PDFPreExport.vue @@ -82,7 +82,7 @@ export default { mainCanvasStyle() { if (this.toExport) { return { - width: '4096px' + width: '1280px' } } else { return { @@ -93,7 +93,7 @@ export default { templateHtmlStyle() { if (this.toExport) { return { - fontSize: '48px!important' + fontSize: '14px!important' } } else { return {} @@ -134,8 +134,8 @@ export default { setTimeout(() => { html2canvas(document.getElementById('exportPdf')).then(function(canvas) { _this.exportLoading = false - const contentWidth = canvas.width / 4 - const contentHeight = canvas.height / 4 + const contentWidth = canvas.width / 2 + const contentHeight = canvas.height / 2 const pageData = canvas.toDataURL('image/jpeg', 1.0) const lp = contentWidth > contentHeight ? 'l' : 'p' const PDF = new JsPDF(lp, 'pt', [contentWidth, contentHeight]) diff --git a/frontend/src/views/panel/list/PanelViewShow.vue b/frontend/src/views/panel/list/PanelViewShow.vue index 46e9d618cd..a89a232b22 100644 --- a/frontend/src/views/panel/list/PanelViewShow.vue +++ b/frontend/src/views/panel/list/PanelViewShow.vue @@ -17,7 +17,7 @@ style="border-bottom: 1px solid;border-bottom-color:#E6E6E6;" >
- +
- + 6000) { + return false + } else { + return true + } + + }, downLoadApp(appAttachInfo) { this.downLoadToApp(appAttachInfo) }, @@ -660,7 +671,7 @@ export default { downloadAsImage() { this.dataLoading = true setTimeout(() => { - this.exporting = true + this.exporting = this.changeExportingState() setTimeout(() => { const canvasID = document.getElementById(this.canvasInfoTemp) const a = document.createElement('a') @@ -691,7 +702,7 @@ export default { this.dataLoading = true setTimeout(() => { - this.exporting = true + this.exporting = this.changeExportingState() setTimeout(() => { html2canvas(document.getElementById(this.canvasInfoTemp)).then(canvas => { const snapshot = canvas.toDataURL('image/jpeg', 1) // 是图片质量