1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- {extend name='admin@main'}
- {block name="button"}
- {if auth("resume")}
- <button class="layui-btn layui-btn-sm layui-btn-primary" data-confirm="确定要批量启用吗?" data-action="{:url('resume')}" data-rule="id#{key}" data-csrf="{:systoken('resume')}">批量启用</button>
- {/if}
- {if auth("forbid")}
- <button class="layui-btn layui-btn-sm layui-btn-primary" data-confirm="确定要批量禁用吗?" data-action="{:url('forbid')}" data-rule="id#{key}" data-csrf="{:systoken('forbid')}">批量禁用</button>
- {/if}
- {/block}
- {block name="content"}
- <div class="think-box-shadow">
- {include file='member/index_search'}
- <table class="layui-table margin-top-10" lay-skin="line">
- {notempty name='list'}
- <thead>
- <tr>
- <th class='list-table-check-td think-checkbox'>
- <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
- </th>
- <th class='list-table-sort-td'>
- <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
- </th>
- <th class='text-left nowrap'>头像地址</th>
- <th class='text-left nowrap'>昵称</th>
- <th class='text-left nowrap'>用户姓名</th>
- <th class='text-left nowrap'>手机号码</th>
- <th class='text-left nowrap'>职位</th>
- <th class='text-left nowrap'>所属部门</th>
- <th class='text-left nowrap'>直属主管</th>
- <th class='text-left nowrap'>状态</th>
- <th class='text-left nowrap'>签名状态</th>
- <th class="text-center" style="width: 20%">操作</th>
- </tr>
- </thead>
- {/notempty}
- <tbody>
- {foreach $list as $key=>$vo}
- <tr>
- <td class='list-table-check-td think-checkbox'>
- <input class="list-check-box" value='{$vo.id}' type='checkbox'>
- </td>
- <td class='text-left nowrap'></td>
- <td class='text-left nowrap'>
- {notempty name='vo.avatar'}
- <img data-tips-image style="width:25px;height:25px;vertical-align:top" src="{$vo.avatar|default=''}" class="margin-right-5">
- {/notempty}
- </td>
- <td class='text-left'>{$vo.nickname|default='--'}</td>
- <td class='text-left nowrap'>
- <div class="inline-block">{$vo.name|default=''}</div>
- </td>
- <td class='text-left'>{$vo.mobile|default='--'}</td>
- <td class='text-left'>{$vo.title|default='--'}</td>
- <td class='text-left'>{$vo.department_text|default='--'}</td>
- <td class='text-left'>{$vo.manager_text|default='--'}</td>
- <td class='text-left'>
- {eq name='vo.status' value='0'}<strong class="color-red">已禁用</strong>{else}<strong class="color-green">正常</strong>{/eq}
- </td>
- <td class='text-left'>
- <strong>{$get_signature_status_list[$vo.signature_status]}</strong>
- </td>
- <td class='text-center nowrap'>
- {if $vo.status eq 1 and auth("forbid")}
- <a class="layui-btn layui-btn-xs layui-btn-warm" data-confirm="确定要禁用该账号吗?" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('forbid')}">禁 用</a>
- {elseif auth("resume")}
- <a class="layui-btn layui-btn-xs layui-bg-blue" data-confirm="确定要启用该账号吗?" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('resume')}">启 用</a>
- {/if}
- {if $vo.signature_status eq 2}
- <a class="layui-btn layui-btn-xs layui-bg-blue" data-confirm="确定要审核通过吗?" data-action="{:url('signature_status')}" data-value="id#{$vo.id};signature_status#3" data-csrf="{:systoken('signature_status')}">审核通过</a>
- <a class="layui-btn layui-btn-xs layui-btn-danger" data-confirm="确定要审核驳回吗?" data-action="{:url('signature_status')}" data-value="id#{$vo.id};signature_status#4" data-csrf="{:systoken('signature_status')}">审核驳回</a>
- {/if}
- <a class="layui-btn layui-btn-xs" data-open="{:url('edit')}?id={$vo.id}">详情</a>
- <!-- <a class="layui-btn layui-btn-xs" data-modal="{:url('edit')}?id={$vo.id}">详情</a>-->
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {empty name='list'}<span class="notdata">没 有 记 录 哦!</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- {/block}
|