Sha256: 7ccea67b86fd3104f01de6d8772dda21294c42386797b26607fd74049e2015ae

Contents?: true

Size: 1.92 KB

Versions: 179

Compression:

Stored size: 1.92 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')
                    parent.table.reload('customers_table')
                }
            })
            return false;
        });
    });
</script>

Version data entries

179 entries across 179 versions & 1 rubygems

Version Path
educode_sales-1.10.74 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.73 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.72 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.71 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.70 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.59 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.58 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.49 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.48 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.46 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.41 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.37 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.36 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.35 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.34 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.33 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.31 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.30 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.29 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.28 app/views/educode_sales/customers/new_department.html.erb