From e68dd449151e9b0f9b5b60c25649b1eb27053d37 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Sat, 31 Jan 2026 22:41:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/study/comp/tbbd/Xq.vue | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/src/views/business/study/comp/tbbd/Xq.vue b/src/views/business/study/comp/tbbd/Xq.vue index 9f6320e..06f1130 100644 --- a/src/views/business/study/comp/tbbd/Xq.vue +++ b/src/views/business/study/comp/tbbd/Xq.vue @@ -29,14 +29,9 @@
- + pdf-orientation="landscape" :paginate-elements-by-height="794" :enable-download="true" :preview-modal="true" + ref="html2Pdf" @hasStartedGeneration="hasStarted" @hasGenerated="hasGenerated">
@@ -65,7 +60,6 @@
{{ $t('page.business.study.studyFormFill.jcgj') }}
-
@@ -201,19 +195,6 @@ export default { this.$modal.closeLoading() }, generatePDF() { - // 找到PDF内容并强制设置样式 - const pdfContent = document.querySelector('.pdf-content-section, [slot="pdf-content"]') - if (pdfContent) { - pdfContent.style.cssText = ` - background: white !important; - min-height: 297mm !important; - opacity: 1 !important; - visibility: visible !important; - position: relative !important; - z-index: 1000 !important; - ` - } - // 然后生成PDF this.$refs.html2Pdf.generatePdf() }, exportExcel(jcgjlx) {