|
|
|
|
@ -440,13 +440,26 @@ export default {
|
|
|
|
|
// 打印
|
|
|
|
|
handlePrint(params) {
|
|
|
|
|
printJS({
|
|
|
|
|
// printable: params.printable, // 'printFrom', // 标签元素id
|
|
|
|
|
// type: params.type || 'html',
|
|
|
|
|
// dpi: 300, // 清晰度
|
|
|
|
|
// //font_size: "",// 设置字体大小
|
|
|
|
|
// header: params.header, // '表单',
|
|
|
|
|
// targetStyles: ['*'],
|
|
|
|
|
// style: '@page {size: A5}; body {font-family: "宋体"; font-size: 12px;}',
|
|
|
|
|
// ignoreElements: params.ignore || [], // ['no-print']
|
|
|
|
|
// properties: params.properties || null
|
|
|
|
|
printable: params.printable, // 'printFrom', // 标签元素id
|
|
|
|
|
type: params.type || 'html',
|
|
|
|
|
dpi: 300, // 清晰度
|
|
|
|
|
dpi: 360, // 清晰度
|
|
|
|
|
// dpi: 600,
|
|
|
|
|
//font_size: "",// 设置字体大小
|
|
|
|
|
header: params.header, // '表单',
|
|
|
|
|
targetStyles: ['*'],
|
|
|
|
|
style: '@page {size: A5}; body {font-family: "宋体"; font-size: 12px;}',
|
|
|
|
|
style: `
|
|
|
|
|
body { font-family: "黑体"; font-weight: bold; }
|
|
|
|
|
table { border-collapse: separate; border-width: 1.5pt; }`, // 加粗字体和边框线:ml-citation{ref="9" data="citationList"}
|
|
|
|
|
//没用//style:'body {margin: 2mm;padding: 0;}.fy{page-break-after: always;} table { width:100%;height:800px;border-collapse: collapse;} table, th, td { border: 2px solid black; white-space: pre-wrap; word-break: break-all;} .el-table .cell{padding-left:1px;padding-right:1px;border: 2px solid black;}',
|
|
|
|
|
ignoreElements: params.ignore || [], // ['no-print']
|
|
|
|
|
properties: params.properties || null
|
|
|
|
|
})
|
|
|
|
|
|