日志修改字段显示过长省略加提示

This commit is contained in:
zhanghongqing
2018-08-03 21:16:14 +08:00
parent a63b18c7ae
commit 0df28b22e9
15 changed files with 82 additions and 72 deletions

View File

@@ -212,8 +212,8 @@ $(document).ready(function(){
</c:forEach>
</td>
<td title="${fns:escapeHtml(log.appLabel)}">
${fns:stringFormat(log.appLabel,30)}
<td>
${log.appLabel}
</td>
<td>${log.c2sPktNum}</td>
<td>${log.s2cPktNum}</td>
@@ -242,11 +242,11 @@ $(document).ready(function(){
<c:if test="${log.streamDir==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
</c:forEach>
</td>
<%-- <td title="${fns:escapeHtml(log.addrList)}">
${fns:stringFormat(log.addrList,30)}
<%-- <td>
${log.addrList}
</td> --%>
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -229,11 +229,11 @@ $(document).ready(function(){
<c:if test="${log.streamDir==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
</c:forEach>
</td>
<%-- <td title="${fns:escapeHtml(log.addrList)}">
${fns:stringFormat(log.addrList,30)}
<%-- <td>
${log.addrList}
</td> --%>
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -248,8 +248,8 @@ $(document).ready(function(){
<%-- <td title="${fns:escapeHtml(log.addrList)}"> --%>
<%-- ${fns:stringFormat(log.addrList,30)} --%>
<!-- </td> -->
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -285,8 +285,8 @@
</c:forEach>
</td>
<%-- <td>${_log.addrList }</td> --%>
<td title="${_log.serverLocate}">${fns:abbr(_log.serverLocate,20)}</td>
<td title="${_log.clientLocate}">${fns:abbr(_log.clientLocate,20)}</td>
<td>${_log.serverLocate}</td>
<td>${_log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -219,8 +219,8 @@ $(document).ready(function(){
</a>
</td>
<td title="${fns:escapeHtml(log.ftpContent)}">
${fns:stringFormat(log.ftpContent,30)}
<td>
${log.ftpContent}
</td>
<td>${log.capIp}</td>
@@ -246,8 +246,8 @@ $(document).ready(function(){
</c:forEach>
</td>
<%-- <td>${log.addrList}</td> --%>
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -215,7 +215,7 @@
</c:forEach>
</td>
<td title="${_log.url }">${fns:abbr(_log.url, 30)}</td>
<td>${_log.url}</td>
<td>${_log.reqHdrFile}</td>
<td>${_log.reqBodyFile}</td>
<td>${_log.resHdrFile}</td>
@@ -248,8 +248,8 @@
</c:forEach>
</td>
<%-- <td>${_log.addrList }</td> --%>
<td title="${_log.serverLocate}">${fns:abbr(_log.serverLocate,20)}</td>
<td title="${_log.clientLocate}">${fns:abbr(_log.clientLocate,20)}</td>
<td>${_log.serverLocate}</td>
<td>${_log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -225,8 +225,8 @@
</c:forEach>
</td>
<%-- <td>${_log.addrList }</td> --%>
<td title="${_log.serverLocate}">${fns:abbr(_log.serverLocate,20)}</td>
<td title="${_log.clientLocate}">${fns:abbr(_log.clientLocate,20)}</td>
<td>${_log.serverLocate}</td>
<td>${_log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -237,11 +237,11 @@ $(document).ready(function(){
<c:if test="${log.streamDir==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
</c:forEach>
</td>
<%-- <td title="${fns:escapeHtml(log.addrList)}"> --%>
<%-- ${fns:stringFormat(log.addrList,30)} --%>
<%-- <td> --%>
<%-- ${log.addrList} --%>
<!-- </td> -->
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -213,8 +213,8 @@
<c:if test="${log.encryptMode eq 1}">IPSEC</c:if>
<c:if test="${log.encryptMode eq 2}">无</c:if>
</td>
<td title="${fns:escapeHtml(log.chapName)}">
${fns:stringFormat(log.chapName,30)}
<td>
${log.chapName}
</td>
<td>${log.capIp}</td>
@@ -239,11 +239,11 @@
<c:if test="${log.streamDir==dict.itemCode}"><spring:message code="${dict.itemValue }"/></c:if>
</c:forEach>
</td>
<%-- <td title="${fns:escapeHtml(log.addrList)}">
${fns:stringFormat(log.addrList,30)}
<%-- <td>
${log.addrList}
</td> --%>
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -205,18 +205,26 @@
</td>
<td>${_log.mailProto }</td>
<td title="${fns:escapeHtml(_log.mailFrom)}">
${fns:stringFormat(_log.mailFrom,30)}
<td>
${_log.mailFrom}
</td>
<td title="${fns:escapeHtml(_log.mailTo)}">
${fns:stringFormat(_log.mailTo,30)}
<td>
${_log.mailTo}
</td>
<td>${_log.subject }</td>
<td>
<a href="http://${_log.emlFile}" data-original-title="http://${_log.emlFile}" target="_blank"
<c:if test="${fn:startsWith(_log.emlFile, 'http')}">
<a href="${_log.emlFile}" data-original-title="${_log.emlFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fn:substring(_log.emlFile,0,20) }
</a>
</c:if>
<c:if test="${!fn:startsWith(_log.emlFile, 'http')}">
<a href="http://${_log.emlFile}" data-original-title="http://${_log.emlFile}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
http://${fn:substring(_log.emlFile,0,20) }
</a>
</a>
</c:if>
</td>
<td>${_log.capIp }</td>
@@ -245,11 +253,11 @@
<c:if test="${streamType.itemCode eq _log.streamDir}">${streamType.itemValue}</c:if>
</c:forEach>
</td>
<%-- <td title="${fns:escapeHtml(_log.addrList)}"> --%>
<%-- ${fns:stringFormat(_log.addrList,30)} --%>
<%-- <td> --%>
<%-- ${_log.addrList } --%>
<!-- </td> -->
<td title="${_log.serverLocate}">${fns:abbr(_log.serverLocate,20)}</td>
<td title="${_log.clientLocate}">${fns:abbr(_log.clientLocate,20)}</td>
<td>${_log.serverLocate}</td>
<td>${_log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -226,8 +226,8 @@ $(document).ready(function(){
http://${fn:substring(log.logUri,0,20) }
</a>
</td>
<td title="${fns:escapeHtml(log.refer)}">
${fns:stringFormat(log.refer,30)}
<td>
${log.refer}
</td>
<td>${log.level}</td>
<!--0动态黑名单FD1静态配置FD2首次分析命中 -->
@@ -260,11 +260,11 @@ $(document).ready(function(){
<c:if test="${log.streamDir==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
</c:forEach>
</td>
<%-- <td title="${fns:escapeHtml(log.addrList)}">
${fns:stringFormat(log.addrList,30)}
<%-- <td>
${log.addrList}
</td> --%>
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -226,8 +226,8 @@ $(document).ready(function(){
http://${fn:substring(log.logUri,0,20) }
</a>
</td>
<td title="${fns:escapeHtml(log.refer)}">
${fns:stringFormat(log.refer,30)}
<td>
${log.refer}
</td>
<td>${log.level}</td>
<!--0动态黑名单FD1静态配置FD2首次分析命中 -->
@@ -260,11 +260,11 @@ $(document).ready(function(){
<c:if test="${log.streamDir==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
</c:forEach>
</td>
<%-- <td title="${fns:escapeHtml(log.addrList)}">
${fns:stringFormat(log.addrList,30)}
<%-- <td>
${log.addrList}
</td> --%>
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -263,8 +263,8 @@ $(document).ready(function(){
<%-- <td title="${fns:escapeHtml(log.addrList)}">
${fns:stringFormat(log.addrList,30)}
</td> --%>
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -227,8 +227,8 @@ $(document).ready(function(){
http://${fn:substring(log.logUri,0,20) }
</a>
</td>
<td title="${fns:escapeHtml(log.refer)}">
${fns:stringFormat(log.refer,30)}
<td>
${log.refer}
</td>
<td>${log.level}</td>
<td>
@@ -260,11 +260,11 @@ $(document).ready(function(){
<c:if test="${log.streamDir==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
</c:forEach>
</td>
<%-- <td title="${fns:escapeHtml(log.addrList)}">
${fns:stringFormat(log.addrList,30)}
<%-- <td>
${log.addrList}
</td> --%>
<td title="${log.serverLocate}">${fns:abbr(log.serverLocate,20)}</td>
<td title="${log.clientLocate}">${fns:abbr(log.clientLocate,20)}</td>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>
</c:forEach>
</tbody>

View File

@@ -224,14 +224,12 @@ $(document).ready(function(){
<%-- <c:if test="${fn:startsWith(log.url, 'http')}">${log.url }</c:if>
<c:if test="${!fn:startsWith(log.url, 'http')}">http://${log.url }</c:if> --%>
<c:if test="${fn:startsWith(log.url, 'http')}">
<c:set var="url" value="${log.url }"/>
${log.url}
</c:if>
<c:if test="${!fn:startsWith(log.url, 'http')}">
<c:set var="url" value="http://${log.url }"/>
http://${log.url}
</c:if>
<span title="${fns:escapeHtml(url)}">
${fns:stringFormat(url,30)}
</span>
</td>
<td>
<c:if test="${fn:startsWith(log.logUri, 'http')}">
@@ -240,13 +238,17 @@ $(document).ready(function(){
<c:if test="${!fn:startsWith(log.logUri, 'http')}">
<c:set var="logUri" value="http://${log.logUri }"/>
</c:if>
<a target="_blank" href='${fns:escapeHtml(logUri)}' title="${fns:escapeHtml(logUri)}">
${fns:stringFormat(logUri,30)}
<%-- <a target="_blank" href='${logUri}' title="${logUri}"> --%>
<%-- ${fn:substring(logUri,0,20)} --%>
<!-- </a> -->
<a href="${logUri}" target="_blank" data-original-title="${logUri}"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fn:substring(logUri,0,20) }
</a>
<%-- <c:if test="${fn:startsWith(log.logUri, \"http\")}">${log.logUri }</c:if>
<c:if test="${!fn:startsWith(log.logUri, \"http\")}">http://${log.logUri }</c:if>'>http://${log.logUri }</a> --%>
</td>
<td title="${fns:escapeHtml(log.refer)}">${fns:stringFormat(log.refer,30)}</td>
<td>${log.refer}</td>
<td>${log.level}</td>
<!--0动态黑名单FD1静态配置FD2首次分析命中 -->
<td>
@@ -278,7 +280,7 @@ $(document).ready(function(){
<c:if test="${log.streamDir==dic.itemCode}"><spring:message code="${dic.itemValue }"/></c:if>
</c:forEach>
</td>
<%-- <td title="${fns:escapeHtml(log.addrList)}">${fns:stringFormat(log.addrList,30)}</td> --%>
<%-- <td>${log.addrList}</td> --%>
<td>${log.serverLocate}</td>
<td>${log.clientLocate}</td>
</tr>