| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <div class="layui-fluid">
- <div class="layui-row layui-col-space15">
- <div class="layui-col-md12">
- <div class="layui-card">
- <div class="layui-card-header">下线转移</div>
- <div class="layui-card-body" pad15>
- <div class="layui-form layui-form-pane" lay-filter="LAY-broker-transferform-edit">
- <input type="hidden" name="origin_broker_id" value="{$origin_broker_id}">
- <div class="layui-form-item">
- <label class="layui-form-label">对方名称</label>
- <div class="layui-input-block" id="broker_id">
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-block">
- <input type="button" lay-submit lay-filter="LAY-broker-transferform-edit-submit"
- value="确认提交" class="layui-btn">
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- layui.config({
- base: '/static/echoui/' //静态资源所在路径
- }).extend({
- index: 'lib/index' //主入口模块
- }).use(['index', 'form', 'set', 'upload','selectN', 'layarea'], function () {
- var $ = layui.$, setter = layui.setter, admin = layui.admin, selectN = layui.selectN,form = layui.form;
- form.render();
- var workeragent = selectN({
- elem: '#broker_id',
- search: [true],
- tips: ["请选择对方姓名"],
- data: {$broker_list|raw},
- field: { idName: 'id', titleName: 'title'}
- });
- form.on('submit(LAY-broker-transferform-edit-submit)', function (obj) {
- var index = parent.layer.getFrameIndex(window.name);
- admin.req({
- url: setter.baseAgentUrl + 'broker/edittransfer',
- data: obj.field,
- done: function (res) {
- layer.msg("提交成功", {
- icon: 1
- });
- parent.layui.table.reload('LAY-broker-brokerlist-table'); //重载表格
- parent.layer.close(index);
- }
- });
- });
- });
- </script>
|