123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- {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='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-left nowrap">操作</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'>
- <img data-tips-image style="width:50px;height:50px;vertical-align:top" src="{$vo.avatar|default=''}">
- </td>
- <td class='text-left nowrap'>{$vo.nickname|default='--'}</td>
- <td class='text-left nowrap'>
- <div class="inline-block">{$vo.name|default=''}</div>
- </td>
- <td class='text-left nowrap'>{$vo.mobile|default='--'}</td>
- <td class='text-left nowrap'>{$vo.title|default='--'}</td>
- <td class='text-left nowrap'>{$vo.department_text|default='--'}</td>
- <td class='text-left nowrap'>{$vo.manager_text|default='--'}</td>
- <td class='text-left nowrap'>
- {eq name='vo.status' value='0'}<strong class="color-red">已禁用</strong>{else}<strong class="color-green">正常</strong>{/eq}
- </td>
- <td class='text-left nowrap'>
- <strong>{$get_signature_status_list[$vo.signature_status]}</strong>
- </td>
- <td class='text-left 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}
- <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>-->
- {if $vo.signature_status eq 2}
- <br/>
- <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>
- <br/>
- <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}
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {empty name='list'}<span class="notdata">没 有 记 录 哦!</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- {/block}
- {block name='script'}
- <script>
- // 更新
- function btn_renew(msg) {
- layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
- var url = "/user/member/renew";
- layer.closeAll();
- $.ajax({
- type: "post",
- url: url,
- data: {},
- dataType: "json",
- async: false,
- success: function (data) {
- layer.msg(data.info);
- setTimeout(function () {
- window.location.reload();
- },1000)
- }
- });
- });
- }
- </script>
- {/block}
|