From 31503c1c5b9c4f7a978ee68daf50ab7ca60207db Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 26 三月 2021 15:14:18 +0800 Subject: [PATCH] # --- src/main/webapp/views/safeSto/safeSto.html | 4 ++-- src/main/webapp/static/js/safeSto/safeSto.js | 37 +++---------------------------------- 2 files changed, 5 insertions(+), 36 deletions(-) diff --git a/src/main/webapp/static/js/safeSto/safeSto.js b/src/main/webapp/static/js/safeSto/safeSto.js index 0433bd8..2dfc78d 100644 --- a/src/main/webapp/static/js/safeSto/safeSto.js +++ b/src/main/webapp/static/js/safeSto/safeSto.js @@ -103,11 +103,11 @@ table.on('tool(safeSto)', function(obj){ var data = obj.data; switch (obj.event) { - // 璇︽儏 - case 'detail': + // 琛ヤ粨 + case 'allot': layer.open({ type: 2, - title: '璇︽儏', + title: '琛ヤ粨', maxmin: true, area: ['30%', top.detailHeight], shadeClose: true, @@ -122,37 +122,6 @@ } }); break; - // 缂栬緫 - case 'edit': - layer.open({ - type: 2, - title: '淇敼', - maxmin: true, - area: ['30%', top.detailHeight], - content: 'prior_detail.html', - success: function(layero, index){ - layer.getChildFrame('#data-detail-submit-save', index).hide(); - setFormVal(layer.getChildFrame('#detail', index), data, false); - top.convertDisabled(layer.getChildFrame('#data-detail :input', index), false); - top.convertDisabled(layer.getChildFrame('#id', index), true); - layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"}); - layero.find('iframe')[0].contentWindow.layui.form.render('select'); - layero.find('iframe')[0].contentWindow.layui.form.render('checkbox'); - } - }); - break; - - } - }); - - - // 澶嶉�夋浜嬩欢 - form.on('checkbox(detailCheckbox)', function (data) { - var el = data.elem; - if (el.checked) { - $(el).val('Y'); - } else { - $(el).val('N'); } }); diff --git a/src/main/webapp/views/safeSto/safeSto.html b/src/main/webapp/views/safeSto/safeSto.html index 20e395b..3a05d72 100644 --- a/src/main/webapp/views/safeSto/safeSto.html +++ b/src/main/webapp/views/safeSto/safeSto.html @@ -57,11 +57,11 @@ <script type="text/html" id="operate"> {{# if(d.status > 1){ }} - <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="detail">琛ヤ粨</a> + <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="allot">琛ヤ粨</a> {{# } }} </script> <script type="text/html" id="progressTpl"> - <div class="layui-progress layuiadmin-order-progress" title="{{ d.progress }}"> + <div class="layui-progress" title="{{ d.progress }}"> <!--lay-showPercent="true"--> <div class="layui-progress-bar layui-bg-blue" lay-percent= {{ d.progress }} ></div> </div> </script> -- Gitblit v1.9.1