标志卡打印纸张调整

yangwl
guoshuang 4 months ago
parent 807caed5f9
commit 76d2a292c0

@ -17,7 +17,9 @@
<el-col :span="7"> <el-col :span="7">
<img src="@/assets/logo/lanjv.png" class="report-logo" /> <img src="@/assets/logo/lanjv.png" class="report-logo" />
</el-col> </el-col>
<el-col :span="10" class="center-text"> </el-row>
<el-row>
<el-col class="center-text">
<span>产品标识卡</span> <span>产品标识卡</span>
</el-col> </el-col>
</el-row> </el-row>
@ -37,7 +39,7 @@
</el-row> </el-row>
</el-form> </el-form>
<div style="clear: both; margin-bottom: 30px;"></div> <div style="clear: both; margin-bottom: 30px;"></div>
<div v-if="(index + 1) % 2 === 0" class="print-page"></div> <div v-if="(index + 1) % 1 === 0" class="print-page"></div>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
@ -117,7 +119,7 @@ export default {
header: params.header, // '', header: params.header, // '',
targetStyles: ['*'], targetStyles: ['*'],
style: ` style: `
@page { margin: 30mm 10mm; } @page { size: A5 landscape; } body { margin: 10mm; padding: 0; }
.print-page { page-break-after: always; } .print-page { page-break-after: always; }
`, `,
ignoreElements: params.ignore || [], ignoreElements: params.ignore || [],
@ -153,7 +155,7 @@ export default {
} }
.center-text { .center-text {
text-align: left; text-align: center;
font-size: 63px; font-size: 63px;
font-weight: 800; font-weight: 800;
color: black; color: black;

Loading…
Cancel
Save