Sha256: 12f2f0ca13f70e0b6e73e424cee55a8545e7c9aff36ee152b8aaed85c9f6ee91
Contents?: true
Size: 1.61 KB
Versions: 181
Compression:
Stored size: 1.61 KB
Contents
<%= Gon::Base.render_data %> <form class="layui-form " action=""> <div class="layui-form-item" style="padding: 25px"> <div class="layui-inline"> <label class="layui-form-label required">负责人</label> <div class="layui-input-block"> <%= select_tag "staff_id", options_for_select(@staffs), { include_blank: true } %> </div> </div> <div class="layui-inline" style="padding-left: 30px"> <button type="submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="data-reset-btn">提交 </button> </div> </div> </form> <script> layui.use(['form', 'table', 'upload', 'laytpl', 'request', 'selectInput', 'transfer'], function () { var form = layui.form, layer = layui.layer, table = layui.table, transfer = layui.transfer, laytpl = layui.laytpl, request = layui.request, $ = layui.$; form.render(); // 当前弹出层,防止ID被覆盖 var parentIndex = layer.index; //监听提交 form.on('submit(data-reset-btn)', function (data) { var school_ids = parent.ids data.field['school_ids'] = school_ids; console.log(data.field); request.authPost("missions/customer_extensions", data.field, function (res) { if (res.success === false) { layer.alert(res.msg) } else { layer.closeAll(); //关闭所有层 table.reload('customers_table') } }) return false; }); }); </script>
Version data entries
181 entries across 181 versions & 1 rubygems