@@ -5,7 +5,8 @@
<title>swagger日志管理</title>
<title>swagger日志管理</title>
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function(){
$(document).ready(function(){
$(".tooltips").tooltip();
// $(".tooltips").tooltip();
$("[data-toggle='popover']").popover();
});
});
function page(n,s){
function page(n,s){
$("#pageNo").val(n);
$("#pageNo").val(n);
@@ -19,19 +20,30 @@
<!-- <ul class="nav nav-tabs"> -->
<!-- <ul class="nav nav-tabs"> -->
<%-- <li class="active"><a href="${ctx}/sys/log/">日志列表</a></li> --%>
<%-- <li class="active"><a href="${ctx}/sys/log/">日志列表</a></li> --%>
<!-- </ul> -->
<!-- </ul> -->
<form:form id="searchForm" action="${ctx}/sys/log/swaggerLogList" method="post" class="breadcrumb form-search">
<form:form modelAttribute="swaggerLog" id="searchForm" action="${ctx}/sys/log/swaggerLogList" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<div>
<div>
<label>操作行为:</label>
<label>操作行为:</label>
<select name="opAction" class="input-medium">
<!-- <select name="opAction" class="input-medium"> -->
<option value="" selected="selected">请选择</option>
<!-- <option value="" selected="selected">请选择</option> -->
<option value="1">插入</option>
<!-- <option value="1">插入</option> -->
<option value="2">更新</option>
<!-- <option value="2">更新</option> -->
<option value="3">删除</option>
<!-- <option value="3">删除</option> -->
<option value="4">查询</option>
<!-- <option value="4">查询</option> -->
</select>
<!-- </select> -->
<label>traceCode: </label><input id="traceCode" name="traceCode" type="text" maxlength="30" class="input-mini" value="${swaggerLog.traceCode}"/>
<form:select path="opAction" class="input-medium">
<form:option value="">请选择</form:option>
<form:option value="1">插入</form:option>
<form:option value="2">更新</form:option>
<form:option value="3">删除</form:option>
<form:option value="4">查询</form:option>
</form:select>
<label>TRACECODE: </label><input id="traceCode" name="traceCode" type="text" maxlength="30" class="input-mini" value="${swaggerLog.traceCode}"/>
<label>BUSINESSCODE: </label><input id="businessCode" name="businessCode" type="text" maxlength="30" class="input-mini" value="${swaggerLog.businessCode}"/>
<label>异常信息:</label><input id="exceptionInfo" name="exceptionInfo" type="text" maxlength="500" class="input-mini" value="${swaggerLog.exceptionInfo}"/>
<label>异常信息:</label><input id="exceptionInfo" name="exceptionInfo" type="text" maxlength="500" class="input-mini" value="${swaggerLog.exceptionInfo}"/>
<label>请求ip: </label><input id="requestIp" name="requestIp" type="text" maxlength="50" class="input-mini" value="${swaggerLog.requestIp}"/>
<label>请求ip: </label><input id="requestIp" name="requestIp" type="text" maxlength="50" class="input-mini" value="${swaggerLog.requestIp}"/>
<label>服务端ip: </label><input id="serverIp" name="serverIp" type="text" maxlength="50" class="input-mini" value="${swaggerLog.serverIp}"/>
<label>服务端ip: </label><input id="serverIp" name="serverIp" type="text" maxlength="50" class="input-mini" value="${swaggerLog.serverIp}"/>
@@ -49,15 +61,23 @@
</form:form>
</form:form>
<sys:message content="${message}"/>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead><tr><th>请求内容</th><th>traceCode </th><th>操作行为</th><th>请求ip</th><th>服务端ip</th><th>请求时间</th></thead>
<thead><tr><th>请求地址</th><th>请求内容</th><th>TRACECODE</th><th>BUSINESSCODE </th><th>操作行为</th><th>请求ip</th><th>服务端ip</th><th>请求时间</th></thead>
<tbody><%request.setAttribute("strEnter", "\n");request.setAttribute("strTab", "\t");%>
<tbody><%request.setAttribute("strEnter", "\n");request.setAttribute("strTab", "\t");%>
<c:forEach items="${page.list}" var="swaggerLog">
<c:forEach items="${page.list}" var="swaggerLog">
<tr>
<tr>
<td>${swaggerLog.requestUri}</td>
<td>
<td>
<a data-original-title="${fn:escapeXml(swaggerLog.requestContent) }" class="tooltips" data-flag="false"
<%-- <a data-original-title="${fn:escapeXml(swaggerLog.requestContent) }" class="tooltips" data-flag="false" --%>
data-html="true" data-placement="top "> ${fn:substring(swaggerLog.requestContent,0,20) }</a>
<%-- data-placement="bot tom "> ${fn:substring(swaggerLog.requestContent,0,20) }</a> --%>
<%-- <a title="${fn:escapeXml(swaggerLog.requestContent) }" class="tooltips" data-toggle="tooltip" --%>
<%-- data-placement="top"> ${fn:substring(swaggerLog.requestContent,0,20) }</a> --%>
<a title="${fn:escapeXml(swaggerLog.requestContent) }" data-container="body" data-toggle="popover"
data-placement="bottom"> ${fn:substring(swaggerLog.requestContent,0,20) }</a>
</td>
</td>
<td>${swaggerLog.traceCode}</td>
<td>${swaggerLog.traceCode}</td>
<td>${swaggerLog.businessCode}</td>
<td>
<td>
<c:if test="${swaggerLog.opAction eq 1}">插入</c:if>
<c:if test="${swaggerLog.opAction eq 1}">插入</c:if>
<c:if test="${swaggerLog.opAction eq 2}">更新</c:if>
<c:if test="${swaggerLog.opAction eq 2}">更新</c:if>
@@ -67,7 +87,7 @@
</td>
</td>
<td><strong>${swaggerLog.requestIp}</strong></td>
<td><strong>${swaggerLog.requestIp}</strong></td>
<td>${swaggerLog.serverIp}</td>
<td>${swaggerLog.serverIp}</td>
<td><fmt:formatDate value="${swaggerLog.requestTime}" type="both"/></td>
<td><fmt:formatDate value="${swaggerLog.requestTime}" type="both" pattern="yyyy-MM-dd HH:mm:ss" /></td>
</tr>
</tr>
<c:if test="${not empty swaggerLog.exceptionInfo}"><tr>
<c:if test="${not empty swaggerLog.exceptionInfo}"><tr>
<td colspan="8" style="word-wrap:break-word;word-break:break-all;">
<td colspan="8" style="word-wrap:break-word;word-break:break-all;">