Zt 1 년 전
부모
커밋
2e8966395e
1개의 변경된 파일24개의 추가작업 그리고 24개의 파일을 삭제
  1. 24 24
      chuanyi_client2/src/views/report_template/index.vue

+ 24 - 24
chuanyi_client2/src/views/report_template/index.vue

@@ -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()