流量统计-统计页面 增加查询失败界面的提示信息
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||
|
||||
<div id="errorTipDiv" style="display: none;padding-top: 3px;"><sys:message content="server_internal_error"/></div>
|
||||
<div id="chart" style="width:97%;height:550px;"></div>
|
||||
|
||||
|
||||
@@ -268,12 +268,17 @@ function showActionTransChart(chartType,xData,series){
|
||||
}
|
||||
$("#total").val(JSON.stringify(total));
|
||||
showActionTransChart(chartType,xData,series);
|
||||
$("#errorTipDiv").hide();
|
||||
closeTip();
|
||||
},
|
||||
error: function(data, textStatus, errorThrown){
|
||||
$("#errorTipDiv").show();
|
||||
closeTip();
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
if(status == 'timeout'){
|
||||
$("#errorTipDiv").show();
|
||||
}
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
</style>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div id="errorTipDiv" style="display: none;padding-top: 3px;"><sys:message content="server_internal_error"/></div>
|
||||
<div class="row">
|
||||
<div id="chart" style="width:98%;height: 510px; -moz-user-select: none; position: relative;"></div>
|
||||
</div>
|
||||
@@ -109,6 +109,7 @@ function ajaxClientIPList(start,end,entranceId){
|
||||
pageJuan(20);//初始化分页
|
||||
clientIPChart(data,chartType);// 初始化图
|
||||
closeTip();
|
||||
$("#errorTipDiv").hide();
|
||||
if(data!= null&&data.length<1){
|
||||
$(".none-data").show();
|
||||
$('.pageView').hide();
|
||||
@@ -118,9 +119,13 @@ function ajaxClientIPList(start,end,entranceId){
|
||||
}
|
||||
},
|
||||
error: function(data, textStatus, errorThrown){
|
||||
$("#errorTipDiv").show();
|
||||
closeTip();
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
if(status == 'timeout'){
|
||||
$("#errorTipDiv").show();
|
||||
}
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
</style>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div id="errorTipDiv" style="display: none;padding-top: 3px;"><sys:message content="server_internal_error"/></div>
|
||||
<div class="row">
|
||||
<div id="chart" style="width:98%;height: 510px; -moz-user-select: none; position: relative;"></div>
|
||||
</div>
|
||||
@@ -109,6 +109,7 @@ function ajaxServerIPList(start,end,entranceId){
|
||||
pageJuan(20);//初始化分页
|
||||
serverIPChart(data,chartType);// 初始化图
|
||||
closeTip();
|
||||
$("#errorTipDiv").hide();
|
||||
if(data!= null&&data.length<1){
|
||||
$(".none-data").show();
|
||||
$('.pageView').hide();
|
||||
@@ -118,9 +119,13 @@ function ajaxServerIPList(start,end,entranceId){
|
||||
}
|
||||
},
|
||||
error: function(data, textStatus, errorThrown){
|
||||
$("#errorTipDiv").show();
|
||||
closeTip();
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
if(status == 'timeout'){
|
||||
$("#errorTipDiv").show();
|
||||
}
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
</style>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div id="errorTipDiv" style="display: none;padding-top: 3px;"><sys:message content="server_internal_error"/></div>
|
||||
<div class="row">
|
||||
<div id="chart" style="width:98%;height: 510px; -moz-user-select: none; position: relative;"></div>
|
||||
</div>
|
||||
@@ -111,6 +111,7 @@ function ajaxAppList(start,end,entranceId){
|
||||
pageJuan(20);//初始化分页
|
||||
appTypeChart(data,chartType);// 初始化图
|
||||
closeTip();
|
||||
$("#errorTipDiv").hide();
|
||||
if(data!= null&&data.length<1){
|
||||
$(".none-data").show();
|
||||
$('.pageView').hide();
|
||||
@@ -120,9 +121,13 @@ function ajaxAppList(start,end,entranceId){
|
||||
}
|
||||
},
|
||||
error: function(data, textStatus, errorThrown){
|
||||
$("#errorTipDiv").show();
|
||||
closeTip();
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
if(status == 'timeout'){
|
||||
$("#errorTipDiv").show();
|
||||
}
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||
|
||||
<div id="errorTipDiv" style="display: none;padding-top: 3px;"><sys:message content="server_internal_error"/></div>
|
||||
<div class="row">
|
||||
<div id="chartDiv1" class="col-md-12">
|
||||
<div id="trend" style="height: 500px; position: relative;" >
|
||||
@@ -81,6 +82,7 @@ function changeBandwidth(unitType,beginDate,endDate){
|
||||
var chartType = $("#chartType").val();
|
||||
var timeSize = $(".timeSize:checked").val();
|
||||
var operator=$("#operator_select").val();
|
||||
|
||||
$.ajax({
|
||||
url:"${ctx}/dashboard/traffic/bandWidthTransThreeNew",
|
||||
type:"get",
|
||||
@@ -164,7 +166,7 @@ function changeBandwidth(unitType,beginDate,endDate){
|
||||
}
|
||||
|
||||
showBandwidthChart("chart1",unitType,xdata,series,title,chartType);
|
||||
|
||||
$("#errorTipDiv").hide();
|
||||
/* if(data!=null&&Object.keys(data).length>0){
|
||||
ipv4data2=data.ipv4Type2.result;
|
||||
ipv6data2=data.ipv6Type2.result;
|
||||
@@ -216,9 +218,15 @@ function changeBandwidth(unitType,beginDate,endDate){
|
||||
// closeTip();
|
||||
},
|
||||
error: function(data, textStatus, errorThrown){
|
||||
// alert("error");
|
||||
$("#errorTipDiv").show();
|
||||
closeTip();
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
// alert("complete");
|
||||
if(status == 'timeout'){
|
||||
$("#errorTipDiv").show();
|
||||
}
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
<div id="errorTipDiv" style="display: none;padding-top: 3px;"><sys:message content="server_internal_error"/></div>
|
||||
<div class="row" >
|
||||
<div id="chart" style="width:98%;height: 510px; -moz-user-select: none; position: relative;"></div>
|
||||
</div>
|
||||
@@ -124,6 +124,7 @@
|
||||
getPageData(1, 20);//初始化第一页的数据
|
||||
pageJuan(20);//初始化分页
|
||||
closeTip();
|
||||
$("#errorTipDiv").hide();
|
||||
if (data != null && data.length < 1) {
|
||||
$(".none-data").show();
|
||||
$('.pageView').hide();
|
||||
@@ -133,9 +134,13 @@
|
||||
}
|
||||
},
|
||||
error : function(data, textStatus, errorThrown) {
|
||||
$("#errorTipDiv").show();
|
||||
closeTip();
|
||||
},
|
||||
complete : function(XMLHttpRequest, status) {//超时设置
|
||||
if(status == 'timeout'){
|
||||
$("#errorTipDiv").show();
|
||||
}
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<div id="errorTipDiv" style="display: none;padding-top: 3px;"><sys:message content="server_internal_error"/></div>
|
||||
<div class="row">
|
||||
<div id="chart" style="width:98%;height: 510px; -moz-user-select: none; position: relative;"></div>
|
||||
</div>
|
||||
@@ -111,6 +112,7 @@ function ajaxProtocolList(start,end,entranceId){
|
||||
pageJuan(20);//初始化分页
|
||||
protocolTypeChart(data,chartType);// 初始化图
|
||||
closeTip();
|
||||
$("#errorTipDiv").hide();
|
||||
if(data!= null&&data.length<1){
|
||||
$(".none-data").show();
|
||||
$('.M-box').hide();
|
||||
@@ -120,9 +122,13 @@ function ajaxProtocolList(start,end,entranceId){
|
||||
}
|
||||
},
|
||||
error: function(data, textStatus, errorThrown){
|
||||
$("#errorTipDiv").show();
|
||||
closeTip();
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
if(status == 'timeout'){
|
||||
$("#errorTipDiv").show();
|
||||
}
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
</style>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div id="errorTipDiv" style="display: none;padding-top: 3px;"><sys:message content="server_internal_error"/></div>
|
||||
<div class="row">
|
||||
<div id="chart" style="width:98%;height: 510px; -moz-user-select: none; position: relative;"></div>
|
||||
</div>
|
||||
@@ -109,6 +109,7 @@ function ajaxSubscriberIDList(start,end,entranceId){
|
||||
pageJuan(20);//初始化分页
|
||||
subscriberIDChart(data,chartType);// 初始化图
|
||||
closeTip();
|
||||
$("#errorTipDiv").hide();
|
||||
if(data!= null&&data.length<1){
|
||||
$(".none-data").show();
|
||||
$('.pageView').hide();
|
||||
@@ -118,9 +119,13 @@ function ajaxSubscriberIDList(start,end,entranceId){
|
||||
}
|
||||
},
|
||||
error: function(data, textStatus, errorThrown){
|
||||
$("#errorTipDiv").show();
|
||||
closeTip();
|
||||
},
|
||||
complete:function(XMLHttpRequest,status){//超时设置
|
||||
if(status == 'timeout'){
|
||||
$("#errorTipDiv").show();
|
||||
}
|
||||
closeTip();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user