日志查询添加配置信息

This commit is contained in:
leijun
2018-12-11 11:12:23 +08:00
parent 22c22c06d6
commit b8804d5d98
37 changed files with 397 additions and 102 deletions

View File

@@ -67,6 +67,28 @@ $(function(){
setIsHexBin(this);
});
$("a[name=viewLogInfo]>i").on("click",function(){
var url=$(this).parents("a").attr("url");
var compileId=$(this).parents("a").attr("compileId");
var pzhtml="";
var index="0";
if((url!=null && url!='') && (compileId !=null && compileId!='')){
$.ajax({
type:'post',
async:false,
url:url,
data:{"compileId":compileId,"index":index},
dataType:"html",
success:function(data){
var subTab="";
var htmls="";
htmls+="<div class='row'>";
htmls = htmls+data;
subTab=subTab+htmls;
pzhtml=subTab;
}
});
}
var html = "<div class='logInfo'>";
$(this).parents("tr").find("td").each(function(index,element){
if(index >0){
@@ -88,12 +110,21 @@ $(function(){
html+="<div class='col-md-4'><label>"+$(".table tr th").eq(index).text().trim()+":</label></div>";
html+="<div class='col-md-6' style='width:330px;display:block;word-break:break-all;word-wrap:break-word;'><label>"+text+"</label></div>";
html+="</div>";
}
})
html +="</div>";
top.$.jBox(html,{height:450,width:600,title:"<i class='icon-book-open'></i> Log Info",showIcon:false,opacity:0.5});
if(pzhtml!=null && pzhtml!=""){
html+="<hr style='width: 105%;margin-left: -5%;border-top: 1px solid #c5c5c5;' />";
html+="<div style='width:100%'>"
html+=pzhtml;
html +='<script>';
html +='$(document).ready(function() {'
html +=" document.getElementsByName('tabTitle0')[0].click();";
html +="})";
html +="</script>";
html+="</div>"
}
html +="</br></div>";
top.$.jBox(html,{height:450,width:700,title:"<i class='icon-book-open'></i> Log Info",showIcon:false,opacity:0.5});
});
//表格中的tooltips鼠标点击复制完整的内容
$("td>.tooltips").not(".addrPool").on("click",function(){