增加系统业务配置操作日志功能,与系统日志菜单分离,增加相关国际化字典,并更新国际化部分翻译

This commit is contained in:
zhangwei
2018-10-26 15:22:41 +08:00
parent f2d52178a9
commit 47276ce162
10 changed files with 1429 additions and 1058 deletions

View File

@@ -0,0 +1,150 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<html>
<head>
<title>配置审计日志</title>
<script type="text/javascript">
function page(n, s) {
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<%-- <ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/sys/log/">日志列表</a></li>
</ul> --%>
<div class="page-content">
<h3 class="page-title">
<spring:message code="cfg_operation_log"></spring:message>
</h3>
<h5 class="page-header"></h5>
<div class="row">
<div class="col-md-12">
<div class="portlet">
<div class="portlet-body">
<div class="row">
<form:form id="searchForm" action="${ctx}/sys/log/cfgOperationLogList" method="post"
class="breadcrumb form-search" style="background-color:#fff">
<input id="pageNo" name="pageNo" type="hidden"
value="${page.pageNo}" />
<input id="pageSize" name="pageSize" type="hidden"
value="${page.pageSize}" />
<div class="col-md-12 ">
<div class="pull-left">
<label><spring:message code="function_name" /></label>
<select name="functionName" class="selectpicker select2 form-control" data-live-search="true" data-live-search-placeholder="search">
<option value=""><spring:message code="select"></spring:message></option>
<c:forEach items="${fns:getDictList('SYS_SERVICE_FUNCTION')}" var="dict">
<option value="${dict.itemValue }" <c:if test="${sysLog.functionName eq dict.itemValue}">selected</c:if>>
<spring:message code="${dict.itemValue }"></spring:message>
</option>
</c:forEach>
</select>
</div>
<div class="pull-left">
<label><spring:message code="user" /></label> <input
id="createBy" name="createBy" type="text" maxlength="50"
class="form-control" value="${sysLog.createBy}" />
</div>
<div class="pull-left">
<label><spring:message code="operation" /></label>
<select name="operation" class="selectpicker select2 form-control" data-live-search="true" data-live-search-placeholder="search">
<option value=""><spring:message code="select"></spring:message></option>
<option value="query" <c:if test="${sysLog.operation eq 'query'}">selected</c:if>><spring:message code="query"></spring:message></option>
<option value="add" <c:if test="${sysLog.operation eq 'add'}">selected</c:if>><spring:message code="add"></spring:message></option>
<option value="edit" <c:if test="${sysLog.operation eq 'edit'}">selected</c:if>><spring:message code="edit"></spring:message></option>
<option value="delete" <c:if test="${sysLog.operation eq 'delete'}">selected</c:if>><spring:message code="delete"></spring:message></option>
<option value="examine" <c:if test="${sysLog.operation eq 'examine'}">selected</c:if>><spring:message code="examine"></spring:message></option>
</select>
</div>
<div class="pull-left">
<label><spring:message code="log_date" /></label> <input
id="beginDate" name="beginDate" type="text"
readonly="readonly" maxlength="20"
class="form-control Wdate"
value="<fmt:formatDate value="${sysLog.beginDate}" pattern="yyyy-MM-dd"/>"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});" />
</div>
<div class="pull-left">
<label><spring:message code="" />&nbsp;</label> <input
id="endDate" name="endDate" type="text" readonly="readonly"
maxlength="20" class="form-control Wdate"
value="<fmt:formatDate value="${sysLog.endDate}" pattern="yyyy-MM-dd"/>"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});" />
</div>
<div class="pull-left">
<label>&nbsp;</label>
<%-- <label for="exception"><input id="exception"
name="exception" type="checkbox"
${sysLog.exception eq '1'?' checked':''} value="1" /><spring:message code="log_exception" /></label> --%>
<button type="submit" class="btn blue form-control"><i class="fa fa-search"></i><spring:message code="search" /></button>
</div>
</div>
</form:form>
</div>
<sys:message content="${message}" />
<div class="table-responsive">
<table id="contentTable1"
class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th><spring:message code="function_name" /></th>
<th><spring:message code="opearation" /></th>
<th><spring:message code="log_submission" /></th>
<th><spring:message code="log_ip" /></th>
<th><spring:message code="log_user" /></th>
<th><spring:message code="operate_time" /></th>
</thead>
<tbody>
<%
request.setAttribute("strEnter", "\n");
request.setAttribute("strTab", "\t");
%>
<c:forEach items="${page.list}" var="log">
<tr>
<td><spring:message code="${log.functionName}"></spring:message></td>
<td><strong>
<spring:message code="${log.operation}"></spring:message>
<c:if test="${not empty log.auditState }">
-
<c:choose>
<c:when test="${log.auditState eq '0'}"><spring:message code="created"></spring:message></c:when>
<c:when test="${log.auditState eq '1'}"><spring:message code="approved"></spring:message></c:when>
<c:when test="${log.auditState eq '2'}"><spring:message code="unapproved"></spring:message></c:when>
<c:when test="${log.auditState eq '3'}"><spring:message code="cancel_approved"/></c:when>
</c:choose>
</c:if>
</strong></td>
<td>
${log.method}
</td>
<td>${log.remoteAddr}</td>
<td>${log.createBy}</td>
<td><fmt:formatDate value="${log.createDate}"
type="both" /></td>
</tr>
<c:if test="${not empty log.exception}">
<tr>
<td colspan="8"
style="word-wrap: break-word; word-break: break-all;">
<%-- 用户代理: ${log.userAgent}<br/> --%> <%-- 提交参数: ${fns:escapeHtml(log.params)} <br/> --%>
<spring:message code="log_exception_info" /><br />
${fn:replace(fn:replace(fns:escapeHtml(log.exception), strEnter, '<br/>'), strTab, '&nbsp; &nbsp; ')}
</td>
</tr>
</c:if>
</c:forEach>
</tbody>
</table>
<div class="page">${page}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>