日志增加日志详细信息查看功能
This commit is contained in:
@@ -177,7 +177,9 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<c:forEach var="_log" items="${page.list }" varStatus="status">
|
<c:forEach var="_log" items="${page.list }" varStatus="status">
|
||||||
<tr>
|
<tr>
|
||||||
<td>${_log.cfgId }</td>
|
<td>${_log.cfgId }
|
||||||
|
<a href="javascript:void(0)" name="viewLogInfo"><i class="icon-book-open"></i></a>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<c:if test="${_log.action eq 16 }"><spring:message code="action_reject"/></c:if>
|
<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>
|
<c:if test="${_log.action eq 1 }"><spring:message code="action_monit"/></c:if>
|
||||||
|
|||||||
@@ -22235,7 +22235,22 @@ Color library demo
|
|||||||
padding-top:10px;
|
padding-top:10px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.logInfo {
|
||||||
|
|
||||||
|
padding-left:25px;
|
||||||
|
|
||||||
|
padding-top:10px;
|
||||||
|
|
||||||
|
}
|
||||||
|
.logInfo label {
|
||||||
|
|
||||||
|
padding-left: 5px;
|
||||||
|
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.customColumnList label {
|
.customColumnList label {
|
||||||
|
|||||||
@@ -1,4 +1,25 @@
|
|||||||
$(function(){
|
$(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({
|
var tree2 = $("select[name=lableTest]").treeMultiselect({
|
||||||
searchable: true,
|
searchable: true,
|
||||||
hideSidePanel:true,
|
hideSidePanel:true,
|
||||||
|
|||||||
Reference in New Issue
Block a user