注释流量统计详情界面定时刷新任务,防止跟查询条件不一致,界面统一标题下加一条横线
This commit is contained in:
@@ -98,9 +98,9 @@
|
|||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
});
|
});
|
||||||
|
|
||||||
setInterval(function(){
|
// setInterval(function(){
|
||||||
actionTransAjax($("#searchAction").val(),starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
// actionTransAjax($("#searchAction").val(),starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
||||||
},500000);// 五分钟调用一次
|
// },500000);// 五分钟调用一次
|
||||||
});
|
});
|
||||||
function searchList() {
|
function searchList() {
|
||||||
// loading();
|
// loading();
|
||||||
@@ -113,22 +113,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 局点信息
|
// 局点信息
|
||||||
function showActionTransChart(rs) {
|
function showActionTransChart(xData,series) {
|
||||||
var data = new Array();
|
|
||||||
var xData = new Array();
|
|
||||||
xData = rs.statTime;
|
|
||||||
var series = new Array();
|
|
||||||
|
|
||||||
var total = 0;
|
|
||||||
$(rs.sum).each(function(i,d) {
|
|
||||||
total+=d
|
|
||||||
})
|
|
||||||
|
|
||||||
$("#total").val(JSON.stringify(total));
|
|
||||||
series.push({
|
|
||||||
name: 'sum',
|
|
||||||
data: rs.sum
|
|
||||||
});
|
|
||||||
var chart = Highcharts.chart('chart',
|
var chart = Highcharts.chart('chart',
|
||||||
{
|
{
|
||||||
chart : {
|
chart : {
|
||||||
@@ -211,10 +197,25 @@
|
|||||||
url : "${ctx}/dashboard/traffic/ajaxNtcTotalReportDetail?searchAction="+searchAction+"&beginDate="+beginDate+"&endDate="+endDate,
|
url : "${ctx}/dashboard/traffic/ajaxNtcTotalReportDetail?searchAction="+searchAction+"&beginDate="+beginDate+"&endDate="+endDate,
|
||||||
type : "get",
|
type : "get",
|
||||||
dataType : "json",
|
dataType : "json",
|
||||||
cache : false,
|
|
||||||
async : false,
|
async : false,
|
||||||
success : function(rs) {
|
success : function(rs) {
|
||||||
showActionTransChart(rs);
|
var data = new Array();
|
||||||
|
var xData = new Array();
|
||||||
|
var series = new Array();
|
||||||
|
var total = 0;
|
||||||
|
if(rs!=null){
|
||||||
|
$(rs.sum).each(function(i,d) {
|
||||||
|
total+=d
|
||||||
|
})
|
||||||
|
xData = rs.statTime;
|
||||||
|
data =rs.sum;
|
||||||
|
}
|
||||||
|
$("#total").val(JSON.stringify(total));
|
||||||
|
series.push({
|
||||||
|
name: 'sum',
|
||||||
|
data: data
|
||||||
|
});
|
||||||
|
showActionTransChart(xData,series);
|
||||||
closeTip();
|
closeTip();
|
||||||
},
|
},
|
||||||
error : function(data, textStatus, errorThrown) {
|
error : function(data, textStatus, errorThrown) {
|
||||||
@@ -273,8 +274,6 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
}(Highcharts));
|
}(Highcharts));
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="${searchAction}"></spring:message>
|
<spring:message code="${searchAction}"></spring:message>
|
||||||
</h3>
|
</h3>
|
||||||
|
<h5 class="page-header"></h5>
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
<form:form id="searchForm" method="get" class="form-search">
|
<form:form id="searchForm" method="get" class="form-search">
|
||||||
<!-- 搜索内容与操作按钮栏 -->
|
<!-- 搜索内容与操作按钮栏 -->
|
||||||
@@ -80,9 +81,9 @@ $(document).ready(function(){
|
|||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
});
|
});
|
||||||
|
|
||||||
setInterval(function(){
|
// setInterval(function(){
|
||||||
actionTransAjax($("#searchAction").val(),starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
// actionTransAjax($("#searchAction").val(),starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
||||||
},500000);// 五分钟调用一次
|
// },500000);// 五分钟调用一次
|
||||||
});
|
});
|
||||||
function searchList(){
|
function searchList(){
|
||||||
loading();
|
loading();
|
||||||
|
|||||||
@@ -132,9 +132,9 @@ $(document).ready(function(){
|
|||||||
$(".Wdate").attr("value",'');
|
$(".Wdate").attr("value",'');
|
||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
});
|
});
|
||||||
setInterval(function(){
|
// setInterval(function(){
|
||||||
ajaxAppList(starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
// ajaxAppList(starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
||||||
},500000);// 五分钟调用一次
|
// },500000);// 五分钟调用一次
|
||||||
});
|
});
|
||||||
function searchList(){
|
function searchList(){
|
||||||
loading();
|
loading();
|
||||||
|
|||||||
@@ -99,9 +99,9 @@ $(document).ready(function(){
|
|||||||
changeBandwidth($("#unitType").val(),$("#beginDate").val(),$("#endDate").val());
|
changeBandwidth($("#unitType").val(),$("#beginDate").val(),$("#endDate").val());
|
||||||
});
|
});
|
||||||
|
|
||||||
setInterval(function(){
|
// setInterval(function(){
|
||||||
changeBandwidth($("#unitType").val(),$("#beginDate").val(),new Date().Format("yyyy-MM-dd HH:mm:00"));
|
// changeBandwidth($("#unitType").val(),$("#beginDate").val(),new Date().Format("yyyy-MM-dd HH:mm:00"));
|
||||||
},500000);// 五分钟调用一次
|
// },500000);// 五分钟调用一次
|
||||||
|
|
||||||
//筛选功能初始化
|
//筛选功能初始化
|
||||||
$("#resetBtn").on("click",function(){
|
$("#resetBtn").on("click",function(){
|
||||||
|
|||||||
@@ -110,9 +110,9 @@ $(document).ready(function(){
|
|||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
});
|
});
|
||||||
|
|
||||||
setInterval(function(){
|
// setInterval(function(){
|
||||||
ajaxProtocolList(starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
// ajaxProtocolList(starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
||||||
},500000);// 五分钟调用一次
|
// },500000);// 五分钟调用一次
|
||||||
});
|
});
|
||||||
function searchList(){
|
function searchList(){
|
||||||
var start=$("#beginDate").val();
|
var start=$("#beginDate").val();
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="traffic_ipactive_hour_trend"></spring:message>
|
<spring:message code="traffic_ipactive_hour_trend"></spring:message>
|
||||||
</h3>
|
</h3>
|
||||||
|
<h5 class="page-header"></h5>
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
<form:form id="searchForm" action="${ctx}/traffic/ipActiveList" method="get" class="form-search">
|
<form:form id="searchForm" action="${ctx}/traffic/ipActiveList" method="get" class="form-search">
|
||||||
<input id="beginDateh" type="hidden" value="${beginDate}"/>
|
<input id="beginDateh" type="hidden" value="${beginDate}"/>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
<spring:message code="active_port"></spring:message>
|
<spring:message code="active_port"></spring:message>
|
||||||
</h3>
|
</h3>
|
||||||
|
<h5 class="page-header"></h5>
|
||||||
<div class="row" >
|
<div class="row" >
|
||||||
<form:form id="searchForm" action="${ctx}/dashboard/portActiveList" method="get" class="form-search">
|
<form:form id="searchForm" action="${ctx}/dashboard/portActiveList" method="get" class="form-search">
|
||||||
<input id="beginDateh" type="hidden" value="${beginDate}"/>
|
<input id="beginDateh" type="hidden" value="${beginDate}"/>
|
||||||
|
|||||||
@@ -123,9 +123,9 @@ $(document).ready(function(){
|
|||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
});
|
});
|
||||||
|
|
||||||
setInterval(function(){
|
// setInterval(function(){
|
||||||
ajaxProtocolList(starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
// ajaxProtocolList(starth,new Date().Format("yyyy-MM-dd HH:mm:00"));
|
||||||
},500000);// 五分钟调用一次
|
// },500000);// 五分钟调用一次
|
||||||
});
|
});
|
||||||
function searchList(){
|
function searchList(){
|
||||||
loading();
|
loading();
|
||||||
|
|||||||
@@ -186,10 +186,10 @@
|
|||||||
});
|
});
|
||||||
ajaxWebTypeList(starth, endh);
|
ajaxWebTypeList(starth, endh);
|
||||||
|
|
||||||
setInterval(function() {
|
// setInterval(function() {
|
||||||
ajaxWebTypeList(starth, new Date()
|
// ajaxWebTypeList(starth, new Date()
|
||||||
.Format("yyyy-MM-dd HH:mm:00"));
|
// .Format("yyyy-MM-dd HH:mm:00"));
|
||||||
}, 500000);// 五分钟调用一次
|
// }, 500000);// 五分钟调用一次
|
||||||
});
|
});
|
||||||
function searchList() {
|
function searchList() {
|
||||||
var start = $("#beginDate").val();
|
var start = $("#beginDate").val();
|
||||||
|
|||||||
Reference in New Issue
Block a user