流量统计无数据增加提示信息
This commit is contained in:
@@ -80,6 +80,9 @@
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/offline-exporting.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting-data.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/standalone.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/export-csv.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/no-data-to-display.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
var starth = $("#beginDateh").val();
|
||||
@@ -121,8 +124,15 @@
|
||||
// type: 'area',
|
||||
zoomType : 'x'
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#413333',
|
||||
fontFamily:'Microsoft YaHei',
|
||||
fontWeight:"unset",
|
||||
},
|
||||
},
|
||||
exporting : {
|
||||
filename : 'Action-Trans',
|
||||
filename : '<spring:message code="${searchAction}"></spring:message>'+nowDate.getFullYear()+(nowDate.getMonth()+1)+nowDate.getDate(),
|
||||
scale : 1,
|
||||
sourceWidth : 1280,
|
||||
sourceHeight : 500,
|
||||
@@ -247,7 +257,7 @@
|
||||
var b = new Array();
|
||||
b.push({
|
||||
type : 'string',
|
||||
value : 'Action-Trans'
|
||||
value : '<spring:message code="${searchAction}"></spring:message>'
|
||||
})
|
||||
b.push({
|
||||
type : "string",
|
||||
@@ -258,7 +268,7 @@
|
||||
var a = new Array();
|
||||
a.push({
|
||||
type : 'string',
|
||||
value : 'Total'
|
||||
value : '<spring:message code="total"></spring:message>'
|
||||
})
|
||||
var total = total = JSON.parse($("#total").val());
|
||||
a.push({
|
||||
@@ -267,13 +277,14 @@
|
||||
})
|
||||
xlsxRows.push(a)
|
||||
zipcelx({
|
||||
filename : 'Action-Trans',
|
||||
filename : '<spring:message code="${searchAction}"></spring:message>'+nowDate.getFullYear()+(nowDate.getMonth()+1)+nowDate.getDate(),
|
||||
sheet : {
|
||||
data : xlsxRows
|
||||
}
|
||||
});
|
||||
};
|
||||
}(Highcharts));
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -63,6 +63,8 @@
|
||||
<%-- <script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/themes/grid.js"></script> --%>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting-data.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/standalone.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/no-data-to-display.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
var starth=$("#beginDateh").val();
|
||||
@@ -103,7 +105,7 @@ function showActionTransChart(xData,series){
|
||||
zoomType: 'x'
|
||||
},
|
||||
exporting: {
|
||||
filename:'Action-Trans',
|
||||
filename:'<spring:message code="${searchAction}"></spring:message>',
|
||||
scale:1,
|
||||
sourceWidth: 1280,
|
||||
sourceHeight: 500,
|
||||
@@ -118,6 +120,13 @@ function showActionTransChart(xData,series){
|
||||
}
|
||||
}
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#413333',
|
||||
fontFamily:'Microsoft YaHei',
|
||||
fontWeight:"unset",
|
||||
},
|
||||
},
|
||||
title: {
|
||||
text: null
|
||||
},
|
||||
@@ -188,13 +197,10 @@ function showActionTransChart(xData,series){
|
||||
})
|
||||
}else{
|
||||
series.push({
|
||||
name: "Astana",
|
||||
data: []
|
||||
});
|
||||
series.push({
|
||||
name: "Alamty",
|
||||
name: " ",
|
||||
data: []
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
showActionTransChart(xData,series);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
.Wdate {
|
||||
width: 220px !important;
|
||||
width: 200px !important;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
@@ -114,6 +114,8 @@
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/series-label.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/offline-exporting.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/no-data-to-display.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
loading();
|
||||
@@ -199,7 +201,7 @@ $(".export-btn").click(function(){
|
||||
headings:true,
|
||||
footers:true,
|
||||
formats:[dataType],
|
||||
fileName:"APP",
|
||||
fileName:"<spring:message code='App'></spring:message>",
|
||||
bootstrap:false
|
||||
});
|
||||
$("#myexport").click();
|
||||
@@ -332,15 +334,17 @@ function protocolTypeChart(rs){
|
||||
},
|
||||
exporting: {
|
||||
allowHTML:true,
|
||||
filename:"App",
|
||||
filename:"<spring:message code='App'></spring:message>",
|
||||
scale:1,
|
||||
sourceWidth: 1280,
|
||||
sourceHeight: 500,
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#000',
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#413333',
|
||||
fontFamily:'Microsoft YaHei',
|
||||
fontWeight:"unset",
|
||||
},
|
||||
},
|
||||
// legend:{// 底部平鋪图例
|
||||
// width:1280,
|
||||
|
||||
@@ -85,6 +85,8 @@
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/offline-exporting.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting-data.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/standalone.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/no-data-to-display.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
loading();
|
||||
@@ -254,6 +256,13 @@ function showBandwidthChart(id,unitType,xdata,ydata,title){
|
||||
x: 5
|
||||
}
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#413333',
|
||||
fontFamily:'Microsoft YaHei',
|
||||
fontWeight:"unset",
|
||||
},
|
||||
},
|
||||
exporting: {
|
||||
filename:'Bandwidth',
|
||||
scale:1,
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/offline-exporting.js"></script>
|
||||
<%-- <script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/themes/grid.js"></script> --%>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting-data.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/no-data-to-display.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
domainTrans();
|
||||
@@ -107,6 +109,13 @@ function showDomainTrans(xData,series){
|
||||
}
|
||||
}
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#413333',
|
||||
fontFamily:'Microsoft YaHei',
|
||||
fontWeight:"unset",
|
||||
},
|
||||
},
|
||||
title: {
|
||||
text: domainName
|
||||
},
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- <div class="page">${page}</div> --%>
|
||||
<div class="none-data" ><i class="fa fa-warning font-red-flamingo"></i> <spring:message code="noneData"/></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -109,6 +109,8 @@
|
||||
<%-- <script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/themes/grid.js"></script> --%>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting-data.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/standalone.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/no-data-to-display.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
loading();
|
||||
@@ -145,7 +147,7 @@ $(".export-btn").click(function(){
|
||||
headings:true,
|
||||
footers:true,
|
||||
formats:[dataType],
|
||||
fileName:"IP-Active-2",
|
||||
fileName:"<spring:message code='traffic_ipactive_hour_max'></spring:message>",
|
||||
bootstrap:false
|
||||
});
|
||||
$("#myexport").click();
|
||||
@@ -172,7 +174,7 @@ function showIpActiveChart(xData,series){
|
||||
zoomType: 'x'
|
||||
},
|
||||
exporting: {
|
||||
filename:'IP-Active',
|
||||
filename:'<spring:message code="traffic_ipactive_hour_trend"></spring:message>',
|
||||
scale:1,
|
||||
sourceWidth: 1280,
|
||||
sourceHeight: 500,
|
||||
@@ -198,6 +200,13 @@ function showIpActiveChart(xData,series){
|
||||
text: 'time',
|
||||
align:'high',
|
||||
},
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#413333',
|
||||
fontFamily:'Microsoft YaHei',
|
||||
fontWeight:"unset",
|
||||
},
|
||||
},
|
||||
plotOptions: {
|
||||
series: {
|
||||
@@ -286,6 +295,7 @@ function showIpActiveChart(xData,series){
|
||||
timeout:50000,
|
||||
success:function (data) {
|
||||
if(data!=null&&data.length>0){
|
||||
$('.none-data').hide();
|
||||
var totalc2sByte= 0;
|
||||
var totals2cByte= 0;
|
||||
var totalByte= 0;
|
||||
@@ -335,6 +345,8 @@ function showIpActiveChart(xData,series){
|
||||
|
||||
})
|
||||
|
||||
}else{
|
||||
$('.none-data').show();
|
||||
}
|
||||
closeTip();
|
||||
},
|
||||
|
||||
@@ -60,6 +60,8 @@
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/offline-exporting.js"></script>
|
||||
<%-- <script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/themes/grid.js"></script> --%>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting-data.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/no-data-to-display.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
var starth=$("#beginDateh").val();
|
||||
@@ -112,7 +114,7 @@ function showPortActiveChart(xData,series){
|
||||
zoomType: 'x'
|
||||
},
|
||||
exporting: {
|
||||
filename:'Port-Active',
|
||||
filename:'<spring:message code="active_port"></spring:message>',
|
||||
scale:1,
|
||||
sourceWidth: 1280,
|
||||
sourceHeight: 500,
|
||||
@@ -127,6 +129,13 @@ function showPortActiveChart(xData,series){
|
||||
}
|
||||
}
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#413333',
|
||||
fontFamily:'Microsoft YaHei',
|
||||
fontWeight:"unset",
|
||||
},
|
||||
},
|
||||
plotOptions: {
|
||||
line: {
|
||||
marker: {
|
||||
|
||||
@@ -104,6 +104,8 @@
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/series-label.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/offline-exporting.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/no-data-to-display.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
loading();
|
||||
@@ -193,7 +195,7 @@ $(".export-btn").click(function(){
|
||||
headings:true,
|
||||
footers:true,
|
||||
formats:[dataType],
|
||||
fileName:"Protocol",
|
||||
fileName:"<spring:message code='protocol_type'></spring:message>",
|
||||
bootstrap:false
|
||||
});
|
||||
$("#myexport").click();
|
||||
@@ -327,15 +329,17 @@ function protocolTypeChart(rs){
|
||||
},
|
||||
exporting: {
|
||||
allowHTML:true,
|
||||
filename:"Protocol",
|
||||
filename:"<spring:message code='protocol_type'></spring:message>",
|
||||
scale:1,
|
||||
sourceWidth: 1280,
|
||||
sourceHeight: 500,
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#000',
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color:'#413333',
|
||||
fontWeight:"unset",
|
||||
fontFamily:'Microsoft YaHei',
|
||||
},
|
||||
},
|
||||
// legend:{// 底部平鋪图例
|
||||
// width:1280,
|
||||
|
||||
@@ -166,6 +166,8 @@
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/exporting.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/series-label.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/offline-exporting.js"></script>
|
||||
<script src="${pageContext.request.contextPath}/static/global/plugins/highcharts/js/no-data-to-display.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
loading();
|
||||
@@ -261,7 +263,7 @@
|
||||
headings:true,
|
||||
footers:true,
|
||||
formats:[dataType],
|
||||
fileName:"Domain",
|
||||
fileName:"<spring:message code='domain_name'></spring:message>",
|
||||
bootstrap:false
|
||||
});
|
||||
$("#myexport").click();
|
||||
@@ -416,15 +418,17 @@ function webTypeChart(rs){
|
||||
},
|
||||
exporting: {
|
||||
allowHTML:true,
|
||||
filename:"Domain",
|
||||
filename:"<spring:message code='domain_name'></spring:message>",
|
||||
scale:1,
|
||||
sourceWidth: 1280,
|
||||
sourceHeight: 500,
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#000',
|
||||
},
|
||||
noData:{
|
||||
style: {//设置字体颜色
|
||||
color: '#413333',
|
||||
fontFamily:'Microsoft YaHei',
|
||||
fontWeight:"unset",
|
||||
},
|
||||
},
|
||||
// legend:{// 底部平鋪图例
|
||||
// width:1280,
|
||||
|
||||
Reference in New Issue
Block a user