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.6 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.5 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.3 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.2 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.1 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.10.0 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.9 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.8 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.7 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.6 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.5 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.4 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.3 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.2 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.1 app/views/educode_sales/customers/new_department.html.erb
educode_sales-1.0.0 app/views/educode_sales/customers/new_department.html.erb
educode_sales-0.9.99 app/views/educode_sales/customers/new_department.html.erb
educode_sales-0.9.98 app/views/educode_sales/customers/new_department.html.erb
educode_sales-0.9.97 app/views/educode_sales/customers/new_department.html.erb
educode_sales-0.9.96 app/views/educode_sales/customers/new_department.html.erb