修复系统日志中异常日志显示不全的问题
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
</tr>
|
||||
<c:if test="${not empty log.exception}">
|
||||
<tr>
|
||||
<td colspan="8"
|
||||
<td colspan="8" class="SysException"
|
||||
style="word-wrap: break-word; word-break: break-all;">
|
||||
<%-- 用户代理: ${log.userAgent}<br/> --%> <%-- 提交参数: ${fns:escapeHtml(log.params)} <br/> --%>
|
||||
<spring:message code="log_exception_info" />:<br />
|
||||
|
||||
@@ -61,7 +61,7 @@ $(function(){
|
||||
$("form input[class~='domainCheck']").attr("maxlength","1024");
|
||||
$("form input[class~='domainCheck']").attr("minlength","4");
|
||||
//截取过长的文字 使用id选择器;例如:tab对象->tr->td对象. 排除日志table .logTb
|
||||
$("#contentTable").find("td").not(":has(a)").each(function(i,element){
|
||||
$("#contentTable").find("td").not(":has(a)").not(".SysException").each(function(i,element){
|
||||
//获取td当前对象的文本,如果长度大于25;
|
||||
if(!$(element).find(".tooltips").length>0){
|
||||
var tdclass= $(this).attr("class");//no_substr 不进行截取
|
||||
@@ -85,6 +85,31 @@ $(function(){
|
||||
}
|
||||
});
|
||||
|
||||
$("#contentTable").find("td.SysException").each(function(i,element){
|
||||
//获取td当前对象的文本,如果长度大于25;
|
||||
if(!$(element).find(".tooltips").length>0){
|
||||
var tdclass= $(this).attr("class");//no_substr 不进行截取
|
||||
if(tdclass!='no_substr'){
|
||||
if($(this).text().trim().length>100){
|
||||
//给td设置title属性,并且设置td的完整值.给title属性.
|
||||
var strTitle = $(this).text().trim().replace(/[\r\n]/g,"").replace(/\s+/g, " ");;
|
||||
$(this).attr("titleHidden","'"+strTitle+"'"); // 加一个不含换行的隐藏文本方便其它复制处理
|
||||
//解决火狐title不能自动换行
|
||||
var count = Math.floor(strTitle.length/62);
|
||||
for(var i=1;i<=count;i++){
|
||||
strTitle=strTitle.substring(0,i*62-1)+"\n"+strTitle.substring(i*62-1);
|
||||
}
|
||||
$(this).attr("title",strTitle);
|
||||
//获取td的值,进行截取。赋值给text变量保存.
|
||||
var length=$(this).html().length;
|
||||
var text=$(this).html().substring(0,(length/2))+"...";
|
||||
//重新为td赋值;
|
||||
$(this).html(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("input[name$='isCaseSenstive']").on("change",function(){
|
||||
setIsHexBin(this);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user