Browse Source

打印测试

lilei 3 years ago
parent
commit
1420a22177
2 changed files with 3 additions and 2 deletions
  1. 1 0
      src/libs/JGPrint.js
  2. 2 2
      vue.config.js

+ 1 - 0
src/libs/JGPrint.js

@@ -47,6 +47,7 @@ export const JGPrint = function (data, type, printerType) {
             LODOP.SET_PRINT_STYLEA(0, 'PDFScalMode', 1)
             LODOP.ADD_PRINT_PDF(0, 0, '100%', '100%', data.data)
             LODOP.SET_PRINT_PAGESIZE(3, 0, 0, '')
+            LODOP.PREVIEW()
     } else if (type == 'print') { //  打印
       window.frames['printfsqd'].focus()
       window.frames['printfsqd'].print()

+ 2 - 2
vue.config.js

@@ -108,8 +108,8 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        // target: 'http://192.168.16.103:8503/qpls-md',
-        target: 'http://p.iscm.360arrow.com/qpls-md', //  Ô¤·¢²¼
+        target: 'http://192.168.16.151:8503/qpls-md',
+        // target: 'http://p.iscm.360arrow.com/qpls-md', //  Ô¤·¢²¼
         // target: 'http://qpls-md.360arrow.com/qpls-md', //  Éú²ú
         // ws: false,
         ws: true,