index.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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='text-left nowrap'>头像地址</th>
  21. <th class='text-left nowrap'>昵称</th>
  22. <th class='text-left nowrap'>用户姓名</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. </tr>
  31. </thead>
  32. {/notempty}
  33. <tbody>
  34. {foreach $list as $key=>$vo}
  35. <tr>
  36. <td class='list-table-check-td think-checkbox'>
  37. <input class="list-check-box" value='{$vo.id}' type='checkbox'>
  38. </td>
  39. <td class='text-left nowrap'>
  40. <img data-tips-image style="width:50px;height:50px;vertical-align:top" src="{$vo.avatar|default=''}">
  41. </td>
  42. <td class='text-left nowrap'>{$vo.nickname|default='--'}</td>
  43. <td class='text-left nowrap'>
  44. <div class="inline-block">{$vo.name|default=''}</div>
  45. </td>
  46. <td class='text-left nowrap'>{$vo.mobile|default='--'}</td>
  47. <td class='text-left nowrap'>{$vo.title|default='--'}</td>
  48. <td class='text-left nowrap'>{$vo.department_text|default='--'}</td>
  49. <td class='text-left nowrap'>{$vo.manager_text|default='--'}</td>
  50. <td class='text-left nowrap'>
  51. {eq name='vo.status' value='0'}<strong class="color-red">已禁用</strong>{else}<strong class="color-green">正常</strong>{/eq}
  52. </td>
  53. <td class='text-left nowrap'>
  54. <strong>{$get_signature_status_list[$vo.signature_status]}</strong>
  55. </td>
  56. <td class='text-left nowrap'>
  57. {if $vo.status eq 1 and auth("forbid")}
  58. <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>
  59. {elseif auth("resume")}
  60. <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>
  61. {/if}
  62. <a class="layui-btn layui-btn-xs" data-open="{:url('edit')}?id={$vo.id}">详 情</a>
  63. <!-- <a class="layui-btn layui-btn-xs" data-modal="{:url('edit')}?id={$vo.id}">详情</a>-->
  64. {if $vo.signature_status eq 2}
  65. <br/>
  66. <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>
  67. <br/>
  68. <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>
  69. {/if}
  70. </td>
  71. </tr>
  72. {/foreach}
  73. </tbody>
  74. </table>
  75. {empty name='list'}<span class="notdata">没 有 记 录 哦!</span>{else}{$pagehtml|raw|default=''}{/empty}
  76. </div>
  77. {/block}
  78. {block name='script'}
  79. <script>
  80. // 更新
  81. function btn_renew(msg) {
  82. layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
  83. var url = "/user/member/renew";
  84. layer.closeAll();
  85. $.ajax({
  86. type: "post",
  87. url: url,
  88. data: {},
  89. dataType: "json",
  90. async: false,
  91. success: function (data) {
  92. layer.msg(data.info);
  93. setTimeout(function () {
  94. window.location.reload();
  95. },1000)
  96. }
  97. });
  98. });
  99. }
  100. </script>
  101. {/block}