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

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