From 1aee0d0a2d28de3553f2e531d47b3b5b8f06ecbb Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Fri, 16 Jan 2026 22:41:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A[=E8=AF=95=E9=AA=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86]=E5=A1=AB=E6=8A=A5=E8=A1=A8=E5=8D=95=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/views/business/study/comp/tbbd/Xq.vue | 95 +++++++++++++++++-------------- 2 files changed, 53 insertions(+), 43 deletions(-) diff --git a/package.json b/package.json index 336d65d..360c116 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "vue": "2.6.12", "vue-count-to": "1.0.13", "vue-cropper": "0.5.5", + "vue-html2pdf": "^1.8.0", "vue-i18n": "7.3.2", "vue-pdf": "^4.3.0", "vue-router": "3.4.9", diff --git a/src/views/business/study/comp/tbbd/Xq.vue b/src/views/business/study/comp/tbbd/Xq.vue index c877a20..98a57a4 100644 --- a/src/views/business/study/comp/tbbd/Xq.vue +++ b/src/views/business/study/comp/tbbd/Xq.vue @@ -16,47 +16,57 @@
-
- {{ $t('page.business.study.studyFormFill.dcqbjcgj') }} - - {{ $t('page.business.study.studyFormFill.dclcjcgj') }} - - {{ $t('page.business.study.studyFormFill.dcbjjcgj') }} - - {{ $t('page.business.study.studyFormFill.dcxgjcgj') }} - - {{ $t('page.business.study.studyFormFill.dcbhsjgj') }} - +
+
+ {{ $t('page.business.study.studyFormFill.dcqbjcgj') }} + + {{ $t('page.business.study.studyFormFill.dclcjcgj') }} + + {{ $t('page.business.study.studyFormFill.dcbjjcgj') }} + + {{ $t('page.business.study.studyFormFill.dcxgjcgj') }} + + {{ $t('page.business.study.studyFormFill.dcbhsjgj') }} + +
- -
-
-
{{ $t('page.business.study.studyFormFill.qmxx') }}
-
-
- - - - - - -
- -
-
-
{{ $t('page.business.study.studyFormFill.jcgj') }}
-
- - + + + +
@@ -115,10 +125,10 @@ import { studyFormFill_tb, studyFormFill_info, studyFormFill_jcgj, studyFormFill import { mapGetters } from 'vuex' import JcgjList from "@/views/business/comps/common/JcgjList"; import TemplateTable from '@/views/business/comps/template/TemplateTable'; - +import VueHtml2pdf from 'vue-html2pdf' export default { name: "Xq", - components: { JcgjList, TemplateTable }, + components: { JcgjList, TemplateTable, VueHtml2pdf }, data() { return { openApprove: false, @@ -176,21 +186,20 @@ export default { created() { }, methods: { - dcqbjcgj() { - alert('todo') + this.$refs.html2Pdf.generatePdf() }, dclcjcgj() { - alert('todo') + this.$refs.html2Pdf.generatePdf() }, dcbjjcgj() { - alert('todo') + this.$refs.html2Pdf.generatePdf() }, dcxgjcgj() { - alert('todo') + this.$refs.html2Pdf.generatePdf() }, dcbhsjgj() { - alert('todo') + this.$refs.html2Pdf.generatePdf() }, getJjcgjList(val) { this.$modal.loading()