提交 a160b9b4 authored 作者: lihuihui's avatar lihuihui

修改pdf下载

上级 c3a6144d
......@@ -7,7 +7,8 @@
:float-layout="false"
:enable-download="true"
:preview-modal="true"
:paginate-elements-by-height="1000"
:manual-pagination="true"
:paginate-elements-by-height="500"
filename="file"
pdf-content-width="100%"
ref="html2Pdf"
......
......@@ -15,13 +15,8 @@
</el-select>
</div>
</div>
<!-- <div class="btn" @click="getPdf('#pdfDom')">{{ $t('shmsLang.downloadBtn') }}</div> -->
<div class="btn" @click="generateReport">{{ $t('shmsLang.downloadBtn') }}</div>
</div>
<!-- <div>
<profile :info="info" @changes="changes" />
<degrees :degreesItem="degreesItem" />
</div> -->
<vue-html2pdf
:show-layout="false"
:float-layout="false"
......@@ -33,8 +28,10 @@
ref="html2Pdf"
>
<section slot="pdf-content">
<div class="pdf-down_box">
<profile :info="info" @changes="changes" />
<degrees :degreesItem="degreesItem" />
</div>
</section>
</vue-html2pdf>
</div>
......@@ -88,12 +85,16 @@ export default {
}
</script>
<style lang="scss" scoped>
.pdf-down_box{
padding: 0 30px;
}
.app-card {
width: 1000px;
margin: 30px auto;
background: #fff;
padding: 24px 30px 40px;
padding: 24px 0 40px;
.dowload-box {
padding: 0 30px;
display: flex;
justify-content: flex-end;
.info-temp {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论