You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
{extend name="admin/layout" /} {block name="title"}操作日志{/block} {block name="main"} <style> </style> <div class="container" style="padding-top:70px;"> <div class="col-xs-12 col-md-10 center-block" style="float: none;">
<div id="searchToolbar"> <form onsubmit="return searchSubmit()" method="GET" class="form-inline"> <div class="form-group"> <label>搜索</label> <input type="text" class="form-control" name="action" placeholder="操作类型"> </div> <div class="form-group"> <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> 搜索</button> <a href="javascript:searchClear()" class="btn btn-default"><i class="fa fa-repeat"></i> 重置</a> </div> </form> </div>
<table id="listTable"> </table> </div> </div> <script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/layer/3.5.1/layer.js"></script> <script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/bootstrap-table.min.js"></script> <script src="//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap-table/1.19.1/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script> <script src="/static/js/custom.js"></script> <script>
$(document).ready(function(){ updateToolbar(); const defaultPageSize = 20; const pageNumber = typeof window.$_GET['pageNumber'] != 'undefined' ? parseInt(window.$_GET['pageNumber']) : 1; const pageSize = typeof window.$_GET['pageSize'] != 'undefined' ? parseInt(window.$_GET['pageSize']) : defaultPageSize;
$("#listTable").bootstrapTable({ url: '/admin/log_data', pageNumber: pageNumber, pageSize: pageSize, classes: 'table table-striped table-hover table-bottom-border', columns: [ { field: 'id', title: 'ID', formatter: function(value, row, index) { return '<b>'+value+'</b>'; } }, { field: 'uid', title: '操作人', formatter: function(value, row, index) { return value==1?'<font color="green">定时任务</font>':'<font color="blue">管理员</font>'; } }, { field: 'action', title: '操作类型' }, { field: 'data', title: '操作详情', }, { field: 'addtime', title: '操作时间' }, ], }) }) </script> {/block}
|