From dfcbcecf47adce84376b6c5163f06d5b4ab9c018 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 25 Feb 2019 13:55:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B2=E8=81=94=E8=AE=BE=E5=A4=87=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=9B=BEY=E8=BD=B4=E6=98=BE=E7=A4=BA=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inlineSwitchportMonitorInfo.jsp | 47 +++++++++++++++++-- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/WebRoot/page/detection/monitorData/inlineSwitchportMonitorInfo.jsp b/WebRoot/page/detection/monitorData/inlineSwitchportMonitorInfo.jsp index b9e94f5..feb8664 100644 --- a/WebRoot/page/detection/monitorData/inlineSwitchportMonitorInfo.jsp +++ b/WebRoot/page/detection/monitorData/inlineSwitchportMonitorInfo.jsp @@ -143,7 +143,7 @@ var policeValue; var xtilte=""; var ytitle=""; - + var metaName=""; function getPicScorce(metaid,drwTo){ var lns = ""; $(".checks:checked").each(function() { @@ -177,6 +177,7 @@ xtitle = datas[0].xtitle; ytitle = datas[0].ytitle; policeValue = datas[0].policeVal; + metaName = datas[0].metaName; var lines = datas[1].lines; seriesOptions = []; if(lines[0].data==null || lines[0].data.length==0){// 针对丢包数,仅显示一条折线 @@ -248,8 +249,8 @@ //startOfWeek: 50, labels : { rotation : 20, - y : 20, - x : 20 + y : 30, + x : 30 }, dateTimeLabelFormats: { second: '%Y-%m-%d %H:%M:%S', @@ -266,7 +267,35 @@ text : ytitle }, minorTickInterval: 'auto', - min:0, + labels: { + formatter:function(){ + if(metaName.endWith("speed")){ + if(0this.length) + return false; + if(this.substring(this.length-str.length)==str) + return true; + else + return false; + return true; + }