From 19ee30a9174b461aa0f041e3d6261643207e92c5 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 08 六月 2020 14:11:58 +0800 Subject: [PATCH] # --- src/main/webapp/views/matCode/matCode.html | 6 +++--- src/main/webapp/static/js/matCode/matCode.js | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/static/js/matCode/matCode.js b/src/main/webapp/static/js/matCode/matCode.js index 186e3de..42d1273 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; diff --git a/src/main/webapp/views/matCode/matCode.html b/src/main/webapp/views/matCode/matCode.html index 88e0b25..e3c6c4c 100644 --- a/src/main/webapp/views/matCode/matCode.html +++ b/src/main/webapp/views/matCode/matCode.html @@ -132,9 +132,9 @@ <hr> <!--鍗曢�夋--> <div class="layui-form-item" style="display: inline-block; margin-bottom: 10px"> - <input type="radio" name="selectTemplate" value="1" title="妯℃澘涓�" checked=""> - <input type="radio" name="selectTemplate" value="2" title="妯℃澘浜�"> - <input type="radio" name="selectTemplate" value="3" title="妯℃澘涓�"> + <input type="radio" name="selectTemplate" value="1" title="妯℃澘涓�" lay-filter="selectTemplateRadio" checked=""> + <input type="radio" name="selectTemplate" value="2" title="妯℃澘浜�" lay-filter="selectTemplateRadio"> + <input type="radio" name="selectTemplate" value="3" title="妯℃澘涓�" lay-filter="selectTemplateRadio"> </div> <fieldset class="layui-elem-field site-demo-button" style="margin-top: 30px;text-align: left;"> <legend>鎵撳嵃棰勮</legend> -- Gitblit v1.9.1