1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- {extend name='main'}
- {block name="button"}
- {if auth("clear")}
- <button data-load='{:url("clear")}' data-confirm="确定要消除所有日志吗?" class='layui-btn layui-btn-sm layui-btn-primary'>清理日志</button>
- {/if}
- {if auth("remove")}
- <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>
- {/if}
- {/block}
- {block name="content"}
- <div class="think-box-shadow">
- {include file='oplog/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></th>
- </tr>
- </thead>
- <tbody>
- {foreach $list as $key=>$vo}
- <tr data-dbclick>
- <td class='list-table-check-td think-checkbox'>
- <input class="list-check-box" value='{$vo.id}' type='checkbox'>
- </td>
- <td class="text-left nowrap">
- <span class="font-w7">{$vo.username|default='-'}</span><br>
- <span class="color-desc">{$vo.node|default='-'}</span>
- </td>
- <td class='text-left nowrap'>
- <p class="color-text">{$vo.action|default='-'}</p>
- <p class="color-desc">{$vo.content|default='-'}</p>
- </td>
- <td class='text-left nowrap'>
- <p class="color-text">{$vo.geoip|default='-'}</p>
- <p class="color-desc">{$vo.isp|default='-'}</p>
- </td>
- <td class='text-left nowrap'>
- 日期:{$vo.create_at|format_datetime|str_replace=' ','<br><span class="color-desc">时间:',###|raw}</span>
- </td>
- <td class='text-left nowrap'>
- {if auth("remove")}
- <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>
- {/if}
- </td>
- </tr>
- {/foreach}
- </tbody>
- {/notempty}
- </table>
- {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- {/block}
|