|  |  |  | 
|---|
|  |  |  | <div class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain table-action" id="reset"> | 
|---|
|  |  |  | <i class="layui-icon"></i> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-btn layui-btn-sm layui-btn-primary table-action action-more" | 
|---|
|  |  |  | shiro:hasAnyPermissions="agent:add,agent:edit"> | 
|---|
|  |  |  | <i class="layui-icon"></i> | 
|---|
|  |  |  | <div class="layui-btn layui-btn-sm layui-btn-primary febs-button-cyan-plain table-action" id="add" shiro:hasPermission="agent:add"> | 
|---|
|  |  |  | <i class="layui-icon"></i> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!--                                <div class="layui-btn layui-btn-sm layui-btn-primary table-action action-more"--> | 
|---|
|  |  |  | <!--                                     shiro:hasAnyPermissions="agent:add,agent:edit">--> | 
|---|
|  |  |  | <!--                                    <i class="layui-icon"></i>--> | 
|---|
|  |  |  | <!--                                </div>--> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </form> | 
|---|
|  |  |  | 
|---|
|  |  |  | </span> | 
|---|
|  |  |  | <a lay-event="reset" title="重置密码" shiro:hasPermission="agent:password:reset"><i class="layui-icon febs-edit-area febs-blue"></i></a> | 
|---|
|  |  |  | <a lay-event="edit" title="编辑" shiro:hasPermission="agent:edit"><i class="layui-icon febs-edit-area febs-blue"></i></a> | 
|---|
|  |  |  | <a lay-event="del" title="删除" shiro:hasPermission="agent:del"><i class="layui-icon febs-edit-area febs-red"></i></a> | 
|---|
|  |  |  | <!--    <a lay-event="del" title="删除" shiro:hasPermission="agent:del"><i class="layui-icon febs-edit-area febs-red"></i></a>--> | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  | <!-- 表格操作栏 end --> | 
|---|
|  |  |  | <script data-th-inline="none" type="text/javascript"> | 
|---|
|  |  |  | 
|---|
|  |  |  | $view = $('#febs-user'), | 
|---|
|  |  |  | $query = $view.find('#query'), | 
|---|
|  |  |  | $reset = $view.find('#reset'), | 
|---|
|  |  |  | $add = $view.find('#add'), | 
|---|
|  |  |  | $searchForm = $view.find('form'), | 
|---|
|  |  |  | sortObject = {field: 'createTime', type: null}, | 
|---|
|  |  |  | tableIns, | 
|---|
|  |  |  | 
|---|
|  |  |  | name: 'add', | 
|---|
|  |  |  | title: '新增代理商', | 
|---|
|  |  |  | perms: 'agent:add' | 
|---|
|  |  |  | }, { | 
|---|
|  |  |  | name: 'delete', | 
|---|
|  |  |  | title: '删除代理商', | 
|---|
|  |  |  | perms: 'agent:del' | 
|---|
|  |  |  | }] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject}); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $add.on('click', function() { | 
|---|
|  |  |  | febs.modal.open('新增用户', 'agent/agentAdd', { | 
|---|
|  |  |  | btn: ['提交', '重置'], | 
|---|
|  |  |  | area: $(window).width() <= 750 ? '95%' : '50%', | 
|---|
|  |  |  | offset: '30px', | 
|---|
|  |  |  | yes: function (index, layero) { | 
|---|
|  |  |  | $('#user-add').find('#submit').trigger('click'); | 
|---|
|  |  |  | tableIns.reload({where: params, page: {curr: 1}}); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | btn2: function () { | 
|---|
|  |  |  | $('#user-add').find('#reset').trigger('click'); | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function initTable() { | 
|---|
|  |  |  | tableIns = febs.table.init({ | 
|---|
|  |  |  | elem: $view.find('table'), | 
|---|