From 3602e2f1c3c5f5638e3357fee49620b02cb719ee Mon Sep 17 00:00:00 2001
From: zhanghongqing
Date: Mon, 21 Jan 2019 14:41:41 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B5=81=E9=87=8F=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=95=B0=E6=8D=AE=E5=88=97?=
=?UTF-8?q?=E5=AF=B9=E9=BD=90=EF=BC=8Ctraffic=E4=B8=AD/S=E6=94=B9=E4=B8=BA?=
=?UTF-8?q?/s=EF=BC=8C=E8=AF=B7=E6=B1=82=E6=96=B9=E6=B3=95=E6=94=B9?=
=?UTF-8?q?=E4=B8=BApost=E9=98=B2=E6=AD=A2=E7=BC=93=E5=AD=98=EF=BC=8C?=
=?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=97=B6=E9=97=B4=E6=94=B9=E4=B8=BA5?=
=?UTF-8?q?=E5=88=86=E9=92=9F=E4=B8=80=E6=AC=A1=EF=BC=8Ctraffic=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E4=B8=BA=E5=BD=93=E5=89=8D=E6=97=B6=E9=97=B415?=
=?UTF-8?q?=E5=88=86=E9=92=9F=E5=86=85=E6=95=B0=E6=8D=AE=EF=BC=8C=E5=85=B6?=
=?UTF-8?q?=E5=AE=83=E6=BB=9A=E5=8A=A8=E6=9D=A1=E4=B8=BA=E5=BD=93=E5=89=8D?=
=?UTF-8?q?=E6=97=B6=E9=97=B4=E4=B8=80=E5=B0=8F=E6=97=B6=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/dashboard/dashBoardIndex.jsp | 32 +++++++++----------
.../views/dashboard/trafficBandwidthList.jsp | 2 +-
.../webapp/static/pages/css/dashboard.css | 4 +--
3 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/main/webapp/WEB-INF/views/dashboard/dashBoardIndex.jsp b/src/main/webapp/WEB-INF/views/dashboard/dashBoardIndex.jsp
index de3a6d5f1..fafe8fe99 100644
--- a/src/main/webapp/WEB-INF/views/dashboard/dashBoardIndex.jsp
+++ b/src/main/webapp/WEB-INF/views/dashboard/dashBoardIndex.jsp
@@ -80,7 +80,7 @@ body {
@@ -402,7 +402,7 @@ $(document).ready(function(){
ajaxinfo();
setInterval(function(){
ajaxinfo();
- },300000);
+ },1000*60*5);
protocolList();//协议统计
ipActiveList();//活跃IP
@@ -428,7 +428,7 @@ $(document).ready(function(){
function ajaxinfo(){
$.ajax({
url:'${ctx}/dashboard/traffic/info',
- type : "get" ,
+ type : "post" ,
dataType:'json',
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (data){
@@ -510,11 +510,11 @@ function ajaxinfo(){
$(".c2sNum").text(inoctetsNum);
$(".s2cNum").text(outoctetsNum);
- $(".numberRun4-unit").text(" "+unit);
+// $(".numberRun4-unit").text(" "+unit);
bandwidth=parseFloat(inoctetsNum)+parseFloat(outoctetsNum);
dataScroll2(".numberRun4",bandwidth);
-
+ $(".numberRun4").append(" "+unit);
},
});
}
@@ -552,7 +552,7 @@ function protocolList(){
loading();
$.ajax({
url: '${ctx}/dashboard/protocol',
- type : "get" ,
+ type : "post" ,
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
@@ -575,7 +575,7 @@ function ipActiveList(){
loading();
$.ajax({
url: '${ctx}/dashboard/ipActive',
- type : "get" ,
+ type : "post" ,
dataType:"json",
cache:false,
async:true,
@@ -600,7 +600,7 @@ function portActiveList(){
loading();
$.ajax({
url: '${ctx}/dashboard/portActive',
- type : "get" ,
+ type : "post" ,
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
beforeSend: function () {
@@ -661,7 +661,7 @@ function appTypeList(){
loading();
$.ajax({
url: '${ctx}/dashboard/app',
- type : "get" ,
+ type : "post" ,
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
@@ -684,7 +684,7 @@ function systemList(){
loading();
$.ajax({
url: '${ctx}/dashboard/osList',
- type : "get" ,
+ type : "post" ,
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
beforeSend: function () {
@@ -758,7 +758,7 @@ function osClick(osType,obj){
$.ajax({
url: '${ctx}/dashboard/browserChart',
- type : "get" ,
+ type : "post" ,
data:{"osType":osType},
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
@@ -779,7 +779,7 @@ function bsClick(bsType,obj){
$(obj).addClass("activeColor");
$.ajax({
url: '${ctx}/dashboard/systemChart',
- type : "get" ,
+ type : "post" ,
data:{"bsType":bsType},
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
@@ -800,7 +800,7 @@ function browserList() {
loading();
$.ajax({
url: '${ctx}/dashboard/bsList',
- type : "get" ,
+ type : "post" ,
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
beforeSend: function () {
@@ -864,7 +864,7 @@ function websiteList() {
loading();
$.ajax({
url: '${ctx}/dashboard/websiteList',
- type : "get" ,
+ type : "post" ,
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
beforeSend: function () {
@@ -932,7 +932,7 @@ function webClick(websiteServiceId,obj){
$(obj).addClass("activeColor");
$.ajax({
url: '${ctx}/dashboard/webTypeChart',
- type : "get" ,
+ type : "post" ,
data:{"websiteServiceId":websiteServiceId},
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
@@ -950,7 +950,7 @@ function topicAndDomainList(){
loading();
$.ajax({
url: '${ctx}/dashboard/topicAndDomainList',
- type : "get" ,
+ type : "post" ,
dataType:"json",
cache:false,async:true,timeout:60000,//超时时间设置,查询接口时间过长超时
success:function (rs) {
diff --git a/src/main/webapp/WEB-INF/views/dashboard/trafficBandwidthList.jsp b/src/main/webapp/WEB-INF/views/dashboard/trafficBandwidthList.jsp
index e65e4e8ee..a2b750c3f 100644
--- a/src/main/webapp/WEB-INF/views/dashboard/trafficBandwidthList.jsp
+++ b/src/main/webapp/WEB-INF/views/dashboard/trafficBandwidthList.jsp
@@ -61,7 +61,7 @@
diff --git a/src/main/webapp/static/pages/css/dashboard.css b/src/main/webapp/static/pages/css/dashboard.css
index daad1b640..af9082ff4 100644
--- a/src/main/webapp/static/pages/css/dashboard.css
+++ b/src/main/webapp/static/pages/css/dashboard.css
@@ -1,7 +1,7 @@
/*数字滚动插件的CSS可调整样式*/
-.mt-number-animate{ font-family: 'Microsoft YaHei'; line-height:20px; height: 20px;/*设置数字显示高度*/; /*设置数字大小*/ overflow: hidden; display: inline-block; position: relative; }
+.mt-number-animate{ font-family: 'Microsoft YaHei'; line-height:20px; height: 16px;/*设置数字显示高度*/; /*设置数字大小*/ overflow: hidden; display: inline-block; position: relative; }
.mt-number-animate .mt-number-animate-dot{ width: 10px;/*设置分割符宽度*/ line-height: 20px; float: left; text-align: center;}
-.mt-number-animate .mt-number-animate-dom{ width: 10px;/*设置单个数字宽度*/ text-align: center; float: left; position: relative; top: 3px;}
+.mt-number-animate .mt-number-animate-dom{ width: 10px;/*设置单个数字宽度*/ text-align: center; float: left; position: relative; top: -1px;}
.mt-number-animate .mt-number-animate-dom .mt-number-animate-span{ width: 100%; float: left;}