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