From cdbf47d7626b457b496b49ab417ec5a56516e871 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 08 六月 2020 15:23:37 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/matCode/matCode.js | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/matCode/matCode.js b/src/main/webapp/static/js/matCode/matCode.js index 186e3de..630d5e7 100644 --- a/src/main/webapp/static/js/matCode/matCode.js +++ b/src/main/webapp/static/js/matCode/matCode.js @@ -326,6 +326,12 @@ } }); + // 妯℃澘閫夋嫨 + form.on('radio(selectTemplateRadio)', function (data) { + $('.template-preview').hide(); + $('#template-preview-'+data.value).show(); + }); + // 寮�濮嬫墦鍗� form.on('submit(doPrint)', function (data) { var templateNo = data.field.selectTemplate; @@ -339,7 +345,7 @@ 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].barcode; + res.data[i]["barcodeUrl"]=baseUrl+"/macCode/code/auth?type=1¶m="+res.data[i].barcode; } var tpl = $("#templatePreview"+templateNo).html(); var template = Handlebars.compile(tpl); -- Gitblit v1.9.1