fix: 打印只能显示一页

pull/821/head
Lesan 2025-09-08 09:57:02 +08:00
parent bcf8f6c821
commit ba64031015
1 changed files with 12 additions and 1 deletions

View File

@ -128,7 +128,7 @@ const printObj = ref({
<template> <template>
<el-dialog v-loading="loading" v-model="visible" :show-close="false"> <el-dialog v-loading="loading" v-model="visible" :show-close="false">
<div id="printDivTag"> <div id="printDivTag" style="word-break: break-all;">
<div v-if="printData.printTemplateEnable" v-html="getPrintTemplateHTML()"></div> <div v-if="printData.printTemplateEnable" v-html="getPrintTemplateHTML()"></div>
<div v-else> <div v-else>
<h2 class="text-center">{{ printData.processInstance.name }}</h2> <h2 class="text-center">{{ printData.processInstance.name }}</h2>
@ -209,3 +209,14 @@ const printObj = ref({
</template> </template>
</el-dialog> </el-dialog>
</template> </template>
<style>
@media print {
@page {
size: auto;
}
body, html, div{
height: auto!important;
}
}
</style>