mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
37 lines
1.4 KiB
PHP
37 lines
1.4 KiB
PHP
{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#{id}" data-table-id="oplog" 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 id="oplog" data-url="{:sysuri()}" class="layui-hide" data-target-search="form.form-search"></table>
|
|
</div>
|
|
{/block}
|
|
|
|
{block name='script'}
|
|
<script>
|
|
$(function () {
|
|
$('table').layTable({
|
|
sort: {field: 'id', type: 'desc'},
|
|
cols: [[
|
|
{checkbox: true},
|
|
{field: 'id', title: 'ID', width: 80, sort: true, align: 'center'},
|
|
{field: 'node', title: '操作节点', sort: true},
|
|
{field: 'action', title: '操作行为', sort: true},
|
|
{field: 'content', title: '操作描述', sort: false},
|
|
{field: 'geoip', title: '访问IP地址', sort: true},
|
|
{field: 'geoisp', title: '网络服务商', sort: false},
|
|
{field: 'create_at', title: '操作时间', sort: true},
|
|
]]
|
|
});
|
|
});
|
|
</script>
|
|
{/block} |