#
luxiaotao1123
2021-03-26 31503c1c5b9c4f7a978ee68daf50ab7ca60207db
#
2个文件已修改
41 ■■■■ 已修改文件
src/main/webapp/static/js/safeSto/safeSto.js 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/safeSto/safeSto.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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');
        }
    });
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>