index.html 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {extend name='admin@main'}
  2. {block name="button"}
  3. {if auth("resume")}
  4. <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>
  5. {/if}
  6. {if auth("forbid")}
  7. <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>
  8. {/if}
  9. {/block}
  10. {block name="content"}
  11. <div class="think-box-shadow">
  12. {include file='member/index_search'}
  13. <table class="layui-table margin-top-10" lay-skin="line">
  14. {notempty name='list'}
  15. <thead>
  16. <tr>
  17. <th class='list-table-check-td think-checkbox'>
  18. <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
  19. </th>
  20. <th class='list-table-sort-td'>
  21. <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
  22. </th>
  23. <th class='text-left nowrap'>头像地址</th>
  24. <th class='text-left nowrap'>昵称</th>
  25. <th class='text-left nowrap'>用户姓名</th>
  26. <th class='text-left nowrap'>手机号码</th>
  27. <th class='text-left nowrap'>职位</th>
  28. <th class='text-left nowrap'>所属部门</th>
  29. <th class='text-left nowrap'>直属主管</th>
  30. <th class='text-left nowrap'>状态</th>
  31. <th class='text-left nowrap'>签名状态</th>
  32. <th class="text-center" style="width: 20%">操作</th>
  33. </tr>
  34. </thead>
  35. {/notempty}
  36. <tbody>
  37. {foreach $list as $key=>$vo}
  38. <tr>
  39. <td class='list-table-check-td think-checkbox'>
  40. <input class="list-check-box" value='{$vo.id}' type='checkbox'>
  41. </td>
  42. <td class='text-left nowrap'></td>
  43. <td class='text-left nowrap'>
  44. {notempty name='vo.avatar'}
  45. <img data-tips-image style="width:25px;height:25px;vertical-align:top" src="{$vo.avatar|default=''}" class="margin-right-5">
  46. {/notempty}
  47. </td>
  48. <td class='text-left'>{$vo.nickname|default='--'}</td>
  49. <td class='text-left nowrap'>
  50. <div class="inline-block">{$vo.name|default=''}</div>
  51. </td>
  52. <td class='text-left'>{$vo.mobile|default='--'}</td>
  53. <td class='text-left'>{$vo.title|default='--'}</td>
  54. <td class='text-left'>{$vo.department_text|default='--'}</td>
  55. <td class='text-left'>{$vo.manager_text|default='--'}</td>
  56. <td class='text-left'>
  57. {eq name='vo.status' value='0'}<strong class="color-red">已禁用</strong>{else}<strong class="color-green">正常</strong>{/eq}
  58. </td>
  59. <td class='text-left'>
  60. <strong>{$get_signature_status_list[$vo.signature_status]}</strong>
  61. </td>
  62. <td class='text-center nowrap'>
  63. {if $vo.status eq 1 and auth("forbid")}
  64. <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>
  65. {elseif auth("resume")}
  66. <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>
  67. {/if}
  68. {if $vo.signature_status eq 2}
  69. <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>
  70. <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>
  71. {/if}
  72. <a class="layui-btn layui-btn-xs" data-open="{:url('edit')}?id={$vo.id}">详情</a>
  73. <!-- <a class="layui-btn layui-btn-xs" data-modal="{:url('edit')}?id={$vo.id}">详情</a>-->
  74. </td>
  75. </tr>
  76. {/foreach}
  77. </tbody>
  78. </table>
  79. {empty name='list'}<span class="notdata">没 有 记 录 哦!</span>{else}{$pagehtml|raw|default=''}{/empty}
  80. </div>
  81. {/block}