提交 c8378d7f authored 作者: 钟是志's avatar 钟是志

奖状打印修改

上级 1a605ce7
......@@ -113,6 +113,8 @@ export default class ViewPrint extends Component {
}
console.log(wide, high);
const strHTML = dom.innerHTML;
LODOP.SET_SHOW_MODE('LANGUAGE', 0);
LODOP.SET_LICENSES('成都市知用科技有限公司', '649677881727389907689190562356', '', '');
LODOP.PRINT_INITA(0, 0, `${wide}cm`, `${high}cm`, `printDomId${printIndex}`);
LODOP.SET_PRINT_PAGESIZE(printMeth, info.paperWidth, info.paperHeight, 'CreateCustomPage'); // 打印方向 纸张大小.
LODOP.ADD_PRINT_HTML(0, 0, '100%', '100%', strHTML); // HTML 打印
......@@ -121,7 +123,7 @@ export default class ViewPrint extends Component {
LODOP.PREVIEW(); // 打印预览
break;
case 2:
LODOP.PRINT_DESIGN();
LODOP.PRINT_DESIGN(); // 打印设计
break;
case 0:
LODOP.PRINT(); // 打印
......@@ -323,12 +325,13 @@ export default class ViewPrint extends Component {
}}>
{viewData.map((info, index) => {
return (
<div key={`${index}divKey`} id={`printDomId-${index}`}>
<div key={`${index}divKey`} id={`printDomId-${index}`} style={{
marginBottom: '10px',
}}>
<div
style={{
position: 'relative',
pageBreakAfter: 'always',
marginBottom: '10px',
// pageBreakAfter: 'always',
...imageStyle,
backgroundColor: '#fff',
}}>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论