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

修改pdf下载

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