From 063a017a452f3d18be61aa4f07df34641bd4a37e Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 08 六月 2020 13:42:25 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/matCode/matCode.js | 11 +++++++---- 1 files changed, 7 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..2340b15 100644 --- a/src/main/webapp/static/js/matCode/matCode.js +++ b/src/main/webapp/static/js/matCode/matCode.js @@ -337,12 +337,16 @@ 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; + } + console.log(res.data); 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 +354,6 @@ } } }) - }) // 鏁版嵁淇濆瓨鍔ㄤ綔 -- Gitblit v1.9.1