增加流量统计带宽统计

This commit is contained in:
zhanghongqing
2018-09-26 16:27:17 +08:00
parent 7d0add8079
commit 9dc3f3a2f6
6 changed files with 212 additions and 1062 deletions

View File

@@ -1,73 +0,0 @@
*{
margin: 0;
padding: 0;
font-family: PingFangSC-Light, Microsoft YaHei;
}
body,html{
width: 100%;
height: 100%;
color:#333;
/* overflow: hidden;*/
}
/*各浏览器显示不同,去掉蓝色边框*/
fieldset, img, input, button {
border: none;
padding: 0;
margin: 0;
outline-style: none;
}
img {
border: 0;
vertical-align: middle;
}
ul, li {
list-style: none;
}
a {
text-decoration: none;!important;
cursor: pointer;
}
/*清除浮动*/
.clear-both:before, .clear-both:after {
display: table;
content: "";
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
clear: both;
}
.clearfix {
*zoom: 1; /*IE/7/6*/
}
.fl{
float: left;
}
.fr{
float: right;
}
td a {
color:#fff
}
td a i {
color:#21a10e
}
/*
tr td a:link {
color:red;
text-decoration:none
}
td a:active {
color:red;
text-decoration:none
}
td a:visited {
color:red;
text-decoration:none
}
td a:hover {
color:red;
text-decoration:underline
} */
/*content 结束*/

View File

@@ -1,882 +0,0 @@
/* 页面整体布局 */
.data_content{
/*overflow-x: hidden;*/
/* min-width: 1366px; */
background-color: #303030;
padding-top: 30px;
padding-bottom: 10px;
}
/******************** info start *************************/
p{
margin: 10px
}
.data_content .data_info{
width: calc(100% - 20px);
margin-bottom: 40px;
height: 110px;
margin-left: 15px;
text-align: center;
display: inline-block;
}
.data_content .data_info .info_2{
width: 60%;
height: 110px;
}
.data_content .data_info .fr_fc{
width: 155%;
height: 110px;
border: 1px solid #303030;
border-width: 0 1px;
display: inline-block;
}
.data_content .data_info .fr_fc .fl_visual{
margin-left: 0px;
float: left;
height: 110px;
width: 28%;
font-size: 45px;
color: #C5C5C5;
position: relative;
margin-top: 15px;
}
.data_content .data_info .fr_fc .fl_fc{
width: 68%;
height: 110px;
border-width: 0 1px;
margin-left: 0px;
}
.data_content .data_info .info_2>.text_2{
width: calc(100% - 10px);
background-color: #3D3D3D;
height: 110px;
}
.data_content .data_info .info_1{
width: 40%;
height: 110px;
}
.data_content .data_info .info_2 .fr_fc:first-child{
border-left: none;
}
.data_content .data_info .info_2 .fr_fc:last-child{
border-right: none;
}
.data_content .data_info .info_1>.text_1{
width: calc(100% - 1px);
background-color: #3D3D3D;
height: 110px;
}
/* .data_content .data_info .info_3{
width: 29%;
height: 110px;
}
.data_content .data_info .info_3>.text_3{
width:100%;
background-color: #3D3D3D;
height: 110px;
} */
.data_content .data_info>div.info_2>.text_2>div{
width: 33.333%;
position: relative;
}
.data_content .data_info>div.info_1>div>div,
.data_content .data_info>div.info_2>div>div{
width: 50%;
position: relative;
}
.data_content .data_info>div>div>div>div{
margin-left:10px;
margin-top: 1px;
}
.data_content .data_info>div.info_1>div>div>div{
margin-left: 10px;
margin-top: 1px;
}
.data_content .data_info p:nth-child(1){
color:#fff;
font-size: 18px;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.data_content .data_info>div.info_1 p:nth-child(2){
font-weight: 600;
font-size: 16px;
color:#288dce;
margin-top: 2.0em;
}
.data_content .data_info .info_2 .fr_fc .numberRun2{
font-weight: 600;
font-size: 16px;
color:#288dce;
margin-top: 2.1em;
}
.data_content .data_info .info_2 .fr_fc .numberRun3{
font-weight: 600;
font-size: 16px;
color:#288dce;
margin-top: 2.1em;
}
.data_content .data_info .info_2 .fr_fc .numberRun{
font-weight: 600;
font-size: 16px;
color:#288dce;
margin-top: 2.1em;
}
.data_content .data_info>div.info_1 .fl_fc .numberRun4{
font-weight: 600;
font-size: 16px;
color:#288dce;
margin-top: 1px;
}
.data_content .data_info>div.info_1 .fl_fc .numberRun4-unit{
font-weight: 500;
font-size: 16px;
color:#288dce;
margin-top: 0.6px;
}
.data_content .data_info>div.info_1 .fl_fc .csNum{
font-size: 12px;
color:#337ab7 !important;
margin-top: 1px;
}
/* .data_info{
float: right;
margin-right: 15px;
} */
.fl_fc{
float: left;
}
.fr_fc{
float: left;
}
.clearfix:after,.clearfix:before{
content:".";
display: table;
}
.clearfix:after{
clear: both;
}
.clearfix {
*zoom: 1; /*IE/7/6*/
}
/************** info end ***********************/
/* 第一行图 */
.data_content .data_main{
width: calc(100% - 30px);
height: 400px;
margin-left: 15px;
}
.data_content .data_main .main_left{
width: 41%;
}
.data_content .data_main .main_left>div{
width: 100%;
height: 400px;
box-sizing: border-box;
border: 1px solid #3D3D3D;
/*box-shadow: 0px 0px 10px #3D3D3D inset;*/
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
}
.data_content .data_main .main_left div:nth-child(1){
margin-bottom: 5px;
}
.data_content .data_main .main_left div .main_title{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
border-radius: 18px;
position: absolute;
top: -17px;
left:46%;
margin-left: -100px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
z-index: 1000;
border-radius:18px !important;
}
.data_content .data_main .main_center{
width: 35%;
height: 400px;
}
.data_content .data_main .main_center .center_text{
width: calc(100% - 16px);
height: 400px;
margin-left: 15px;
margin-right: 15px;
box-sizing: border-box;
border: 1px solid #3D3D3D;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
}
.data_content .data_main .main_center .main_title{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
position: absolute;
top: -17px;
left:50%;
margin-left: -110px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
z-index: 1000;
border-radius:18px !important;
}
.data_content .data_main .main_right{
width: 23%;
}
.data_content .data_main .main_right>div{
width: 100%;
height: 400px;
box-sizing: border-box;
border: 1px solid #3D3D3D;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
}
.data_content .data_main .main_right div.right_1 .choice{
position: absolute;
top: 25px;
right: 30px;
z-index: 1000;
}
.data_content .data_main .main_right div.right_1 .choice label{
color:#fff;
}
.data_content .data_main .main_right div:nth-child(1){
margin-bottom: 5px;
}
.data_content .data_main .main_right div .main_title{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
border-radius: 18px;
position: absolute;
top: -17px;
left:45%;
margin-left: -100px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
z-index: 1000;
border-radius:18px !important;
}
/* 第2行图 */
.data_content .data_main1{
width: calc(100% - 30px);
height: 430px;
margin-left: 15px;
margin-top: 30px
}
.data_content .data_main1 .main_left1{
width: 41%;
}
.data_content .data_main1 .main_left1>div{
width: 100%;
height: 430px;
box-sizing: border-box;
border: 1px solid #3D3D3D;
/*box-shadow: 0px 0px 10px #3D3D3D inset;*/
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
}
.data_content .data_main1 .main_left1 div:nth-child(1){
margin-bottom: 5px;
}
.data_content .data_main1 .main_left1 div .main_title1{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
border-radius: 18px;
position: absolute;
top: -17px;
left:45%;
margin-left: -100px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
z-index: 1000;
border-radius:18px !important;
}
.data_content .data_main1 .main_center1{
width: calc(25% - 10px);
height: 430px;
}
.data_content .data_main1 .main_center1 .main_title1{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
position: absolute;
top: -17px;
left:50%;
margin-left: -110px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
z-index: 1000;
border-radius:18px !important;
}
.data_content .data_main1 .main_right1{
width: calc(34% - 5px);
margin-right: 15px;
}
.data_content .data_main1 .main_right1>div{
width: 100%;
height: 430px;
box-sizing: border-box;
border: 1px solid #3D3D3D;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
/* 10px 0px 15px #3D3D3D inset, */ /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
}
.data_content .data_main1 .main_right1 div.right_1 .choice{
position: absolute;
top: 25px;
right: 30px;
z-index: 1000;
}
.data_content .data_main1 .main_right1 div.right_1 .choice label{
color:#fff;
}
.data_content .data_main1 .main_right1 div:nth-child(1){
margin-bottom: 5px;
}
.data_content .data_main1 .main_right1 div .main_title1{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
border-radius: 18px;
position: absolute;
top: -17px;
left:45%;
margin-left: -100px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
z-index: 1000;
border-radius:18px !important;
}
/* 第3行图 */
.data_content .data_main2{
width: calc(100% - 30px);
height: 430px;
margin-left: 15px;
}
.data_content .data_main2 .main_left2{
width: 30%;
}
.data_content .data_main2 .main_left2>div{
width: 100%;
height: 400px;
box-sizing: border-box;
border: 1px solid #3D3D3D;
/*box-shadow: 0px 0px 10px #3D3D3D inset;*/
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
}
.data_content .data_main2 .main_left2 div:nth-child(1){
margin-bottom: 5px;
}
.data_content .data_main2 .main_left2 div .main_title2{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
border-radius: 18px;
position: absolute;
top: -17px;
left:45%;
margin-left: -100px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
z-index: 1000;
border-radius:18px !important;
}
.data_content .data_main2 .main_center2{
width: 40%;
height: 400px;
}
.data_content .data_main2 .main_center2 .center_text2{
width: calc(100% - 30px);
height: 400px;
margin-left: 15px;
margin-right: 15px;
box-sizing: border-box;
border: 1px solid #3D3D3D;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
}
.data_content .data_main2 .main_center2 .main_title2{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
position: absolute;
top: -17px;
left:50%;
margin-left: -110px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
z-index: 1000;
border-radius:18px !important;
}
.data_content .data_main2 .main_right2{
width: 30%;
}
.data_content .data_main2 .main_right2>div{
width: 100%;
height: 400px;
box-sizing: border-box;
border: 1px solid #3D3D3D;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
}
.data_content .data_main2 .main_right2 div.right_1 .choice{
position: absolute;
top: 25px;
right: 30px;
z-index: 1000;
}
.data_content .data_main2 .main_right2 div.right_1 .choice label{
color:#fff;
}
.data_content .data_main2 .main_right2 div:nth-child(1){
margin-bottom: 5px;
}
.data_content .data_main2 .main_right2 div .main_title2{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
border-radius: 18px;
position: absolute;
top: -17px;
left:45%;
margin-left: -100px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
z-index: 1000;
border-radius:18px !important;
}
/* 第4行图 */
.data_content .data_bottom{
width: calc(100% - 30px);
height: 430px;
margin-left: 15px;
margin-top: 30px;
/* margin-bottom: 10px; */
}
.data_content .data_bottom div{
}
.data_content .data_bottom .bottom_1{
width: 24%;
height: 430px;
box-shadow:/* -10px 0px 15px #3D3D3D inset, */ /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
/*background: url("../img/chart_5.png") no-repeat;*/
}
.data_content .data_bottom .bottom_center{
width: 76%;
height: 430px;
}
.data_content .data_bottom .bottom_2{
width: 51.6%;
height: 430px;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
/* 10px 0px 15px #3D3D3D inset, */ /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
}
.data_content .data_bottom .bottom_3{
width: 47%;
height: 430px;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
}
/* .data_content .data_bottom .bottom_4{
width: 26%;
height: 430px;
box-shadow:-10px 0px 15px #3D3D3D inset, 左边阴影
0px -10px 15px #3D3D3D inset, 上边阴影
10px 0px 15px #3D3D3D inset, 右边阴影
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
background: url("../img/chart_8.png") no-repeat;
} */
.data_content .data_bottom div .main_title{
width: 230px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
border-radius: 18px;
position: absolute;
top: -17px;
left:50%;
margin-left: -110px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
border-radius:18px !important;
}
.data_content .data_bottom div .main_table tr{
height: 36px;
}
.data_content .data_bottom div .main_table{
width: 100%;
margin-top: 25px;
}
.data_content .data_bottom div .main_table table{
width: 100%;
}
.data_content .data_bottom div .main_table thead tr{
height: 36px;
}
.data_content .data_bottom div .main_table th{
font-size: 14px;
font-weight: 600;
color:#757575;
text-align: center;
}
.data_content .data_bottom div .main_table th:nth-child(1){
width: 30%;
}
.data_content .data_bottom div .main_table th:nth-child(2){
width: 35%;
}
.data_content .data_bottom div .main_table th:nth-child(2){
width: 35%;
}
.data_content .data_bottom div .main_table td{
color:#3D3D3D;
font-size: 12.8px;
text-align: center;
}
.data_content .data_bottom div .main_table tbody tr:nth-child(1),
.data_content .data_bottom div .main_table tbody tr:nth-child(3),
.data_content .data_bottom div .main_table tbody tr:nth-child(7),
.data_content .data_bottom div .main_table tbody tr:nth-child(9),
.data_content .data_bottom div .main_table tbody tr:nth-child(5){
background-color: #303030;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
10px 0px 15px #3D3D3D inset; /*右边阴影*/
/*0px 10px 15px #3D3D3D inset;*/
}
/* 第5行图 */
.data_bottom_web{
width:100%;
height: 430px;
margin-left: 0px;
margin-top: 30px;
}
.data_bottom_web div{
}
.bottom_web{
width: 100%;
height: 430px;
box-shadow:/* -10px 0px 15px #3D3D3D inset, */ /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
}
.bottom_center_web{
width: 74%;
height: 430px;
}
.bottom_web{
width: 100%;
height: 430px;
box-shadow:/* -10px 0px 15px #3D3D3D inset, */ /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
margin-left: 15px;
}
div .main_title_web{
width: 220px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
border-radius: 18px;
position: absolute;
top: -17px;
left:50%;
margin-left: -110px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
border-radius:18px !important;
}
div .main_table_web tr{
height: 36px;
}
div .main_table_web{
width: 100%;
margin-top: 25px;
}
div .main_table_web table{
width: 100%;
}
div .main_table_web thead tr{
height: 36px;
}
div .main_table_web th{
font-size: 14px;
font-weight: 600;
color:#757575;
text-align: center;
}
.main_table_web th:nth-child(1){
width: 30%;
}
div .main_table_web th:nth-child(2){
width: 35%;
}
div .main_table_web th:nth-child(2){
width: 35%;
}
div .main_table_web td{
color:#3D3D3D;
font-size: 12.8px;
text-align: center;
}
.main_table_web tbody tr:nth-child(1),
div .main_table_web tbody tr:nth-child(3),
div .main_table_web tbody tr:nth-child(7),
div .main_table_web tbody tr:nth-child(9),
div .main_table_web tbody tr:nth-child(5){
background-color: #303030;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
10px 0px 15px #3D3D3D inset; /*右边阴影*/
/*0px 10px 15px #3D3D3D inset;*/
}
/* 活跃端口 active port */
.data_bottom_port{
width: 23%;
height: 430px;
margin-left: 15px;
margin-top: 30px;
}
.data_bottom_port div{
}
.bottom_port{
width: 100%;
height: 430px;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
/*background: url("../img/chart_5.png") no-repeat;*/
}
.bottom_center_port{
width: 100%;
height: 430px;
}
.bottom_port{
width: calc(53% - 15px);
height: 430px;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
margin-left: 15px;
/*background: url("../img/chart_6.png") no-repeat;*/
}
.bottom_port{
width: calc(47% - 15px);
height: 430px;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
/*background: url("../img/chart_7.png") no-repeat;*/
margin-left:15px;
}
.bottom_port{
width: 100%;
height: 430px;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
0px -10px 15px #3D3D3D inset, /*上边阴影*/
10px 0px 15px #3D3D3D inset, /*右边阴影*/
0px 10px 15px #3D3D3D inset;
position: relative;
box-sizing: border-box;
border: 1px solid #3D3D3D;
/*background: url("../img/chart_8.png") no-repeat;*/
}
div .main_title_port{
width: 220px;
height: 35px;
line-height: 33px;
background-color: #3D3D3D;
border-radius: 18px;
position: absolute;
top: -17px;
left:50%;
margin-left: -110px;
color:#fff;
font-size: 18px;
font-weight: 600;
box-sizing: border-box;
text-align:center;
border-radius:18px !important;
}
div .main_table_port tr{
height: 33px;
}
div .main_table_port{
width: 100%;
margin-top: 25px;
}
div .main_table_port table{
width: 100%;
}
div .main_table_port thead tr{
height: 36px;
}
div .main_table_port th{
font-size: 14px;
font-weight: 600;
color:#757575;
text-align: center;
}
div .main_table_port th:nth-child(1){
width: 30%;
}
div .main_table2 th:nth-child(2){
width: 35%;
}
div .main_table_port th:nth-child(2){
width: 35%;
}
div .main_table_port td{
color:#3D3D3D;
font-size: 12.8px;
text-align: center;
}
div .main_table_port tbody tr:nth-child(1),
div .main_table_port tbody tr:nth-child(3),
div .main_table_port tbody tr:nth-child(7),
div .main_table_port tbody tr:nth-child(9),
div .main_table_port tbody tr:nth-child(5){
background-color: #303030;
box-shadow:-10px 0px 15px #3D3D3D inset, /*左边阴影*/
10px 0px 15px #3D3D3D inset; /*右边阴影*/
/*0px 10px 15px #3D3D3D inset;*/
}

View File

@@ -1,916 +0,0 @@
//协议统计分析
function echart_1(rs) {
var data=new Array();
var drillData=new Array();
$(rs).each(function(i, d) {
var pktNum=new Array();
var byteLen=new Array();
//协议图-操作系统
data.push({
name: d.protoType,
y: parseInt(d.count+Math.random()*300),
drilldown: d.protoType,
});
pktNum[0]="pktNum";
pktNum[1]=parseInt(d.pktNum);
byteLen[0]="byteLen";
byteLen[1]=parseInt(d.byteLen);
drillData.push({
name: d.protoType,
id: d.protoType,
type:'pie',
innerSize: '70%',
data: [pktNum,byteLen],
});
});
var chart = Highcharts.chart('chart_1', {
chart: {
type: 'pie',
spacing : [40, 40 , 40, 40],
backgroundColor: 'rgba(255, 255, 255, 0)',
plotBackgroundColor:null,
plotBorderWidth:null,
plotShadow:false,
// margin:10,
},
noData:{
style: {//设置字体颜色
color: '#fff',
},
},
colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6' ,'#964CEC','#32B0ED','#2b6ed7','#7278DD','#2DA9D8','#C66FE6'],
title: {
text: null
},
tool: {
enabled: true,
headerFormat: '<span style="font-size:10px">{point.key}: <b>{point.percentage:.1f}%</span><br>',
pointFormat: '{series.name}: {point.y}<b>',
shared: true,
useHTML: true
},
credits:{//是否有highcharts水印
enabled:false
},
legend:{
width:370,
x:20,
itemWidth:90,
itemHoverStyle:{
color:'#61D2F7',
},
itemStyle:{
color: '#fff',
fontFamily:'Microsoft YaHei',
},
// navigation: {//图例分页
// activeColor: 'red',
// animation: true,
// arrowSize: 15,
// inactiveColor: '#CCC',
// style: {
// fontWeight: 'bold',
// color: '#333',
// fontSize: '12px'
// }
// }
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
showInLegend: true,
dataLabels: {
enabled: false,
format: '{point.name}:</b>{point.percentage:.1f}%',
style: {
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
}
},
size: 200, //饼图的大小
states: {
hover: {
enabled: false
}
},
point: {
events: {
mouseOver: function(e) { // 鼠标滑过时动态更新标题
// 标题更新函数API 地址https://api.hcharts.cn/highcharts#Chart.setTitle
chart.setTitle({
text:e.target.name.length>10? this.percentage.toFixed(1)+"%<br><span>"+e.target.name.substring(0,10)+"...</span>":this.percentage.toFixed(1)+"%<br><span>"+e.target.name.substring(0,10)+"</span>",
floating:true,
y:120,
style: {//设置字体颜色
color: '#fff',
fontFamily:'Microsoft YaHei'
},
});
this.slice();
},
// 鼠标移出时,收回突出显示
mouseOut: function() {
this.slice();
},
// 默认是点击突出,这里屏蔽掉
click: function() {
return false;
}
},
},
}
},
series: [{
type: 'pie',
innerSize: '70%',//圆环的大小
name: 'count',
data: data
}],
drilldown:{
series:drillData,
drillUpButton: {
relativeTo: 'spacingBox',
}
}
}, function(c) { // 图表初始化完毕后的会掉函数
// 环形图圆心
var centerY = c.series[0].center[1],
titleHeight = parseInt(c.title.styles.fontSize);
// 动态设置标题位置
c.setTitle({
y:centerY + titleHeight/2
});
});
}
// echart_main中心图 活跃IP统计
function echart_main(rs) {
if(rs==null||rs.length<=0){
rs=[{"ipAddr":"103.6.1.12","linkNum":532,"pktNum": 5,"byteLen": 6},
{"ipAddr":"163.5.6.43","linkNum":532,"pktNum": 5,"byteLen": 7},
{"ipAddr":"170.1.0.1","linkNum":532,"pktNum": 5,"byteLen": 8},
{"ipAddr":"10.32.33.61","linkNum":532,"pktNum": 5,"byteLen": 9},
{"ipAddr":"145.16.1.2","linkNum":532,"pktNum": 5,"byteLen": 10},
{"ipAddr":"153.5.0.36","linkNum":532,"pktNum": 5,"byteLen": 11}]
}
var data=new Array();
var xData=new Array();
var drillData=new Array();
$(rs).each(function(i, d) {
var pktNum=new Array();
var byteLen=new Array();
xData.push(d.ipAddr);
//活跃IP图
data.push({
name: d.ipAddr,
y: parseInt(d.linkNum+Math.random()*300),
drilldown: d.ipAddr,
});
pktNum[0]="pktNum";
pktNum[1]=parseInt(d.pktNum);
byteLen[0]="byteLen";
byteLen[1]=parseInt(d.byteLen);
drillData.push({
name: d.ipAddr,
id: d.ipAddr,
type:'pie',
tooltip: {
enabled: true,
pointFormat: '{series.name}: {point.y}<b> ({point.percentage:.1f}%)'
},
data: [pktNum,byteLen],
});
});
var chart = Highcharts.chart('chart_main', {
chart: {
backgroundColor: 'rgba(255, 255, 255, 0)',
plotBackgroundColor:null,
plotBorderWidth:null,
plotShadow:false,
type: 'bar',
// marginLeft:80,
marginTop:50,
inverted: true,
},
noData:{
style: {//设置字体颜色
color: '#fff',
},
},
colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6','#964CEC','#32B0ED','#2b6ed7','#7278DD','#2DA9D8','#C66FE6'],
title: {
text: null
},
xAxis: {
type:'category',
categories: xData,
title: {
text: null
},
labels:{
formatter:function(){
if(this.value.length>15){
return '<span>'+this.value.substring(0,15)+"..."+'</span>'
}else{
return this.value
}
}
}
},
yAxis: {
min: 0,
title: {
text: 'Number',
align:'high',
style: {//设置字体颜色
color: '#fff',
fontFamily:'Microsoft YaHei'
},
},
labels: {
style: {//设置字体颜色
color: '#fff',
fontFamily:'Microsoft YaHei'
},
},
lineWidth: 1,
},
tooltip: {
// valueSuffix: ' 单位'
},
plotOptions: {
bar: {
dataLabels: {
enabled: true,
allowOverlap: true, // 允许数据标签重叠
},
showInLegend:false
},
},
credits:{//是否有highcharts水印
enabled:false
},
series: [{
name: 'Number',
colorByPoint: true,
data: data
}],
drilldown:{
activeAxisLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei',
},
activeDataLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei'
},
drillUpButton:{
relativeTo: 'spacingBox',
},
series:drillData
}
});
}
//app应用类型统计 echart_3
function echart_3(rs) {
var data=new Array();
var xData=new Array();
var drillData=new Array();
$(rs).each(function(i, d) {
var pktNum=new Array();
var byteLen=new Array();
xData.push(d.appType);
//活跃IP图
data.push({
name: d.appType,
y: parseInt(d.count+Math.random()*300),
drilldown: d.appType,
});
pktNum[0]="pktNum";
pktNum[1]=parseInt(d.pktNum);
byteLen[0]="byteLen";
byteLen[1]=parseInt(d.byteLen);
drillData.push({
name: d.appType,
id: d.appType,
data: [pktNum,byteLen],
});
});
var chart = Highcharts.chart('chart_3',{
chart: {
backgroundColor: 'rgba(255, 255, 255, 0)',
plotBackgroundColor:null,
plotBorderWidth:null,
plotShadow:false,
type: 'column',
marginTop:50,
marginBottom:60,
},
noData:{
style: {//设置字体颜色
color: '#fff',
},
},
labels:{
style: {//设置字体颜色
color: '#fff',
fontSize:'10px',
fontFamily:'Microsoft YaHei'
},
},
colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6','#964CEC','#32B0ED','#2b6ed7','#7278DD','#2DA9D8','#C66FE6'],
title: {
text: null
},
credits:{//是否有highcharts水印
enabled:false
},
xAxis: {
categories: xData,
labels:{
style: {//设置字体颜色
color: '#fff',
fontSize:'10px',
fontFamily:'Microsoft YaHei'
},
},
title: {
text: 'App',
align:'high',
style: {//设置字体颜色
color: '#fff',
fontSize:'10px',
fontFamily:'Microsoft YaHei'
},
},
},
yAxis: {
min: 0,
title: {
text: 'Number',
align:'high',
style: {//设置字体颜色
color: '#fff',
fontFamily:'Microsoft YaHei'
},
},
labels:{
style: {//设置字体颜色
color: '#fff',
fontSize:'10px',
fontFamily:'Microsoft YaHei'
},
}
},
tooltip: {
enabled: true,
headerFormat: '<span style="font-size:10px"><b>{point.key}</span><br>',
pointFormat: '{series.name}: {point.y}<b>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
dataLabels: {//数字显示
enabled: true,
allowOverlap: true, // 允许数据标签重叠
style: {//设置字体颜色
color: '#fff',
fontSize:'10px',
fontFamily:'Microsoft YaHei'
},
},
showInLegend:false
},
},
series: [{
name: 'count',
colorByPoint: true,
data: data
}],
drilldown:{
activeAxisLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei',
},
activeDataLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei'
},
drillUpButton: {
relativeTo: 'spacingBox',
},
series:drillData
}
});
}
//终端用户 分操作系统与浏览器
function echart_2(rs){
var data=new Array();
var drillData=new Array();
$(rs).each(function(i, d) {
var pktNum=new Array();
var byteLen=new Array();
//协议图-操作系统
data.push({
name: d.osType,
y: parseInt(d.count),
drilldown: d.osType,
});
pktNum[0]="pktNum";
pktNum[1]=parseInt(d.pktNum);
byteLen[0]="byteLen";
byteLen[1]=parseInt(d.byteLen);
drillData.push({
name: d.osType,
id: d.osType,
type:'pie',
data: [pktNum,byteLen],
});
});
// 创建图例
var chart = Highcharts.chart('chart_2',{
chart: {
backgroundColor: 'rgba(255, 255, 255, 0)',
plotBackgroundColor:null,
plotBorderWidth:null,
plotShadow:false,
type: 'pie'
},
noData:{
style: {//设置字体颜色
color: '#fff',
},
},
legend:{
width:480,
x:40,
itemWidth:100,
itemDistance:2,
itemHoverStyle:{
color:'#61D2F7',
},
itemStyle:{
color: '#fff',
fontFamily:'Microsoft YaHei',
}
},
colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6','#964CEC','#32B0ED','#2b6ed7','#7278DD','#2DA9D8','#C66FE6'],
title: {
text: null,
style: {//设置字体颜色
color: '#fff',
fontSize:'18px',
fontFamily:'Microsoft YaHei'
},
},
plotOptions: {
series: {
dataLabels: {
enabled: false,
format: '{point.name}'
},
},
pie:{
showInLegend: true,
point: {
events: {
mouseOver: function(e) {
this.slice();
},
// 鼠标移出时,收回突出显示
mouseOut: function() {
this.slice();
},
// 默认是点击突出,这里屏蔽掉
click: function() {
return false;
}
},
},
}
},
credits:{//是否有highcharts水印
enabled:false
},
tooltip: {
enabled: true,
headerFormat: '<span style="font-size:10px">{point.key}: <b>{point.percentage:.1f}%</span><br>',
pointFormat: '{series.name}: {point.y}<b>',
shared: true,
useHTML: true
},
series: [{
name: 'count',
colorByPoint: true,
data: data
}],
drilldown:{
activeAxisLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei',
},
activeDataLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei'
},
series:drillData,
drillUpButton: {
relativeTo: 'spacingBox',
}
}
});
}
//当点击操作系统列表时-显示浏览器
function echart_5(rs){
var data=new Array();
var drillData=new Array();
$(rs).each(function(i, d) {
var pktNum=new Array();
var byteLen=new Array();
//协议图-操作系统
data.push({
name: d.bsType,
y: parseInt(d.count),
drilldown: d.bsType,
});
pktNum[0]="pktNum";
pktNum[1]=parseInt(d.pktNum);
byteLen[0]="byteLen";
byteLen[1]=parseInt(d.byteLen);
drillData.push({
name: d.bsType,
id: d.bsType,
type:'pie',
data: [pktNum,byteLen],
});
});
// 创建图例
var chart = Highcharts.chart('chart_2',{
chart: {
backgroundColor: 'rgba(255, 255, 255, 0)',
plotBackgroundColor:null,
plotBorderWidth:null,
plotShadow:false,
type: 'pie'
},
legend:{
width:480,
x:40,
itemWidth:100,
itemDistance:2,
itemHoverStyle:{
color:'#61D2F7',
},
itemStyle:{
color: '#fff',
fontFamily:'Microsoft YaHei',
}
},
noData:{
style: {//设置字体颜色
color: '#fff',
},
},
colors:['#f36f8a', '#44A9A8', '#ffff43','#25f3e6','#964CEC','#32B0ED','#2b6ed7','#7278DD','#2DA9D8','#C66FE6'],
title: {
text: null,
style: {//设置字体颜色
color: '#fff',
fontSize:'18px',
fontFamily:'Microsoft YaHei'
},
},
plotOptions: {
series: {
dataLabels: {
enabled: false,
format: '{point.name}'
},
},
pie:{
point: {
events: {
mouseOver: function(e) { // 鼠标滑过时动态更新标题
this.slice();
},
// 鼠标移出时,收回突出显示
mouseOut: function() {
this.slice();
},
// 默认是点击突出,这里屏蔽掉
click: function() {
return false;
}
},
},
showInLegend: true,
}
},
credits:{//是否有highcharts水印
enabled:false
},
tooltip: {
enabled: true,
headerFormat: '<span style="font-size:10px">{point.key}: <b>{point.percentage:.1f}%</span><br>',
pointFormat: '{series.name}: {point.y}<b>',
shared: true,
useHTML: true
},
series: [{
name: 'count',
colorByPoint: true,
data: data
}],
drilldown:{
activeAxisLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei',
},
activeDataLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei'
},
series:drillData,
drillUpButton: {
relativeTo: 'spacingBox',
}
}
});
}
//网站流量分析
function echart_4(rs){
var data=new Array();
var drillData=new Array();
$(rs).each(function(i, d) {
var pktNum=new Array();
var byteLen=new Array();
data.push({
name: d.webId,
y: parseInt(d.count),
drilldown: d.webId,
});
pktNum[0]="pktNum";
pktNum[1]=parseInt(d.pktNum);
byteLen[0]="byteLen";
byteLen[1]=parseInt(d.byteLen);
drillData.push({
name: d.webId,
id: d.webId,
type:'pie',
data: [pktNum,byteLen],
});
});
// 创建图例
var chart = Highcharts.chart('chart_4',{
chart: {
backgroundColor: 'rgba(255, 255, 255, 0)',
plotBackgroundColor:null,
plotBorderWidth:null,
plotShadow:false,
type: 'pie'
},
colors:[ '#44A9A8', '#f36f8a','#25f3e6','#ffff43','#964CEC','#32B0ED','#2b6ed7','#7278DD','#2DA9D8','#C66FE6'],
title: {
text: null,
},
noData:{
style: {//设置字体颜色
color: '#fff',
},
},
plotOptions: {
series: {
dataLabels: {
enabled: false,
format: '{point.name}'
},
},
pie:{
showInLegend: true,
point: {
events: {
mouseOver: function(e) {
this.slice();
},
// 鼠标移出时,收回突出显示
mouseOut: function() {
this.slice();
},
// 默认是点击突出,这里屏蔽掉
click: function() {
return false;
}
},
},
}
},
credits:{//是否有highcharts水印
enabled:false
},
legend:{
width:480,
x:40,
itemWidth:100,
itemDistance:2,
itemHoverStyle:{
color:'#61D2F7',
},
itemStyle:{
color: '#fff',
fontFamily:'Microsoft YaHei',
}
},
tooltip: {
enabled: true,
headerFormat: '<span style="font-size:10px">{point.key}: <b>{point.percentage:.1f}%</span><br>',
pointFormat: '{series.name}: {point.y}<b>',
shared: true,
useHTML: true
},
series: [{
name: 'count',
colorByPoint: true,
data: data,
}],
drilldown:{
activeAxisLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei',
},
activeDataLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei'
},
series:drillData,
drillUpButton: {
relativeTo: 'spacingBox',
}
}
});
}
//网站流量分析-点击列表显示网站分类
function echart_6(rs){
var data=new Array();
var drillData=new Array();
$(rs).each(function(i, d) {
var pktNum=new Array();
var byteLen=new Array();
//协议图-操作系统
data.push({
name: d.webType,
y: parseInt(d.count),
drilldown: d.webType,
});
pktNum[0]="pktNum";
pktNum[1]=parseInt(d.pktNum);
byteLen[0]="byteLen";
byteLen[1]=parseInt(d.byteLen);
drillData.push({
name: d.webType,
id: d.webType,
type:'pie',
data: [pktNum,byteLen],
});
});
// 创建图例
var chart = Highcharts.chart('chart_4',{
chart: {
backgroundColor: 'rgba(255, 255, 255, 0)',
plotBackgroundColor:null,
plotBorderWidth:null,
plotShadow:false,
type: 'pie'
},
noData:{
style: {//设置字体颜色
color: '#fff',
},
},
colors:[ '#44A9A8', '#f36f8a','#25f3e6','#ffff43','#964CEC','#32B0ED','#2b6ed7','#7278DD','#2DA9D8','#C66FE6'],
title: {
text: null,
},
plotOptions: {
series: {
dataLabels: {
enabled: false,
format: '{point.name}'
},
},
pie:{
showInLegend: true,
point: {
events: {
mouseOver: function(e) { // 鼠标滑过时动态更新标题
this.slice();
},
// 鼠标移出时,收回突出显示
mouseOut: function() {
this.slice();
},
// 默认是点击突出,这里屏蔽掉
click: function() {
return false;
}
},
},
}
},
credits:{//是否有highcharts水印
enabled:false
},
legend:{
width:370,
x:20,
itemWidth:90,
itemHoverStyle:{
color:'#61D2F7',
},
itemStyle:{
color: '#fff',
fontFamily:'Microsoft YaHei',
}
},
tooltip: {
enabled: true,
headerFormat: '<span style="font-size:10px">{point.key}: <b>{point.percentage:.1f}%</span><br>',
pointFormat: '{series.name}: {point.y}<b>',
shared: true,
useHTML: true
},
series: [{
name: 'count',
colorByPoint: true,
data: data,
}],
drilldown:{
activeAxisLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei',
},
activeDataLabelStyle:{
textDecoration:'none',
color: '#fff',
fontStyle:'Microsoft YaHei'
},
series:drillData,
drillUpButton: {
relativeTo: 'spacingBox',
}
}
});
}