From 4b71f22719bd043c8ffad7cf6fc007378fe2f2e9 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 08 六月 2020 13:53:57 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/matCode/matCode.js |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/static/js/matCode/matCode.js b/src/main/webapp/static/js/matCode/matCode.js
index d443f0d..30ded55 100644
--- a/src/main/webapp/static/js/matCode/matCode.js
+++ b/src/main/webapp/static/js/matCode/matCode.js
@@ -337,12 +337,15 @@
             async: false,
             success: function (res) {
                 if (res.code === 200){
+                    layer.closeAll();
+                    for (let i=0;i<res.data.length;i++){
+                        res.data[i].barcodeUrl=baseUrl+"/macCode/barcode/auth?param="+res.data[i].barcodeUrl;
+                    }
                     var tpl = $("#templatePreview"+templateNo).html();
                     var template = Handlebars.compile(tpl);
                     var html = template(res);
-                    $("#box").html(html);
-                    $("#box").print();
-                    // $('#template-preview-'+templateNo).print();
+                    let box = $("#box");
+                    box.html(html);box.show();box.print();box.hide();
                 } else if (res.code === 403){
                     top.location.href = baseUrl;
                 }else {
@@ -350,7 +353,6 @@
                 }
             }
         })
-
     })
 
     // 鏁版嵁淇濆瓨鍔ㄤ綔

--
Gitblit v1.9.1