1.处理配置列表展示关键字换行问题

2.处理日志url 前缀http问题(http,https,ftp直接展示不判断添加http)
This commit is contained in:
zhanghongqing
2018-09-11 15:26:52 +08:00
parent 8f4c43b62e
commit 114c643cd4
5 changed files with 24 additions and 9 deletions

View File

@@ -211,7 +211,11 @@ $(document).ready(function(){
</td>
<td>
<c:if test="${fn:startsWith(log.ftpUrl, 'ftp')}">
<a href="${log.ftpUrl}" data-original-title="${log.ftpUrl}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fn:substring(log.ftpUrl,0,42) }
</a>
<%-- <c:if test="${fn:startsWith(log.ftpUrl, 'ftp')}">
<a href="${log.ftpUrl}" data-original-title="${log.ftpUrl}" target="_blank"
class="tooltips" data-flag="false" data-html="true" data-placement="top">
${fn:substring(log.ftpUrl,0,20) }
@@ -222,7 +226,7 @@ $(document).ready(function(){
class="tooltips" data-flag="false" data-html="true" data-placement="top">
ftp://${fn:substring(log.ftpUrl,0,20) }
</a>
</c:if>
</c:if> --%>
</td>
<td>

View File

@@ -172,7 +172,7 @@
<th><spring:message code="found_time"/></th>
<th><spring:message code="entrance"/></th>
<th>URL</th>
<th> URL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
<th><spring:message code="req_hdr_key"/></th>
<th><spring:message code="req_hdr_file"/></th>
<th><spring:message code="req_body_key"/></th>
@@ -226,12 +226,13 @@
</td>
<td>
<c:if test="${fn:startsWith(log.url, 'http')}">
${log.url}
<%-- <c:if test="${fn:startsWith(log.url, 'http')}">
${log.url}
</c:if>
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
http://${log.url}
</c:if>
</c:if> --%>
</td>
<td>${log.reqHdrKey }</td>
<td>

View File

@@ -151,7 +151,7 @@
<th><spring:message code="cfg_id"/></th>
<th><spring:message code="found_time"/></th>
<th><spring:message code="entrance"/></th>
<th>URL</th>
<th> URL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
<th><spring:message code="clj_ip"/></th>
<th><spring:message code="protocol"/></th>
<th><spring:message code="server_ip"/></th>
@@ -186,12 +186,13 @@
</c:forEach>
</td>
<td>
<c:if test="${fn:startsWith(log.url, 'http')}">
${log.url}
<%-- <c:if test="${fn:startsWith(log.url, 'http')}">
${log.url}
</c:if>
<c:if test="${!fn:startsWith(log.url, 'http') and !empty log.url}">
http://${log.url}
</c:if>
</c:if> --%>
</td>
<td title="${log.capIp }">${fns:abbr(log.capIp, 42)}</td>
<td>${log.transProto }</td>

View File

@@ -82,4 +82,11 @@
padding:0;
margin:-3px 0 0 0;
text-align:center;
}
.keyword-disinline {
width: 1130px;
display: block;
word-break: break-all;
word-wrap: break-word;
white-space: normal;
}

View File

@@ -1,5 +1,4 @@
$(function(){
//扩展jquery增加全局函数
$.ipcommon=function(){
return {};
@@ -465,6 +464,9 @@ $(function(){
})
});
window.onload=function(){
$("span[id^=open]").click(function(){
$("div[class='content']").find("label:lt(2)").addClass("keyword-disinline");//page.css 关键词换行
})
// 配置id的搜索下拉框选择切换
if ($("#searchForm #seltype").val() == 'compileId') {
$("#searchForm #intype").addClass("number");