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