164 lines
6.4 KiB
Plaintext
164 lines
6.4 KiB
Plaintext
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
|||
|
<%@ include file="/webpage/include/taglib.jsp"%>
|
|||
|
<html>
|
|||
|
<head>
|
|||
|
<title>日志管理</title>
|
|||
|
<meta name="decorator" content="default"/>
|
|||
|
<script type="text/javascript">
|
|||
|
function page(n,s){
|
|||
|
$("#pageNo").val(n);
|
|||
|
$("#pageSize").val(s);
|
|||
|
$("#searchForm").submit();
|
|||
|
return false;
|
|||
|
}
|
|||
|
$(document).ready(function() {
|
|||
|
//外部js调用
|
|||
|
laydate({
|
|||
|
elem: '#beginDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|||
|
event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
|||
|
});
|
|||
|
laydate({
|
|||
|
elem: '#endDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|||
|
event: 'focus' //响应事件。如果没有传入event,则按照默认的click
|
|||
|
});
|
|||
|
|
|||
|
|
|||
|
});
|
|||
|
</script>
|
|||
|
</head>
|
|||
|
<body class="gray-bg">
|
|||
|
<div class="wrapper wrapper-list-content">
|
|||
|
<div class="ibox">
|
|||
|
<!-- <div class="ibox-title"> -->
|
|||
|
<!-- <h5>日志列表 </h5> -->
|
|||
|
<!-- <div class="ibox-tools"> -->
|
|||
|
<!-- <a class="collapse-link"> -->
|
|||
|
<!-- <i class="fa fa-chevron-up"></i> -->
|
|||
|
<!-- </a> -->
|
|||
|
<!-- <a class="close-link"> -->
|
|||
|
<!-- <i class="fa fa-times"></i> -->
|
|||
|
<!-- </a> -->
|
|||
|
<!-- </div> -->
|
|||
|
<!-- </div> -->
|
|||
|
|
|||
|
|
|||
|
<div class="ibox-content ibox-content-list">
|
|||
|
<sys:message content="${message}"/>
|
|||
|
<div class="pane-query-circle">
|
|||
|
|
|||
|
|
|||
|
<!-- 查询条件 -->
|
|||
|
<div class="row">
|
|||
|
<div class="col-sm-12">
|
|||
|
<form:form id="searchForm" action="${ctx}/sys/log/" method="post" class="form-inline">
|
|||
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|||
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|||
|
<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
|
|||
|
|
|||
|
<div class="row pane-query-anying">
|
|||
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div">
|
|||
|
<div class="pane-query-anying-div-text">操作菜单:</div>
|
|||
|
<div class="pane-query-anying-div-input">
|
|||
|
<input id="title" name="title" type="text" maxlength="50" class="form-control input-sm" value="${log.title}"/>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div">
|
|||
|
<div class="pane-query-anying-div-text">操作用户:</div>
|
|||
|
<div class="pane-query-anying-div-input">
|
|||
|
<input id="createBy.name" name="createBy.name" type="text" maxlength="50" class="form-control input-sm" value="${log.createBy.name}"/>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<%-- <span>URI:</span>
|
|||
|
<input id="requestUri" name="requestUri" type="text" maxlength="50" class="form-control input-sm" value="${log.requestUri}"/> --%>
|
|||
|
<div class="col-sm-6 col-md-6 col-lg-6 pane-query-anying-div">
|
|||
|
<div class="pane-query-anying-div-text">日期范围: </div>
|
|||
|
<div class="pane-query-anying-div-input">
|
|||
|
<input id="beginDate" name="beginDate" style="max-width:130px" type="text" maxlength="20" class="laydate-icon form-control layer-date input-sm"
|
|||
|
value="<fmt:formatDate value="${log.beginDate}" pattern="yyyy-MM-dd"/>"/>
|
|||
|
<label> -- </label>
|
|||
|
|
|||
|
<input id="endDate" name="endDate" type="text" style="max-width:130px" maxlength="20" class=" laydate-icon form-control layer-date input-sm"
|
|||
|
value="<fmt:formatDate value="${log.endDate}" pattern="yyyy-MM-dd"/>" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div pane-query-anying-div-button">
|
|||
|
<div class="pull-right pane-query-anying-div-input">
|
|||
|
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="search()" ><i class="fa fa-search"></i> 查询</button>
|
|||
|
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="resetAll()" ><i class="fa fa-refresh"></i> 重置</button>
|
|||
|
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="confirmx('确认要清空日志吗?','${ctx}/sys/log/empty')" title="清空"><i class="fa fa-trash"></i> 清空</button>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</form:form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<!-- 工具栏 -->
|
|||
|
<div class="row">
|
|||
|
<div class="col-sm-12">
|
|||
|
<div class="pull-left">
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="pane-query-circle-list">
|
|||
|
|
|||
|
<table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
|
|||
|
|
|||
|
<thead><tr> <th style="width: 5%"><nobr> <input type="checkbox" class="i-checks">
|
|||
|
<shiro:hasPermission name="sys:log:del">
|
|||
|
<table:delRow url="${ctx}/sys/log/deleteAll" id="contentTable"></table:delRow><!-- 删除按钮 -->
|
|||
|
</shiro:hasPermission>
|
|||
|
</nobr></th>
|
|||
|
<th style="width: 28%"><nobr>操作菜单</nobr></th>
|
|||
|
<th><nobr>操作用户</nobr></th>
|
|||
|
<th><nobr>所在公司</nobr></th>
|
|||
|
<th><nobr>所在部门</nobr></th>
|
|||
|
<th><nobr>操作者IP</nobr></th>
|
|||
|
<th style="width: 8%"><nobr>操作时间</nobr></th>
|
|||
|
</thead>
|
|||
|
<tbody><%request.setAttribute("strEnter", "\n");request.setAttribute("strTab", "\t");%>
|
|||
|
<c:forEach items="${page.list}" var="log">
|
|||
|
<tr>
|
|||
|
<td class="query-datatable-nowrap"> <input type="checkbox" id="${log.id}" class="i-checks"></td>
|
|||
|
<td class="query-datatable-nowrap">${log.title}</td>
|
|||
|
<td class="query-datatable-nowrap">${log.createBy.name}</td>
|
|||
|
<td class="query-datatable-nowrap">${log.createBy.company.name}</td>
|
|||
|
<td class="query-datatable-nowrap">${log.createBy.office.name}</td>
|
|||
|
<%-- <td><strong>${log.requestUri}</strong></td> --%>
|
|||
|
<%-- <td>${log.method}</td> --%>
|
|||
|
<td class="query-datatable-nowrap">${log.remoteAddr}</td>
|
|||
|
<td class="query-datatable-nowrap"><fmt:formatDate value="${log.createDate}" type="both"/></td>
|
|||
|
</tr>
|
|||
|
<c:if test="${not empty log.exception}"><tr>
|
|||
|
<td class="query-datatable-nowrap" colspan="8" style="word-wrap:break-word;word-break:break-all;">
|
|||
|
<%-- 用户代理: ${log.userAgent}<br/> --%>
|
|||
|
<%-- 提交参数: ${fns:escapeHtml(log.params)} <br/> --%>
|
|||
|
异常信息: <br/>
|
|||
|
${fn:replace(fn:replace(fns:escapeHtml(log.exception), strEnter, '<br/>'), strTab, ' ')}</td>
|
|||
|
</tr></c:if>
|
|||
|
</c:forEach>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
<!-- 分页代码 -->
|
|||
|
<table:page page="${page}"></table:page>
|
|||
|
<br/>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|