From 162267dc3ebd917a544a4fd92ca5791153bfccc4 Mon Sep 17 00:00:00 2001
From: "15881625488@163.com" <15881625488@163.com>
Date: Sun, 1 Feb 2026 11:05:41 +0800
Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A[=E6=A8=A1=E6=9D=BF=E7=AE=A1?=
=?UTF-8?q?=E7=90=86]=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 | 89 +++++++++++++------------------
1 file changed, 38 insertions(+), 51 deletions(-)
diff --git a/src/views/business/study/comp/tbbd/Xq.vue b/src/views/business/study/comp/tbbd/Xq.vue
index 89c24d2..5918421 100644
--- a/src/views/business/study/comp/tbbd/Xq.vue
+++ b/src/views/business/study/comp/tbbd/Xq.vue
@@ -25,13 +25,11 @@
{{ $t('page.business.study.studyFormFill.dcbhsjgj') }}
- 前端导出
-
-
+
@@ -39,29 +37,33 @@
{{ $t('page.business.study.studyFormFill.qmxx') }}
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
{{ $t('page.business.study.studyFormFill.jcgj') }}
-
-
+
+
+
+
@@ -172,7 +174,8 @@ export default {
pageNum: 1,
formId: null,
pageSize: 9999,
- }
+ },
+ showExport: false,
}
},
computed: {
@@ -184,20 +187,19 @@ export default {
},
methods: {
onProgress(progress) {
- this.progress = progress
+ console.log(`生成进度: ${progress}%`)
+ if (progress == 100) {
+ this.$modal.closeLoading()
+ }
},
- hasStarted() {
+ exportExcel(jcgjlx) {
this.$modal.loading()
- console.log('PDF生成开始')
+ this.showExport = true
+ setTimeout(() => {
+ this.$refs.html2Pdf.generatePdf()
+ }, 200);
},
- hasGenerated() {
- console.log('PDF生成完成')
- this.$modal.closeLoading()
- },
- generatePDF() {
- this.$refs.html2Pdf.generatePdf()
- },
- exportExcel(jcgjlx) {
+ exportExcel_bak(jcgjlx) {
this.$modal.loading()
studyFormFill_exportDetail(_.merge({}, this.queryParamsJcgj, { jcgjlx: jcgjlx, lang: this.$store.getters.language.split("_")[0] })).then(response => {
window.open(process.env.VUE_APP_FILE_DOMAIN + response.msg)
@@ -205,21 +207,6 @@ export default {
this.$modal.closeLoading()
})
},
- dcqbjcgj() {
- this.$refs.html2Pdf.generatePdf()
- },
- dclcjcgj() {
- this.$refs.html2Pdf.generatePdf()
- },
- dcbjjcgj() {
- this.$refs.html2Pdf.generatePdf()
- },
- dcxgjcgj() {
- this.$refs.html2Pdf.generatePdf()
- },
- dcbhsjgj() {
- this.$refs.html2Pdf.generatePdf()
- },
getJjcgjList(val) {
this.$modal.loading()
studyFormFill_jcgj(_.merge({}, this.queryParamsJcgj, val)).then(response => {