日志增加日志详细信息查看功能

This commit is contained in:
duandongmei
2018-08-02 14:38:41 +08:00
parent 7894d13bec
commit abeb66b2d1
3 changed files with 39 additions and 1 deletions

View File

@@ -177,7 +177,9 @@
<tbody>
<c:forEach var="_log" items="${page.list }" varStatus="status">
<tr>
<td>${_log.cfgId }</td>
<td>${_log.cfgId }
<a href="javascript:void(0)" name="viewLogInfo"><i class="icon-book-open"></i></a>
</td>
<td>
<c:if test="${_log.action eq 16 }"><spring:message code="action_reject"/></c:if>
<c:if test="${_log.action eq 1 }"><spring:message code="action_monit"/></c:if>

View File

@@ -22235,7 +22235,22 @@ Color library demo
padding-top:10px;
}
.logInfo {
padding-left:25px;
padding-top:10px;
}
.logInfo label {
padding-left: 5px;
cursor: pointer;
vertical-align: middle;
}
.customColumnList label {

View File

@@ -1,4 +1,25 @@
$(function(){
$("a[name=viewLogInfo]>i").on("click",function(){
var html = "<div class='logInfo'>";
$(this).parents("tr").find("td").each(function(index,element){
if(index >0){
var text="";
if($(element).find(".tooltips").length > 0){
text=$(element).find(".tooltips").attr("data-original-title").trim();
}else{
text=$(element).text().trim()
}
html+="<div class='row col-md-12'>";
html+="<div class='col-md-4'><label>"+$(".table tr th").eq(index).text().trim()+":</label></div>";
html+="<div class='col-md-6'><label>"+text+"</label></div>";
html+="</div>";
}
})
html +="</div>";
top.$.jBox(html,{height:400,width:400,title:"<i class='icon-book-open'></i> Log Info",showIcon:false,opacity:0.5});
})
var tree2 = $("select[name=lableTest]").treeMultiselect({
searchable: true,
hideSidePanel:true,