Sha256: 6ee1ddf3c3cb3cc540c8355595c3dd27fae7befe777fd0dc7c71981bdfaccda8
Contents?: true
Size: 1.87 KB
Versions: 1
Compression:
Stored size: 1.87 KB
Contents
<div class="layuimini-main"> <form class="layui-form layuimini-form" action=""> <div class="layui-form-item" style="padding: 25px"> <div class="layui-form-item" style="padding: 25px"> <div class="layui-inline"> <label class="layui-form-label required">部门名称</label> <div class="layui-input-block" style="width: 300px;"> <input type="text" name="department_name" required lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input" id="inputFocus"> </div> </div> </div> <div class="layui-form-item" style="padding-left: 130px"> <button type="submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="data-reset-btn">提交 </button> </div> </div> </form> </div> <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, laydate = layui.laydate, $ = layui.$; form.render(); // 当前弹出层,防止ID被覆盖 var parentIndex = layer.index; //监听提交 form.on('submit(data-reset-btn)', function (data) { data.field.school_id = parent.school_id request.authPost("missions/customers/"+ parent.school_id +"/create_department", data.field, function (res) { if (res.success === false) { layer.alert(res.msg) } else { layer.close(parent.new_department_index); //关闭所有层 table.reload('sale_plan_follow_table') } }) return false; }); }); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
educode_sales-0.6.0 | app/views/educode_sales/customers/new_department.html.erb |