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) {