通联关系增加右上角bps pps的占比
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
</title>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
//reset
|
||||
$("#resetBtn").on("click",function(){
|
||||
$("select.selectpicker").each(function(){
|
||||
@@ -31,14 +32,60 @@
|
||||
$("#"+openId).show();
|
||||
$("#"+closeId).parent().parent().next("tr").hide();
|
||||
});
|
||||
ajaxConnPercent();
|
||||
});
|
||||
|
||||
var ajaxConnPercent=function(){
|
||||
$.ajax({
|
||||
type:'get',
|
||||
url:'${ctx}/log/ntc/connRecordLogs/ajaxConnRecordPercent',
|
||||
data:{
|
||||
"searchFoundStartTime":$("input[name=searchFoundStartTime]").val(),
|
||||
"searchFoundEndTime":$("input[name=searchFoundEndTime]").val(),
|
||||
"searchStreamDir":1
|
||||
},
|
||||
async:true,
|
||||
success:function(data,textStatus){//处理返回结果
|
||||
if(textStatus=="success"){
|
||||
if(data != ""){
|
||||
if(data.success == 'success'){
|
||||
$(".bps").html(data.bps);
|
||||
$(".bpsp").html(data.bpsPercent);
|
||||
$(".pps").html(data.pps);
|
||||
$(".ppsp").html(data.ppsPercent);
|
||||
}else{
|
||||
console.log(data.error);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
}
|
||||
});
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="page-content">
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
</div>
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<div data-service="bps" class="service btn blue" >
|
||||
<span><spring:message code="bps"/></span>
|
||||
(<span class="bps">0</span>)
|
||||
</div>
|
||||
<div data-service="bpsp" class="service btn blue">
|
||||
<span><spring:message code="bps_percent"/></span>
|
||||
(<span class="bpsp">0</span>)
|
||||
</div>
|
||||
<div data-service="pps" class="service btn blue">
|
||||
<span><spring:message code="pps_percent"/></span>
|
||||
(<span class="pps">0</span>)
|
||||
</div>
|
||||
<div data-service="ppsp" class="service btn blue">
|
||||
<span><spring:message code="pps_percent"/></span>
|
||||
(<span class="ppsp">0</span>)
|
||||
</div>
|
||||
</div>
|
||||
<h3 class="page-title">
|
||||
<spring:message code="conn_record"/>
|
||||
</h3>
|
||||
@@ -190,8 +237,10 @@
|
||||
<th class="sort-column app_label"><spring:message code='social_app'/></th>
|
||||
<th class="sort-column c2s_pkt_num"><spring:message code="c2s_pkt_num"/></th>
|
||||
<th class="sort-column s2c_pkt_num"><spring:message code='s2c_pkt_num'/></th>
|
||||
<th class="total_pkt_num">Total Pkt</th>
|
||||
<th class="sort-column c2s_byte_num"><spring:message code="c2s_byte_num"/></th>
|
||||
<th class="sort-column s2c_byte_num"><spring:message code="s2c_byte_num"/></th>
|
||||
<th class="Total_byte_num">Total Byte</th>
|
||||
<th class="sort-column cap_ip" isVisible="false"><spring:message code="clj_ip"/></th>
|
||||
<th class="sort-column trans_proto"><spring:message code="transport_layer_protocol"/></th>
|
||||
<th class="sort-column addr_type"><spring:message code='addr_type'/></th>
|
||||
@@ -258,8 +307,10 @@
|
||||
</td>
|
||||
<td>${log.c2sPktNum }</td>
|
||||
<td>${log.s2cPktNum }</td>
|
||||
<td>${log.s2cPktNum+log.c2sPktNum }</td>
|
||||
<td>${log.c2sByteNum }</td>
|
||||
<td>${log.s2cByteNum }</td>
|
||||
<td>${log.s2cByteNum+log.c2sByteNum }</td>
|
||||
|
||||
<td title="${log.capIp }">${fns:abbr(log.capIp, 42)}</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user