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.26 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.25 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.24 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.23 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.22 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.21 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.20 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.19 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.18 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.17 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.16 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.15 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.14 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.13 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.12 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.11 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.10 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.9 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.8 app/views/educode_sales/customers/give.html.erb
educode_sales-1.10.7 app/views/educode_sales/customers/give.html.erb