Browse Source

fix:[试验管理]填报表单导出

lkf
15881625488@163.com 3 months ago
parent
commit
5ad5bb9418
1 changed files with 19 additions and 10 deletions
  1. +19
    -10
      src/views/business/study/comp/tbbd/Xq.vue

+ 19
- 10
src/views/business/study/comp/tbbd/Xq.vue View File

@ -14,9 +14,18 @@
$t('page.business.study.studyFormFill.tb') }}</el-button>
</div>
</div>
<el-button type="primary" @click="exportExcel">后台导出
</el-button>
<el-button type="primary" @click="dcqbjcgj">{{ $t('page.business.study.studyFormFill.dcqbjcgj') }}
<!-- 1:流程3编辑5人员7修改9补充说明 -->
<el-button type="primary" @click="exportExcel(-1)">{{ $t('page.business.study.studyFormFill.dcqbjcgj') }}
</el-button>
<el-button type="primary" @click="exportExcel(1)">{{ $t('page.business.study.studyFormFill.dclcjcgj') }}
</el-button>
<el-button type="primary" @click="exportExcel(3)">{{ $t('page.business.study.studyFormFill.dcbjjcgj') }}
</el-button>
<el-button type="primary" @click="exportExcel(7)">{{ $t('page.business.study.studyFormFill.dcxgjcgj') }}
</el-button>
<el-button type="primary" @click="exportExcel(999)">{{ $t('page.business.study.studyFormFill.dcbhsjgj') }}
</el-button>
<!-- <el-button type="primary" @click="dcqbjcgj">{{ $t('page.business.study.studyFormFill.dcqbjcgj') }}
</el-button>
<el-button type="primary" @click="dcqbjcgj">{{ $t('page.business.study.studyFormFill.dcqbjcgj') }}
</el-button>
@ -27,11 +36,11 @@
<el-button type="primary" @click="dcxgjcgj">{{ $t('page.business.study.studyFormFill.dcxgjcgj') }}
</el-button>
<el-button type="primary" @click="dcbhsjgj">{{ $t('page.business.study.studyFormFill.dcbhsjgj') }}
</el-button>
</el-button> -->
<div class="edit-content ">
<div class="content" style="width: 100%;">
<vue-html2pdf :show-layout="false" pdf-content-width="100%" :float-layout="false"
pdf-orientation="landscape" :enable-download="true" :preview-modal="true" ref="html2Pdf">
<div class="content" style="width: 100%;">
<vue-html2pdf :show-layout="false" pdf-content-width="100%" :float-layout="false" pdf-orientation="landscape"
:enable-download="true" :preview-modal="true" ref="html2Pdf">
<section slot="pdf-content">
<TemplateTable ref="templateTable" :sn="form.templateSn" :templateData="form" fillType="detail" />
<div class="content-title">
@ -172,7 +181,7 @@ export default {
pageNum: 1,
formId: null,
pageSize: 9999,
lang:this.$store.getters.language.split("_")[0]
lang: this.$store.getters.language.split("_")[0]
}
}
},
@ -184,9 +193,9 @@ export default {
created() {
},
methods: {
exportExcel() {
exportExcel(jcgjlx) {
this.$modal.loading()
studyFormFill_exportDetail(this.queryParamsJcgj).then(response => {
studyFormFill_exportDetail(_.merge({}, this.queryParamsJcgj, { jcgjlx: jcgjlx })).then(response => {
window.open(this.baseUrl + response.msg)
this.$modal.closeLoading()
}).finally(() => {

Loading…
Cancel
Save