index.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {extend name='main'}
  2. {block name="button"}
  3. {if auth("clear")}
  4. <button data-load='{:url("clear")}' data-confirm="确定要消除所有日志吗?" class='layui-btn layui-btn-sm layui-btn-primary'>清理日志</button>
  5. {/if}
  6. {if auth("remove")}
  7. <button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" data-confirm="确定要删除日志吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除日志</button>
  8. {/if}
  9. {/block}
  10. {block name="content"}
  11. <div class="think-box-shadow">
  12. {include file='oplog/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></th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. {foreach $list as $key=>$vo}
  29. <tr data-dbclick>
  30. <td class='list-table-check-td think-checkbox'>
  31. <input class="list-check-box" value='{$vo.id}' type='checkbox'>
  32. </td>
  33. <td class="text-left nowrap">
  34. <span class="font-w7">{$vo.username|default='-'}</span><br>
  35. <span class="color-desc">{$vo.node|default='-'}</span>
  36. </td>
  37. <td class='text-left nowrap'>
  38. <p class="color-text">{$vo.action|default='-'}</p>
  39. <p class="color-desc">{$vo.content|default='-'}</p>
  40. </td>
  41. <td class='text-left nowrap'>
  42. <p class="color-text">{$vo.geoip|default='-'}</p>
  43. <p class="color-desc">{$vo.isp|default='-'}</p>
  44. </td>
  45. <td class='text-left nowrap'>
  46. 日期:{$vo.create_at|format_datetime|str_replace=' ','<br><span class="color-desc">时间:',###|raw}</span>
  47. </td>
  48. <td class='text-left nowrap'>
  49. {if auth("remove")}
  50. <a data-dbclick class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该日志吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
  51. {/if}
  52. </td>
  53. </tr>
  54. {/foreach}
  55. </tbody>
  56. {/notempty}
  57. </table>
  58. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  59. </div>
  60. {/block}