Sha256: 80b94ad194ea21bbaa7d4adc1de363c155eca64b42dfc502dc6c1a001054d165
Contents?: true
Size: 1.49 KB
Versions: 75
Compression:
Stored size: 1.49 KB
Contents
<%= Gon::Base.render_data %> <div class="layui-form layuimini-form" style="padding:30px"> <div class="layui-form-item"> <label class="layui-form-label required">选择售后工程师:</label> <div class="layui-input-block" style="width: 300px"> <div id="sales_id"></div> </div> </div> <hr> <div class="layui-form-item"> <div class="layui-input-block"> <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button> </div> </div> </div> <script> layui.use(['form', 'table', 'upload', 'laytpl', 'request', 'selectInput'], function () { var form = layui.form, layer = layui.layer, table = layui.table, laytpl = layui.laytpl, request = layui.request, $ = layui.$; form.render(); staff_list_select = xmSelect.render({ el: '#sales_id', data: gon.sales_staffs, filterable: true, radio: false, }) var parentIndex = layer.index; form.on('submit(saveBtn)', function (data) { layer.confirm('确定指派合同【' + parent.name + "】售后工程师?", function (index) { request.post('missions/contracts/' + parent.id +"/assign_staff", {to_id: staff_list_select.getValue('valueStr')}, function (res) { layer.close(index); layer.close(parentIndex) parent.table.reload('contact_table') }) }); return false; }); }); </script>
Version data entries
75 entries across 75 versions & 1 rubygems