|
@@ -2620,18 +2620,18 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
document.querySelector('#print-html').innerHTML = $img;
|
|
|
setTimeout(() => {
|
|
|
- // Print({
|
|
|
- // printable: 'print-html',
|
|
|
- // type: 'html',
|
|
|
- // documentTitle: '文档标题',
|
|
|
- // maxWidth: 1150, // 最大宽度
|
|
|
- // header: '',
|
|
|
- // headerStyle: 'font-weight:400;text-align:center;',
|
|
|
- // style: '', // 不打印页眉和页脚
|
|
|
- // honorColor: true, // 是否打印彩色文本
|
|
|
- // targetStyles: ['*'] // 允许打印所有样式属性
|
|
|
- // }) // Print.js插件
|
|
|
- print(this.printId)
|
|
|
+ Print({
|
|
|
+ printable: 'print-html',
|
|
|
+ type: 'html',
|
|
|
+ documentTitle: '文档标题',
|
|
|
+ maxWidth: 1150, // 最大宽度
|
|
|
+ header: '',
|
|
|
+ headerStyle: 'font-weight:400;text-align:center;',
|
|
|
+ style: '', // 不打印页眉和页脚
|
|
|
+ honorColor: true, // 是否打印彩色文本
|
|
|
+ targetStyles: ['*'] // 允许打印所有样式属性
|
|
|
+ }) // Print.js插件
|
|
|
+ // print(this.printId)
|
|
|
if (document.querySelector('#print-area'))
|
|
|
document.querySelector('#print-area').style = "display:none";
|
|
|
loading.close()
|
|
@@ -2654,18 +2654,18 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
document.querySelector('#print-html').innerHTML = $img;
|
|
|
setTimeout(() => {
|
|
|
- // Print({
|
|
|
- // printable: 'print-html',
|
|
|
- // type: 'html',
|
|
|
- // documentTitle: '文档标题',
|
|
|
- // maxWidth: 1150, // 最大宽度
|
|
|
- // header: '',
|
|
|
- // headerStyle: 'font-weight:400;text-align:center;',
|
|
|
- // style: '', // 不打印页眉和页脚
|
|
|
- // honorColor: true, // 是否打印彩色文本
|
|
|
- // targetStyles: ['*'] // 允许打印所有样式属性
|
|
|
- // }) // Print.js插件
|
|
|
- print(this.printId)
|
|
|
+ Print({
|
|
|
+ printable: 'print-html',
|
|
|
+ type: 'html',
|
|
|
+ documentTitle: '文档标题',
|
|
|
+ maxWidth: 1150, // 最大宽度
|
|
|
+ header: '',
|
|
|
+ headerStyle: 'font-weight:400;text-align:center;',
|
|
|
+ style: '', // 不打印页眉和页脚
|
|
|
+ honorColor: true, // 是否打印彩色文本
|
|
|
+ targetStyles: ['*'] // 允许打印所有样式属性
|
|
|
+ }) // Print.js插件
|
|
|
+ // print(this.printId)
|
|
|
if (document.querySelector('#print-area'))
|
|
|
document.querySelector('#print-area').style = "display:none";
|
|
|
loading.close()
|