日志趋势添加servicID查询条件
This commit is contained in:
@@ -172,9 +172,10 @@ var GetLogTotal=function(_data){
|
||||
var hasLog=false;
|
||||
for(var i=0;i<data.length;i++){
|
||||
if($(this).attr("compileId")==data[i].compileId){
|
||||
var serviceId= $(this).attr("serviceId");
|
||||
$(this).attr("id",i+"logTotal");
|
||||
//$(this).html(data[i].sum);
|
||||
$(this).html("<a href='javascript:;' onclick='logSearch(\""+data[i].compileId+"\")'>"+data[i].sum+"<a>");
|
||||
$(this).html("<a href='javascript:;' onclick='logSearch(\""+data[i].compileId+"\",\""+serviceId+"\")'>"+data[i].sum+"<a>");
|
||||
$(this).parent("tr").find("td:eq(1)").html("<a href='javascript:;' onclick='toLogSearch("+i+")'>"+data[i].compileId+"<a>");
|
||||
hasLog=true;
|
||||
}
|
||||
@@ -652,10 +653,10 @@ function setStartTimeByFormat(startTimeSelector,endTimeSelector,granule,unit,for
|
||||
$(endTimeSelector).val(dateFtt(formatParm,endTime)+endStr);
|
||||
}
|
||||
|
||||
function logSearch(cfgId){
|
||||
function logSearch(cfgId,serviceId){
|
||||
var title=$.validator.messages.log_trend;
|
||||
var url=$("#jbox_cfg_url",parent.document).val();
|
||||
url=url+"?cfgId="+cfgId;
|
||||
url=url+"?cfgId="+cfgId+"&serviceId="+serviceId;
|
||||
top.$.jBox("iframe:"+url, {
|
||||
title: title,
|
||||
width: $(document).width()*0.8,
|
||||
|
||||
Reference in New Issue
Block a user