Commit 6d9eb27a authored by 王向前's avatar 王向前

大屏

parent ebb87600
......@@ -14,5 +14,10 @@ public class KmesBoardController extends BaseController {
return "kmes/dashboard/index";
}
@RequestMapping("/first")
public String interfaceFirst() {
return "kmes/dashboard/first";
}
}
/*
头部*/
.header{
width: 100%;
height: 1.5rem;
/*background: red;*/
}
.header .header-left{
width: 25%;
height: 1.05rem;
color: white;
/* border: 1px solid green;*/
text-align: center;
line-height: 1.05rem;
}
.header .header-center{
width: 50%;
height: 1.2rem;
/*border: 1px solid red;*/
/* background: url("../images/head.gif") no-repeat;
background-size: 100% 100%;*/
position: relative;
}
.header .header-center .header-title{
text-align: center;
color: #ffffff;
font-size: .4rem;
text-shadow: 0 0 .3rem #00d8ff;
line-height: 1.05rem;
}
.header .header-img{
/* background: url("../images/head.gif") no-repeat center center; */
background-size: 100%;
height: 100%;
width: 100%;
position: absolute;
top: .4rem;
}
.header .header-right{
width: 25%;
height: 1.05rem;
/*border: 1px solid gold;*/
}
.header .header-bottom{
width: calc(100% - .4rem);
height: .16rem;
background: url("../../images/dashboard/header.png") no-repeat;
background-size: calc(100% - .2rem) 100%;
padding: 0 .2rem;
margin-left: .3rem;
}
/*
内容*/
.center{
padding: .1rem .2rem .1rem .2rem;
}
.center .center-left{
width: 25%;
padding: .1rem;
/* border: 1px solid red;*/
}
.center .center-left .left-top{
width: 100%;
height: 3.2rem;
margin-bottom: .4rem;
/*background: url("../images/panel.png") no-repeat;
background-size: 100% 100%;*/
/*transform-style: preserve-3d;*/
/* border: 0.01rem solid #217093;
position: relative;
overflow: hidden;*/
}
.center .center-left .left-top h1{
color: white;
font-size: .4rem;
transform: rotateX(0deg);
/*display: flex;*/
align-items: center;
margin-bottom: 8px;
position: relative;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
transform-origin: 50% 50%;
/*transform: rotateX(0deg);*/
/*width: 100%;*/
transition: transform 500ms cubic-bezier(0.15, 0.52, 0.5, 0.9) 0s;
/*height: 24px;*/
/*过渡效果*/
transition: all 1s;
}
/*.center .center-left .left-top h1:hover{
transform: rotateX(360deg);
transition: all 2s;
}*/
.title{
width: 90%;
height: 0.3rem;
/* border: 1px solid gold;*/
position: relative;
top:.1rem;
left: .25rem;
color: white;
padding-left: 0.12rem;
line-height: 0.3rem;
}
.title:before{
width: 0.05rem;
height: 0.25rem;
top: 0.02rem;
position: absolute;
content: "";
background: #59ebe8;
border-radius: 0.02rem;
left: 0;
}
.top-list p{
font-size: .18rem;
color: #029698;
padding: .3rem;
}
.top-list li{
float: left;
font-size: .2rem;
color: #ffffff;
width: 50%;
height: .4rem;
line-height: .4rem;
padding: .2rem;
}
.center .center-left .left-cen{
width: 100%;
height: 3.2rem;
margin-bottom: .4rem;
/*background: url("../images/panel.png") no-repeat;
background-size: 100% 100%;*/
/*border: 0.01rem solid #217093;*/
}
.center .center-left .left-cen .company{
width: calc(100% - .2rem);
height: calc(100% - .6rem);
margin-left: .1rem;
margin-top: .1rem;
/*border: 1px solid red;*/
padding: .2rem;
box-sizing: border-box;
}
.center .center-left .left-cen .company li{
color: white !important;
height: .3rem;
line-height: .3rem;
}
/*.center .center-left .left-cen .company .wodryRX0 span{
background: red;
}*/
.center .center-left .left-bottom{
width: 100%;
height: 3.2rem;
/*background: url("../images/panel.png") no-repeat;
background-size: 100% 100%;*/
/*border: 0.01rem solid #217093;*/
}
.center .center-left .bottom-b{
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
}
.center .center-cen{
width: 50%;
padding: .1rem;
}
.center .center-cen .cen-top{
width: 100%;
height: 6.8rem;
/*background: url("../images/a.png") no-repeat;
background-size: 100% 100%;*/
/*border: 0.01rem solid #217093;*/
margin-bottom: .4rem;
position: relative;
}
.center .center-cen .cen-top .top-title{
position: absolute;
width: 35%;
height: 1.5rem;
/*border: 1px solid red;*/
left: .5rem;
top:.5rem;
}
.center .center-cen .cen-top .top-title li{
float: left;
width: 50%;
height: 1rem;
/*border: 1px solid green;*/
}
.center .center-cen .cen-top .top-title li p,
.center .center-cen .cen-top .top-title li span,
.center .center-cen .cen-top .top-title li b{
color: #ffffff;
}
.center .center-cen .cen-top .top-title li p{
padding: .1rem;
}
.center .center-cen .cen-top .top-title li span{
text-align: center;
display: inline-block;
width: .35rem;
height: .45rem;
background: #37a9ea;
margin-left: .1rem;
line-height: .4rem;
font-size: .3rem;
margin-top: .1rem;
}
.center .center-cen .cen-top .top-bottom{
width: 100%;
height: 4.8rem;
/*border: 1px solid red;*/
position: absolute;
top:1.6rem;
padding: .2rem;
/*overflow: hidden;*/
}
.center .center-cen .cen-bottom{
width: 100%;
height: 3.2rem;
/*border: 0.01rem solid #217093;*/
}
.center .center-cen .bottom-b{
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
}
.center .center-right{
width: 25%;
padding: .1rem;
}
.center .center-right .right-top{
width: 100%;
height: 3.2rem;
margin-bottom: .4rem;
/*border: 0.01rem solid #217093;*/
}
.center .center-right .right-cen{
width: 100%;
height: 3.2rem;
margin-bottom: .4rem;
/*border: 0.01rem solid #217093;*/
border:1px solid #0bc4e9;
background: rgba(0,72,115,0.28);
transition: all 1s;
cursor: pointer;
position: relative;
}
.center .center-right .right-cen .right-cen-cent{
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
}
.center .center-right .right-bottom{
width: 100%;
height: 3.2rem;
/*border: 0.01rem solid #217093;*/
}
.center .center-right .right-bottom .chat{
/* width: calc(100% - .2rem);
height: calc(100% - .6rem);
margin-top: .1rem;
margin-left: .1rem;
padding: .1rem;*/
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
/*overflow: hidden;*/
}
.gun{
/* width: 100%;*/
margin-top: .2rem;
}
.gun span{
display: block;
float: left;
height: .2rem;
width: 12.5%;
/*background: red;*/
/*margin: 15px 10px 10px 10px;*/
/*padding: 20px;*/
text-align: center;
font-size: 0.14rem;
font-weight: 600;
color: #61d2f7;
text-align: center;
margin-bottom: .1rem;
}
#FontScroll{
width: 100%;
height: 2.3rem;
overflow: hidden;
/*float: left;*/
margin-top: .1rem;
/*margin: 0 5%;*/
/*margin-left: 50px;*/
/*background: gold;*/
}
#FontScroll ul li{
height: .32rem;
width: 100%;
color: #ffffff;
text-align: center;
line-height: .32rem;
/*border-bottom: 1px dashed #404040;*/
/*width:33.3%;*/
overflow: hidden;
font-size: 0.14rem;
/*border-bottom: 1px dashed #404040;*/
/*width:33.3%;*/
/*background: red;
margin: 0 2%;*/
}
#FontScroll ul li:nth-child(1){
/*background-color: #072951;*/
box-shadow: -10px 0px 15px #034c6a inset, /*左边阴影*/
10px 0px 15px #034c6a inset;
}
#FontScroll ul li:hover{
box-shadow: -10px 0px 15px #034c6a inset, /*左边阴影*/
10px 0px 15px #034c6a inset;
cursor: pointer;
}
.fontInner span {
display: inline-block;
/* float: left; */
/* height: 20px; */
width: 12.5%;
color: #ffffff;
float: left;
overflow: hidden;
/* background: red; */
white-space: nowrap;
text-overflow: ellipsis;
word-break: break-all;
font-family: "Tahoma", "Verdana", "微软雅黑", "新宋体", "Helvetica", "Arial", "sans-serif";
}
.fontInner span b{
display: inline-block;
width: .2rem;
height: .2rem;
border-radius: 0.03rem;
color: #ffffff;
line-height: .2rem;
}
/*#FontScroll ul li:nth-child(1) .fontInner span b{
background: #EB6841
}*/
.allnav{
width: 100%;
height: 100%;
}
#FontScroll ul li:nth-child(8n-4) .fontInner span b{ background: #20a8fe }
#FontScroll ul li:nth-child(8n-3) .fontInner span b{ background: #EB6841 }
#FontScroll ul li:nth-child(8n-2) .fontInner span b{ background: #3FB8AF }
#FontScroll ul li:nth-child(8n-1) .fontInner span b{ background: #FE4365 }
#FontScroll ul li:nth-child(8n-5) .fontInner span b{ background: #FC9D9A }
#FontScroll ul li:nth-child(8n-6) .fontInner span b{ background: #EDC951 }
#FontScroll ul li:nth-child(8n-7) .fontInner span b{ background: #C8C8A9 }
#FontScroll ul li:nth-child(8n) .fontInner span b{ background: #83AF9B }
#FontScroll ul li:first-child .fontInner span b{ background: #036564 }
#FontScroll ul li:last-child .fontInner span b{ background: #3299BB }
#chartJdshCirle{
border-radius: 50%;
width:1rem;
height: 1rem;
transform: translate(-50%,0);
left: 50%;
position: relative;
}
.circle{
border-radius: 50%;
}
.circle-small{
width: 0.3rem;
height: 0.3rem;
display: inline-block;
}
.circle-normal{
background-color: #7cef7c;
}
.circle-close{
background-color: #0bc4e9;
}
.circle-offine{
background-color: #bfbfbf;
}
.circle-info{
background-color: #db4f43;
}
.allnav-circle{
height:calc(100% - 1rem);
}
.allnav-left{
float: left;
width: 50%;
margin-top: 0.1rem;
}
.allnav-right{
float: right;
width: 50%;
height: 100%;
}
.allnav-circle li{
width: 50%;
float: left;
padding: 10px;
}
.allnav-circle li span{
display: block;
transform: translate(-50%,0);
left: 50%;
position: relative;
text-align: center;
}
.allnav-right ul{
height: 100%;
}
.allnav-right ul li{
height: 25%;
float: left;
width: 50%;
text-align: center;
}
.out{
position: relative;
height: 0.6rem;
width: 0.6rem;
display: inline-block;
}
.out .in{
width: 80%;
height: 80%;
margin: auto;
left: 0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
background: #0d283f;
}
.border:hover .in{
background: #0d283f;
}
\ No newline at end of file
/*
头部*/
.header{
width: 100%;
height: 1.5rem;
/*background: red;*/
}
.header .header-left{
width: 25%;
height: 1.05rem;
color: white;
/* border: 1px solid green;*/
text-align: center;
line-height: 1.05rem;
}
.header .header-center{
width: 50%;
height: 1.2rem;
/*border: 1px solid red;*/
/* background: url("../images/head.gif") no-repeat;
background-size: 100% 100%;*/
position: relative;
}
.header .header-center .header-title{
text-align: center;
color: #ffffff;
font-size: .4rem;
text-shadow: 0 0 .3rem #00d8ff;
line-height: 1.05rem;
}
.header .header-img{
background: url("../images/head.gif") no-repeat center center;
background-size: 100%;
height: 100%;
width: 100%;
position: absolute;
top: .4rem;
}
.header .header-right{
width: 25%;
height: 1.05rem;
/*border: 1px solid gold;*/
}
.header .header-bottom{
width: calc(100% - .4rem);
height: .16rem;
background: url("../images/header.png") no-repeat;
background-size: calc(100% - .2rem) 100%;
padding: 0 .2rem;
margin-left: .3rem;
}
/*
内容*/
.center{
padding: .1rem .2rem .1rem .2rem;
}
.center .center-left{
width: 35%;
padding: .1rem;
/* border: 1px solid red;*/
}
.center .center-left .left-top{
width: 100%;
height: 6.8rem;
margin-bottom: .4rem;
}
.center .center-left .left-top h1{
color: white;
font-size: .4rem;
transform: rotateX(0deg);
/*display: flex;*/
align-items: center;
margin-bottom: 8px;
position: relative;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
transform-origin: 50% 50%;
/*transform: rotateX(0deg);*/
/*width: 100%;*/
transition: transform 500ms cubic-bezier(0.15, 0.52, 0.5, 0.9) 0s;
/*height: 24px;*/
/*过渡效果*/
transition: all 1s;
}
/*.center .center-left .left-top h1:hover{
transform: rotateX(360deg);
transition: all 2s;
}*/
.title{
width: 90%;
height: 0.3rem;
/* border: 1px solid gold;*/
position: relative;
top:.1rem;
left: .25rem;
color: white;
padding-left: 0.12rem;
line-height: 0.3rem;
}
.title:before{
width: 0.05rem;
height: 0.25rem;
top: 0.02rem;
position: absolute;
content: "";
background: #59ebe8;
border-radius: 0.02rem;
left: 0;
}
.top-list p{
font-size: .18rem;
color: #029698;
padding: .3rem;
}
.top-list li{
float: left;
font-size: .2rem;
color: #ffffff;
width: 50%;
height: .8rem;
line-height: .8rem;
padding: 0 .2rem;
margin-bottom: .4rem;
}
.top-list li img{
margin: .1rem 0;
display: block;
float: left;
line-height: .8rem;
/*height: .8rem;*/
}
.top-list li span{
display: block;
float: left;
padding-left: .2rem;
line-height: .8rem;
}
.center .center-left .left-bottom{
width: 100%;
height: 3.2rem;
/*background: url("../images/panel.png") no-repeat;
background-size: 100% 100%;*/
/*border: 0.01rem solid #217093;*/
}
.center .center-left .bottom-b{
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
}
.center .center-cen{
width: 65%;
padding: .1rem;
}
.center .center-cen .cen-top{
width: 100%;
height: 3.2rem;
/*background: url("../images/a.png") no-repeat;
background-size: 100% 100%;*/
/*border: 0.01rem solid #217093;*/
margin-bottom: .4rem;
position: relative;
}
.center .center-cen .cen-top .top-title{
position: absolute;
width: 60%;
height: 2.2rem;
/*border: 1px solid red;*/
left: .5rem;
top:.5rem;
}
.center .center-cen .cen-top .top-title span{
font-size: .8rem;
text-align: center;
display: block;
margin: 0 auto;
line-height: 2.2rem;
float: left;
}
.center .center-cen .cen-top .top-title li{
float: left;
width: 50%;
/*height: 1rem;*/
/*border: 1px solid green;*/
}
.center .center-cen .cen-top .top-title li p,
.center .center-cen .cen-top .top-title li span,
.center .center-cen .cen-top .top-title li b{
color: #ffffff;
}
.center .center-cen .cen-top .top-title li b{
text-align: center;
display: block;
margin: .8rem auto 0 auto;
float: left;
}
.center .center-cen .cen-top .top-title li p{
padding: .1rem;
margin-left: .2rem;
}
.center .center-cen .cen-top .top-title li span{
text-align: center;
display: inline-block;
/*width: .35rem;*/
height: .45rem;
/*background: #37a9ea;*/
margin-left: .3rem;
line-height: .4rem;
font-size: .5rem;
margin-top: .6rem;
}
.datashuji{
position: absolute;
margin-bottom: .1rem;
bottom: .5rem;
left: 20%;
}
.dataright{
position: absolute;
margin-bottom: .1rem;
bottom: .5rem;
right: 5%;
}
.datashuji span,.dataright span{
font-size: .2rem !important;
}
.center .center-cen .cen-top .top-bottom{
width: 35%;
height: 2.2rem;
/*border: 1px solid red;*/
position: absolute;
top:0.5rem;
right: 0.1rem;
padding: .2rem;
/*overflow: hidden;*/
}
.center .center-cen .cen-top .top-bottom span{
font-size: .8rem;
text-align: center;
display: block;
margin: 0 auto;
line-height: 2.2rem;
}
.center .center-cen .cen-bottom{
width: 100%;
height: 6.8rem;
}
.center .center-cen .bottom-b{
width: calc(100% - 0.2rem);
height: 6.4rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
}
.gun{
/* width: 100%;*/
margin-top: .2rem;
}
.gun span{
display: block;
float: left;
height: .2rem;
width: 25%;
/*background: red;*/
/*margin: 15px 10px 10px 10px;*/
/*padding: 20px;*/
text-align: center;
font-size: 0.14rem;
font-weight: 600;
color: #61d2f7;
text-align: center;
margin-bottom: .1rem;
}
#FontScroll{
width: 100%;
height: 2.3rem;
overflow: hidden;
/*float: left;*/
margin-top: .1rem;
/*margin: 0 5%;*/
/*margin-left: 50px;*/
/*background: gold;*/
}
#FontScroll ul li{
height: .32rem;
width: 100%;
color: #ffffff;
text-align: center;
line-height: .32rem;
/*border-bottom: 1px dashed #404040;*/
/*width:33.3%;*/
overflow: hidden;
font-size: 0.14rem;
/*border-bottom: 1px dashed #404040;*/
/*width:33.3%;*/
/*background: red;
margin: 0 2%;*/
}
/*#FontScroll ul li:nth-child(1){
!*background-color: #072951;*!
box-shadow: -10px 0px 15px #034c6a inset, !*左边阴影*!
10px 0px 15px #034c6a inset;
}
#FontScroll ul li:hover{
box-shadow: -10px 0px 15px #034c6a inset, !*左边阴影*!
10px 0px 15px #034c6a inset;
cursor: pointer;
}*/
.fontInner span{
display:inline-block;
/*float: left;*/
/*height: 20px;*/
width:24%;
color: #ffffff;
/*background: red;*/
}
.fontInner span b{
display: inline-block;
width: .2rem;
height: .2rem;
border-radius: 0.03rem;
color: #ffffff;
line-height: .2rem;
}
\ No newline at end of file
/*
头部*/
.header{
width: 100%;
height: 1.5rem;
/*background: red;*/
}
.header .header-left{
width: 25%;
height: 1.05rem;
color: white;
/* border: 1px solid green;*/
text-align: center;
line-height: 1.05rem;
}
.header .header-center{
width: 50%;
height: 1.2rem;
/*border: 1px solid red;*/
/* background: url("../images/head.gif") no-repeat;
background-size: 100% 100%;*/
position: relative;
}
.header .header-center .header-title{
text-align: center;
color: #ffffff;
font-size: .4rem;
text-shadow: 0 0 .3rem #00d8ff;
line-height: 1.05rem;
}
.header .header-img{
background: url("../images/head.gif") no-repeat center center;
background-size: 100%;
height: 100%;
width: 100%;
position: absolute;
top: .4rem;
}
.header .header-right{
width: 25%;
height: 1.05rem;
/*border: 1px solid gold;*/
}
.header .header-bottom{
width: calc(100% - .4rem);
height: .16rem;
background: url("../images/header.png") no-repeat;
background-size: calc(100% - .2rem) 100%;
padding: 0 .2rem;
margin-left: .3rem;
}
.center{
padding: .1rem .2rem .1rem .2rem;
}
.center .center-left{
width: calc(45% - .1rem);
padding: .1rem;
}
.center .center-left .center-left-cen{
width: 100%;
height: 10.4rem;
}
.center-left-cen-left{
width: calc(35% - .2rem);
height: 5rem;
/* border: 1px solid red;*/
}
.center-left-cen-right{
width: calc(65% - .2rem);
height: 4.8rem;
/* border: 1px solid red;*/
margin: .2rem .2rem 0 .2rem;
}
.center-left-cen-top1{
width: calc(100% - .2rem);
height: 2.3rem;
margin: .2rem;
}
.center-left-cen-top2{
width: calc(100% - .2rem);
height: 2.3rem;
margin: 0 0 0 .2rem;
}
.center-left-zhong{
width: calc(100% - .4rem);
height: 2.4rem;
margin: .2rem;
}
.center-left-zhong-left{
width: 40%;
height: 100%;
/*border: 1px solid red;*/
padding: 10px;
}
.center-left-zhong-right{
width: 60%;
height: 100%;
/*border: 1px solid red;*/
padding: 10px 15px;
}
.center-left-bottm{
width: calc(100% - .4rem);
height: 2.4rem;
margin: 0 .2rem .2rem .2rem;
}
/*右边*/
.center .center-right{
width: 55%;
padding: .1rem;
}
.center .center-right .center-right-top{
width: 100%;
height: 3rem;
margin-bottom: .4rem;
}
.center-right-cen-left{
width: calc(65% - .4rem);
height: 3rem;
padding: 0.1rem;
}
.center-right-cen-right{
width: 35%;
height: 3.2rem;
}
.center-right-bottom{
width: 100%;
height: 3.4rem;
margin-top: .4rem;
}
\ No newline at end of file
body{
margin: 0;
padding: 0;
background: url('../../images/dashboard/bg.png');
background-repeat: no-repeat;
background-attachment:fixed;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/background.jpg', sizingMethod='scale');
-ms-filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/background.jpg', sizingMethod='scale');
background-size: cover;
-moz-background-size: cover;
-webkit-background-size: cover;
}
li{
list-style: none;
}
.header{
width: 700px;
margin: 0 auto;
}
.header p.p1{
width: 60px;
height: 60px;
margin: 0 auto;
margin-top: 110px;
}
.header p.p2{
height: 40px;
margin: 0 auto;
text-align: center;
line-height: 40px;
margin-top: 10px;
font-size: 20px;
color: #fec468;
}
.header p.p3{
height: 40px;
margin: 0 auto;
text-align: center;
line-height: 40px;
font-size: 28px;
color: #bddde6;
}
.contain{
width: 1210px;
margin: 0 auto;
margin-top: 80px;
height: 400px;
}
.contain ul li img{
display: inline-block;
margin-left: -45px;
}
.contain ul li span{
display: inline-block;
vertical-align:16px;
font-size: 30px;
color: #57daff;
margin-left: 20px;
}
.contain ul{
width: 100%;
height: 100%;
}
.contain ul li{
width: 600px;
height: 200px;
line-height: 210px;
float: left;
background-image: url('../images/kuang.png');
background-position: center center;
background-repeat: no-repeat;
margin-bottom: 50px;
background-color:transparent;
}
.contain ul li:hover{
background: url('../images/chooseKuang.png') center center no-repeat;
/*background-color: -webkit-linear-gradient(red, blue); /* Safari 5.1 - 6.0 */
/*background-color: -o-linear-gradient(red, blue); /* Opera 11.1 - 12.0 */
/*background-color: -moz-linear-gradient(red, blue); /* Firefox 3.6 - 15 */
/*background-color: linear-gradient(red, blue); /* 标准的语法 */
}
.contain ul li a{
display: block;
width: 100%;
height: 100%;
text-align: center;
}
.footer{
width: 400px;
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-200px);
text-align: center;
color: #6d95aa;
}
.footer span{
vertical-align:top;
}
......@@ -9,6 +9,9 @@
background-size: cover;
-moz-background-size: cover;
-webkit-background-size: cover;
width: 100%;
height: 100%;
overflow: hidden;
}
.kmesweb-dashboard .header{
width: 700px;
......@@ -46,6 +49,7 @@
.kmesweb-dashboard .contain ul li img{
display: inline-block;
margin-left: -45px;
margin-top: -45px;
}
.kmesweb-dashboard .contain ul li span{
display: inline-block;
......
*{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box}
*,body{padding:0px; margin:0px;color: #ffffff;/*font-family: "微软雅黑";*/}
html,body{
background: url("../../images/dashboard/bg.png") no-repeat;
background-size: cover;
font-size: .16rem;
color: #ffffff;
position: relative;
width: 100%;
height: 100%;
font-family: myFirstFont !important;
}
.fl{
float: left;
}
.fr{
float: right;
}
ul,ol{
list-style: none;
}
.allnav{
height: 100%;
}
@font-face
{
font-family: myFirstFont;
src: url('DISPLAY FREE TFB.ttf')
}
/*谷哥滚动条样式*/
::-webkit-scrollbar {width:5px;height:5px;position:absolute}
::-webkit-scrollbar-thumb {background-color:#5bc0de}
::-webkit-scrollbar-track {background-color:#ddd}
/***/
.allnav{
height: 100%;
}
/*第三栏头部*/
.rightTop{
width: 100%;
height: 450px;
position: relative;
border:1px solid #0bc4e9;
background: rgba(0,72,115,0.28);
transition: all 1s;
cursor: pointer;
}
/*边框公共样式*/
.border:before{
content: '';
position: absolute;
width: 80%;
height: 100%;
bottom: -1px;
top:-1px;
left:10%;
border-bottom: 1px solid #007297;
border-top: 1px solid #007297;
transition: all 0.5s;
}
.border:after{
content: '';
position: absolute;
width: 100%;
height: 80%;
left: -1px;
right:-1px;
top:10%;
border-left: 1px solid #007297;
border-right: 1px solid #007297;
transition: all 0.5s;
}
.border:hover::before{
width: 0%;
}
.border:hover::after{
height: 0%;
}
.border:hover{
box-shadow:-5px 0px 2px rgba(255,255,255,0.1), /*左边阴影*/ 0px -5px 2px rgba(255,255,255,0.1), /*上边阴影*/ 5px 0px 2px rgba(255,255,255,0.1), /*右边阴影*/ 0px 5px 2px rgba(255,255,255,0.1);
/*background: rgba(255,255,255,0.1);*/
}
.border h4{
margin: 15px 0 5px 20px;
color: #8adeff;
line-height: 35px;
font-size: 18px;
font-weight: 500;
}
/* 鼠标特效 */
*{
cursor: url(../../images/dashboard/pointer.png) 8 3, auto !important;
}
\ No newline at end of file
/*头部*/
.header{
width: 100%;
height: 1.5rem;
/*background: red;*/
}
.header .header-left{
width: 25%;
height: 1.05rem;
color: white;
/* border: 1px solid green;*/
text-align: center;
line-height: 1.05rem;
}
.header .header-center{
width: 50%;
height: 1.2rem;
/*border: 1px solid red;*/
/* background: url("../images/head.gif") no-repeat;
background-size: 100% 100%;*/
position: relative;
}
.header .header-center .header-title{
text-align: center;
color: #ffffff;
font-size: .4rem;
text-shadow: 0 0 .3rem #00d8ff;
line-height: 1.05rem;
}
.header .header-img{
background: url("../images/head.gif") no-repeat center center;
background-size: 100%;
height: 100%;
width: 100%;
position: absolute;
top: .4rem;
}
.header .header-right{
width: 25%;
height: 1.05rem;
/*border: 1px solid gold;*/
}
.header .header-bottom{
width: calc(100% - .4rem);
height: .16rem;
background: url("../images/header.png") no-repeat;
background-size: calc(100% - .2rem) 100%;
padding: 0 .2rem;
margin-left: .3rem;
}
/*
内容*/
.center{
padding: .1rem .2rem .1rem .2rem;
}
.center .center-left{
width: 30%;
padding: .1rem;
/* border: 1px solid red;*/
}
.center .center-left .left-top{
width: 100%;
height: 1.8rem;
margin-bottom: .4rem;
/*background: url("../images/panel.png") no-repeat;
background-size: 100% 100%;*/
/*transform-style: preserve-3d;*/
/* border: 0.01rem solid #217093;
position: relative;
overflow: hidden;*/
}
.center .center-left .left-top h1{
color: white;
font-size: .4rem;
transform: rotateX(0deg);
/*display: flex;*/
align-items: center;
margin-bottom: 8px;
position: relative;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
transform-origin: 50% 50%;
/*transform: rotateX(0deg);*/
/*width: 100%;*/
transition: transform 500ms cubic-bezier(0.15, 0.52, 0.5, 0.9) 0s;
/*height: 24px;*/
/*过渡效果*/
transition: all 1s;
}
/*.center .center-left .left-top h1:hover{
transform: rotateX(360deg);
transition: all 2s;
}*/
.title{
width: 90%;
height: 0.3rem;
/* border: 1px solid gold;*/
position: relative;
top:.1rem;
left: .25rem;
color: white;
padding-left: 0.12rem;
line-height: 0.3rem;
}
.title:before{
width: 0.05rem;
height: 0.25rem;
top: 0.02rem;
position: absolute;
content: "";
background: #59ebe8;
border-radius: 0.02rem;
left: 0;
}
.top-list{
margin-top: .3rem;
padding-left: 2%;
width: calc(100% - .2rem);
}
.top-list span{
display: inline-block;
text-align: center;
padding: 0px 3%;
color: #08faf6;
letter-spacing: 1px;
}
.top-list span p{
line-height: .3rem;
color: #fff;
}
.center .center-left .left-cen{
width: 100%;
height: 2.4rem;
margin-bottom: .4rem;
/*background: url("../images/panel.png") no-repeat;
background-size: 100% 100%;*/
/*border: 0.01rem solid #217093;*/
}
.center .center-left .left-cen .banner{
width: calc(100% - .2rem);
height: calc(100% - .6rem);
margin-left: .1rem;
margin-top: .1rem;
padding: .1rem;
box-sizing: border-box;
overflow: hidden;
}
.center .center-left .left-cen .banner ul{
/*width: calc(100% - .2rem) !important;*/
height: 100%;
}
.center .center-left .left-cen .banner li{
color: white !important;
width: 6rem;
float:left;
height: 100%;
margin-top: .1rem;
}
.center .center-left .left-cen .banner li .list{
color: white !important;
width: 100%;
float:left;
height: 100%;
}
.center .center-left .left-cen .banner li .list .listTxt{
color: white !important;
/*width: 80%;*/
float:left;
height: 100%;
}
.center .center-left .left-cen .banner li .list .listTxt p{
color: #a9e2ff;
font-size: 14px;
line-height: 25px;
}
.center .center-left .left-cen .banner li .list .listImg{
color: white !important;
/*width: 20%;*/
float:left;
height: 100%;
}
.center .center-left .left-cen .banner li .list .listImg img{
width: .6rem;
height: .6rem;
}
/*.center .center-left .left-cen .company .wodryRX0 span{
background: red;
}*/
.center .center-left .left-bottom{
width: 100%;
height: 3.2rem;
margin-bottom: .4rem;
/*background: url("../images/panel.png") no-repeat;
background-size: 100% 100%;*/
/*border: 0.01rem solid #217093;*/
}
.center .center-left .bottom-b{
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
}
.center .center-cen{
width: 40%;
padding: .1rem;
}
.center .center-cen .cen-top{
width: 100%;
height: 6.8rem;
/*background: url("../images/a.png") no-repeat;
background-size: 100% 100%;*/
/*border: 0.01rem solid #217093;*/
margin-bottom: .4rem;
position: relative;
}
.center .center-cen .cen-top .top-title{
position: absolute;
width: 35%;
height: 1.5rem;
/*border: 1px solid red;*/
left: .5rem;
top:.5rem;
}
.center .center-cen .cen-top .top-title li{
float: left;
width: 50%;
height: 1rem;
/*border: 1px solid green;*/
}
.center .center-cen .cen-top .top-title li p,
.center .center-cen .cen-top .top-title li span,
.center .center-cen .cen-top .top-title li b{
color: #ffffff;
}
.center .center-cen .cen-top .top-title li p{
padding: .1rem;
}
.center .center-cen .cen-top .top-title li span{
text-align: center;
display: inline-block;
width: .35rem;
height: .45rem;
background: #37a9ea;
margin-left: .1rem;
line-height: .4rem;
font-size: .3rem;
margin-top: .1rem;
}
.center .center-cen .cen-top .top-bottom{
width: 100%;
height: 4.8rem;
/*border: 1px solid red;*/
position: absolute;
top:1.6rem;
padding: .2rem;
/*overflow: hidden;*/
}
.center .center-cen .cen-bottom{
width: 100%;
height: 3.2rem;
/*border: 0.01rem solid #217093;*/
}
.center .center-cen .bottom-b{
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
}
.center .center-right{
width: 30%;
padding: .1rem;
}
.center .center-right .right-top{
width: 100%;
height: 3.2rem;
margin-bottom: .4rem;
/*border: 0.01rem solid #217093;*/
}
.center .center-right .right-top .right-top-cent{
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
}
.center .center-right .right-cen{
width: 100%;
height: 3.2rem;
margin-bottom: .4rem;
/*border: 0.01rem solid #217093;*/
border:1px solid #0bc4e9;
background: rgba(0,72,115,0.28);
transition: all 1s;
cursor: pointer;
position: relative;
}
.center .center-right .right-cen .right-cen-cent{
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
}
.center .center-right .right-bottom{
width: 100%;
height: 3.2rem;
/*border: 0.01rem solid #217093;*/
}
.center .center-right .right-bottom .chat{
/* width: calc(100% - .2rem);
height: calc(100% - .6rem);
margin-top: .1rem;
margin-left: .1rem;
padding: .1rem;*/
width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;
/*overflow: hidden;*/
}
.popup{
width: 0;
height: 0;
/*background: #061f3e;*/
background: rgba(25,127,170,.9);
border: 1px solid #197faa;
margin: 40px auto 0;
box-shadow: 0px 0px 10px #197faa inset;
position: absolute;
top: 50%;
left: 50%;
z-index: 999;
border-radius: 8px;
display: block;
-webkit-transform: translate(-50%,-50%);
-moz-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
-o-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
.popup .popupClose{
display: block;
width: 44px;
height: 44px;
background: url(../images/s_ico3.png);
background-size: 100 100%;
position: absolute;
top: -22px;
right: -22px;
display: none;
transition: 0.3s;
}
.popup .popupClose:hover{
transform: rotate(180deg);
}
\ No newline at end of file
.adjecting {
display: inline-block;
position: relative;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
-o-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-transform-origin-x: 50%;
}
.adjecting .front-face, .adjecting .back-face {
display: inline-block;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
}
.adjecting .front-face {
position: absolute;
}
.adjecting .back-face {
position: relative;
}
$(function () {
/*ceshis();*/
// ceshis1();
// ceshis2();
// ceshis3();
// ceshis4();
// ceshis5();
function ceshis1() {
var myChart = echarts.init(document.getElementById('chart2'));
var ydata = [{
name: '天猫',
value: 18
},
{
name: '京东',
value: 16
},
{
name: '苏宁易购',
value: 15
},
{
name: '拼多多',
value: 14
},
{
name: '国美',
value: 10
},
{
name: '亚马逊',
value: 7.9
},
{
name: '唯品会',
value: 6.7
},
{
name: '其他',
value: 6
}
];
var color = ["#8d7fec", "#5085f2", "#e75fc3", "#f87be2", "#f2719a", "#fca4bb", "#f59a8f", "#fdb301", "#57e7ec", "#cf9ef1"]
var xdata = ['天猫', "京东", "苏宁易购", "拼多多", '国美', '亚马逊', '唯品会', '唯品会'];
option = {
/*backgroundColor: "rgba(255,255,255,1)",*/
color: color,
legend: {
orient: "vartical",
x: "left",
top: "center",
left: "53%",
bottom: "0%",
data: xdata,
itemWidth: 8,
itemHeight: 8,
textStyle: {
color: '#fff'
},
/*itemGap: 16,*/
/*formatter:function(name){
var oa = option.series[0].data;
var num = oa[0].value + oa[1].value + oa[2].value + oa[3].value+oa[4].value + oa[5].value + oa[6].value + oa[7].value+oa[8].value + oa[9].value ;
for(var i = 0; i < option.series[0].data.length; i++){
if(name==oa[i].name){
return ' '+name + ' | ' + oa[i].value + ' | ' + (oa[i].value/num * 100).toFixed(2) + '%';
}
}
}*/
formatter: function(name) {
return '' + name
}
},
series: [{
type: 'pie',
clockwise: false, //饼图的扇区是否是顺时针排布
minAngle: 2, //最小的扇区角度(0 ~ 360)
radius: ["20%", "60%"],
center: ["30%", "45%"],
avoidLabelOverlap: false,
itemStyle: { //图形样式
normal: {
borderColor: '#ffffff',
borderWidth: 1,
},
},
label: {
normal: {
show: false,
position: 'center',
formatter: '{text|{b}}\n{c} ({d}%)',
rich: {
text: {
color: "#fff",
fontSize: 14,
align: 'center',
verticalAlign: 'middle',
padding: 8
},
value: {
color: "#8693F3",
fontSize: 24,
align: 'center',
verticalAlign: 'middle',
},
}
},
emphasis: {
show: true,
textStyle: {
fontSize: 24,
}
}
},
data: ydata
}]
};
myChart.setOption(option);
setTimeout(function() {
myChart.on('mouseover', function(params) {
if (params.name == ydata[0].name) {
myChart.dispatchAction({
type: 'highlight',
seriesIndex: 0,
dataIndex: 0
});
} else {
myChart.dispatchAction({
type: 'downplay',
seriesIndex: 0,
dataIndex: 0
});
}
});
myChart.on('mouseout', function(params) {
myChart.dispatchAction({
type: 'highlight',
seriesIndex: 0,
dataIndex: 0
});
});
myChart.dispatchAction({
type: 'highlight',
seriesIndex: 0,
dataIndex: 0
});
}, 1000);
myChart.currentIndex = -1;
setInterval(function () {
var dataLen = option.series[0].data.length;
// 取消之前高亮的图形
myChart.dispatchAction({
type: 'downplay',
seriesIndex: 0,
dataIndex: myChart.currentIndex
});
myChart.currentIndex = (myChart.currentIndex + 1) % dataLen;
// 高亮当前图形
myChart.dispatchAction({
type: 'highlight',
seriesIndex: 0,
dataIndex: myChart.currentIndex
});
}, 1000);
// 使用刚指定的配置项和数据显示图表。
/*myChart.setOption(option);*/
window.addEventListener("resize",function(){
myChart.resize();
});
}
function ceshis2() {
var myChart = echarts.init(document.getElementById('chart3'));
option = {
/*backgroundColor: '#000',*/
"animation": true,
"title": {
/*"text": 24,*/
/* "subtext": "沥青工",*/
"x": "center",
"y": "center",
"textStyle": {
"color": "#fff",
"fontSize": 10,
"fontWeight": "normal",
"align": "center",
"width": "200px"
},
"subtextStyle": {
"color": "#fff",
"fontSize": 12,
"fontWeight": "normal",
"align": "center"
}
},
"legend": {
"width": "100%",
"left": "center",
"textStyle": {
"color": "#fff",
"fontSize": 12
},
"icon": "circle",
"right": "0",
"bottom": "0",
"padding": [15, 20],
"itemGap": 5,
"data": ["化妆品", "手机", "电脑", "羽绒服", "扫地机", "电视", "洗发露", "其它"]
},
"series": [{
"type": "pie",
"center": ["50%", "40%"],
"radius": ["20%", "43%"],
"color": ["#FEE449", "#00FFFF", "#00FFA8", "#9F17FF", "#FFE400", "#F76F01", "#01A4F7", "#FE2C8A"],
"startAngle": 135,
"labelLine": {
"normal": {
"length": 15
}
},
"label": {
"normal": {
"formatter": "{b|{b}:} {per|{d}%} ",
"backgroundColor": "rgba(255, 147, 38, 0)",
"borderColor": "transparent",
"borderRadius": 4,
"rich": {
"a": {
"color": "#999",
"lineHeight": 12,
"align": "center"
},
"hr": {
"borderColor": "#aaa",
"width": "100%",
"borderWidth": 1,
"height": 0
},
"b": {
"color": "#b3e5ff",
"fontSize": 16,
"lineHeight": 33
},
"c": {
"fontSize": 14,
"color": "#eee"
},
"per": {
"color": "#FDF44E",
"fontSize": 14,
"padding": [5, 8],
"borderRadius": 2
}
},
"textStyle": {
"color": "#fff",
"fontSize": 16
}
}
},
"emphasis": {
"label": {
"show": true,
"formatter": "{b|{b}:} {per|{d}%} ",
"backgroundColor": "rgba(255, 147, 38, 0)",
"borderColor": "transparent",
"borderRadius": 4,
"rich": {
"a": {
"color": "#999",
"lineHeight": 22,
"align": "center"
},
"hr": {
"borderColor": "#aaa",
"width": "100%",
"borderWidth": 1,
"height": 0
},
"b": {
"color": "#fff",
"fontSize": 14,
"lineHeight": 33
},
"c": {
"fontSize": 14,
"color": "#eee"
},
"per": {
"color": "#FDF44E",
"fontSize": 14,
"padding": [5, 6],
"borderRadius": 2
}
}
}
},
"data": [{
"name": "化妆品",
"value": 3
}, {
"name": "手机",
"value": 2
}, {
"name": "电脑",
"value": 26
}, {
"name": "羽绒服",
"value": 24
}, {
"name": "扫地机",
"value": 12
}, {
"name": "电视",
"value": 11
}, {
"name": "洗发露",
"value": 3
}, {
"name": "其它",
"value": 2
}]
}, {
"type": "pie",
"center": ["50%", "40%"],
"radius": ["15%", "14%"],
"label": {
"show": false
},
"data": [{
"value": 78,
"name": "实例1",
"itemStyle": {
"normal": {
"color": {
"x": 0,
"y": 0,
"x2": 1,
"y2": 0,
"type": "linear",
"global": false,
"colorStops": [{
"offset": 0,
"color": "#9F17FF"
}, {
"offset": 0.2,
"color": "#01A4F7"
}, {
"offset": 0.5,
"color": "#FE2C8A"
}, {
"offset": 0.8,
"color": "#FEE449"
}, {
"offset": 1,
"color": "#00FFA8"
}]
}
}
}
}]
}]
}
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
myChart.currentIndex = -1;
//myChart.setOption(option);
//console.log(option.series[0].data[0]);
setInterval(function () {
var dataLen = option.series[0].data.length;
// 取消之前高亮的图形
myChart.dispatchAction({
type: 'downplay',
seriesIndex: 0,
dataIndex: myChart.currentIndex
});
myChart.currentIndex = (myChart.currentIndex + 1) % dataLen;
// 高亮当前图形
myChart.dispatchAction({
type: 'highlight',
seriesIndex: 0,
dataIndex: myChart.currentIndex
});
}, 1000);
window.addEventListener("resize",function(){
myChart.resize();
});
}
function ceshis3() {
var myChart = echarts.init(document.getElementById('chart4'));
var colors = ['rgb(46, 199, 201)', 'rgb(90, 177, 239)', 'rgb(255, 185, 128)'];
option = {
color: colors,
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross'
},
formatter: function(params) {
// 系列
let html = params[0].name + "<br>";
for (var i = 0; i < params.length; i++) {
// 获取每个系列对应的颜色值
html += '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:' + params[i].color + ';"></span>';
// 通过判断指定系列增加 % 符号
if (option.series[params[i].seriesIndex].type == "line") {
html += params[i].seriesName + ": " + params[i].value + "%<br>";
} else {
html += params[i].seriesName + ": " + params[i].value + "<br>";
}
}
return html;
}
},
grid: {
right: '20%'
},
toolbox: {
feature: {
dataView: {
show: true,
readOnly: false
},
restore: {
show: true
},
saveAsImage: {
show: true
}
}
},
legend: {
textStyle: {
color: '#fff'
},
data: ['下单量', '付款量', '平均值']
},
// 缩放组件
/*dataZoom: {
type: 'slider'
},*/
xAxis: [{
type: 'category',
axisTick: {
alignWithLabel: true
},
axisLabel: {
formatter: '{value} 万',
textStyle: {
color: "#ffffff" //X轴文字颜色
}
},
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
}],
yAxis: [{
type: 'value',
name: '下单量',
min: 0,
max: 250,
position: 'right',
axisLine: {
lineStyle: {
color: colors[0]
}
},
axisLabel: {
formatter: '{value} 万'
}
},
{
type: 'value',
name: '付款量',
min: 0,
max: 250,
position: 'right',
offset: 80,
axisLine: {
lineStyle: {
color: colors[1]
}
},
axisLabel: {
formatter: '{value} 万'
}
},
{
type: 'value',
name: '平均值',
min: 0,
max: 25,
position: 'left',
axisLine: {
lineStyle: {
color: colors[2]
}
},
axisLabel: {
formatter: '{value} 万'
}
}
],
series: [{
name: '下单量',
type: 'bar',
data: [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3],
itemStyle: {
normal: {
barBorderRadius: 2
}
}
},
{
barGap: '-50%', // 增加偏移量使重叠显示
name: '付款量',
type: 'bar',
yAxisIndex: 1,
data: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],
itemStyle: {
normal: {
barBorderRadius: 2
}
}
},
{
name: '平均值',
type: 'line',
yAxisIndex: 2,
data: [2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
}
]
};
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
window.addEventListener("resize",function(){
myChart.resize();
});
}
function ceshis4() {
var myChart = echarts.init(document.getElementById('chart5'));
var labelimg = "";
option = {
/*backgroundColor: "#0E233E",*/
"grid": {
"left": "6%",
"top": "10%",
"right": "3%",
"bottom": "15%"
},
"legend": {
"data": [
"日本",
"韩国",
"美国",
"澳大利亚",
"俄罗斯",
"法国",
"英国"
],
"top": "92%",
"icon": "circle",
"textStyle": {
"color": "#0DCAD2"
}
},
"color": [
"#534EE1",
"#ECD64F",
"#00E4F0",
"#44D16D",
"#124E91",
"#BDC414",
"#C8CCA5"
],
"tooltip": {
"position": "top",
},
"xAxis": {
"type": "category",
"data": [
"日本",
"韩国",
"美国",
"澳大利亚",
"俄罗斯",
"法国",
"英国"
],
"axisLabel": {
"show": false,
"color": "#999999",
"fontSize": 16
},
"axisTick": {
"show": false
},
"axisLine": {
"show": false
},
"splitLine": {
"show": false
}
},
"yAxis": {
"type": "value",
"axisLabel": {
"show": false,
"color": "#999999",
"fontSize": 16
},
"axisTick": {
"show": false
},
"axisLine": {
"show": false
},
"splitLine": {
"show": false
}
},
"series": [{
"name": "日本",
"data": [
0,
0,
0,
0,
0,
0,
0
],
"stack": "a",
"type": "bar"
},
{
"name": "韩国",
"data": [
0,
0,
0,
0,
0,
0,
0
],
"stack": "a",
"type": "bar"
},
{
"name": "美国",
"data": [
0,
0,
0,
0,
0,
0,
0
],
"stack": "a",
"type": "bar"
},
{
"name": "澳大利亚",
"data": [
0,
0,
0,
0,
0,
0,
0
],
"stack": "a",
"type": "bar"
},
{
"name": "俄罗斯",
"data": [
0,
0,
0,
0,
0,
0,
0
],
"stack": "a",
"type": "bar"
},
{
"name": "法国",
"data": [
0,
0,
0,
0,
0,
0,
0
],
"stack": "a",
"type": "bar"
},
{
"name": "英国",
"data": [
0,
0,
0,
0,
0,
0,
0
],
"stack": "a",
"type": "bar"
},
{
"type": "pictorialBar",
"name": "提示框值",
"data": [{
"name": "",
"value": 868,
"label": {
"show": true,
"position": "top",
formatter: function(params) {
var index = params.dataIndex;
var str = "{a|" + params.value + "}\n{c|" + params.value + "个}";
return str;
},
"rich": {
"a": {
"fontSize": 18,
"color": "#534EE1",
"align": "center",
"height": 40
},
"c": {
"fontSize": 18,
"color": "#fff",
"padding": [
-2,
0,
2,
0
],
"backgroundColor": {
"image": labelimg
},
"align": "center",
"verticalAlign": "bottom",
"height": 50,
"lineHeight": 40,
"width": 100
}
}
},
"itemStyle": {
"normal": {
"color": {
"type": "linear",
"x": 0,
"y": 0,
"x2": 0,
"y2": 1,
"colorStops": [{
"offset": 0,
"color": "rgba(83,78,225,1)"
},
{
"offset": 1,
"color": "rgba(83,78,225,0)"
}
],
"global": false
}
}
}
},
{
"name": "",
"value": 306,
"label": {
"show": true,
"position": "top",
formatter: function(params) {
var index = params.dataIndex;
var str = "{a|" + params.value + "}\n{c|" + params.value + "个}";
return str;
},
"rich": {
"a": {
"fontSize": 18,
"color": "#ECD64F",
"align": "center",
"height": 40
},
"c": {
"fontSize": 18,
"color": "#fff",
"padding": [
-4,
0,
8,
0
],
"backgroundColor": {
"image": labelimg
},
"align": "center",
"verticalAlign": "bottom",
"height": 45,
"lineHeight": 40,
"width": 100
}
}
},
"itemStyle": {
"normal": {
"color": {
"type": "linear",
"x": 0,
"y": 0,
"x2": 0,
"y2": 1,
"colorStops": [{
"offset": 0,
"color": "rgba(236,214,79,1)"
},
{
"offset": 1,
"color": "rgba(236,214,79,0)"
}
],
"global": false
}
}
}
},
{
"name": "",
"value": 162,
"label": {
"show": true,
"position": "top",
formatter: function(params) {
var index = params.dataIndex;
var str = "{a|" + params.value + "}\n{c|" + params.value + "个}";
return str;
},
"rich": {
"a": {
"fontSize": 18,
"color": "#00E4F0",
"align": "center",
"height": 40
},
"c": {
"fontSize": 18,
"color": "#fff",
"padding": [
-4,
0,
8,
0
],
"backgroundColor": {
"image": labelimg
},
"align": "center",
"verticalAlign": "bottom",
"height": 45,
"lineHeight": 40,
"width": 100
}
}
},
"itemStyle": {
"normal": {
"color": {
"type": "linear",
"x": 0,
"y": 0,
"x2": 0,
"y2": 1,
"colorStops": [{
"offset": 0,
"color": "rgba(0,228,240,1)"
},
{
"offset": 1,
"color": "rgba(0,228,240,0)"
}
],
"global": false
}
}
}
},
{
"name": "",
"value": 362,
"label": {
"show": true,
formatter: function(params) {
var index = params.dataIndex;
var str = "{a|" + params.value + "}\n{c|" + params.value + "个}";
return str;
},
"position": "top",
"rich": {
"a": {
"fontSize": 18,
"color": "#44D16D",
"align": "center",
"height": 40
},
"c": {
"fontSize": 18,
"color": "#fff",
"padding": [
-4,
0,
8,
0
],
"backgroundColor": {
"image": labelimg
},
"align": "center",
"verticalAlign": "bottom",
"height": 45,
"lineHeight": 40,
"width": 100
}
}
},
"itemStyle": {
"normal": {
"color": {
"type": "linear",
"x": 0,
"y": 0,
"x2": 0,
"y2": 1,
"colorStops": [{
"offset": 0,
"color": "rgba(68,209,109,1)"
},
{
"offset": 1,
"color": "rgba(68,209,109,0)"
}
],
"global": false
}
}
}
},
{
"name": "",
"value": 460,
"label": {
"show": true,
"position": "top",
formatter: function(params) {
var index = params.dataIndex;
var str = "{a|" + params.value + "}\n{c|" + params.value + "个}";
return str;
},
"rich": {
"a": {
"fontSize": 18,
"color": "#124E91",
"align": "center",
"height": 30
},
"c": {
"fontSize": 18,
"color": "#fff",
"padding": [
-4,
0,
8,
0
],
"backgroundColor": {
"image": labelimg
},
"align": "center",
"verticalAlign": "bottom",
"height": 45,
"lineHeight": 40,
"width": 100
}
}
},
"itemStyle": {
"normal": {
"color": {
"type": "linear",
"x": 0,
"y": 0,
"x2": 0,
"y2": 1,
"colorStops": [{
"offset": 0,
"color": "rgba(18,78,145,1)"
},
{
"offset": 1,
"color": "rgba(18,78,145,0)"
}
],
"global": false
}
}
}
},
{
"name": "",
"value": 606,
"label": {
"show": true,
"position": "top",
formatter: function(params) {
var index = params.dataIndex;
var str = "{a|" + params.value + "}\n{c|" + params.value + "个}";
return str;
},
"rich": {
"a": {
"fontSize": 18,
"color": "#BDC414",
"align": "center",
"height": 30
},
"c": {
"fontSize": 18,
"color": "#fff",
"padding": [
-4,
0,
8,
0
],
"backgroundColor": {
"image": labelimg
},
"align": "center",
"verticalAlign": "bottom",
"height": 45,
"lineHeight": 40,
"width": 100
}
}
},
"itemStyle": {
"normal": {
"color": {
"type": "linear",
"x": 0,
"y": 0,
"x2": 0,
"y2": 1,
"colorStops": [{
"offset": 0,
"color": "rgba(189,196,20,1)"
},
{
"offset": 1,
"color": "rgba(189,196,20,0)"
}
],
"global": false
}
}
}
},
{
"name": "",
"value": 506,
"label": {
"show": true,
"position": "top",
formatter: function(params) {
var index = params.dataIndex;
var str = "{a|" + params.value + "}\n{c|" + params.value + "个}";
return str;
},
"rich": {
"a": {
"fontSize": 18,
"color": "#C8CCA5",
"align": "center",
"height": 30
},
"c": {
"fontSize": 18,
"color": "#fff",
"padding": [
-4,
0,
8,
0
],
"backgroundColor": {
"image": labelimg
},
"align": "center",
"verticalAlign": "bottom",
"height": 45,
"lineHeight": 40,
"width": 100
}
}
},
"itemStyle": {
"normal": {
"color": {
"type": "linear",
"x": 0,
"y": 0,
"x2": 0,
"y2": 1,
"colorStops": [{
"offset": 0,
"color": "rgba(200,204,165,1)"
},
{
"offset": 1,
"color": "rgba(200,204,165,0)"
}
],
"global": false
}
}
}
}
],
"stack": "a",
"symbol": "path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z"
}
]
}
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
window.addEventListener("resize",function(){
myChart.resize();
});
}
function ceshis5() {
var myChart = echarts.init(document.getElementById('map'));
var uploadedDataURL = "./js/data-1528971808162-BkOXf61WX.json";
//console.log(uploadedDataURL);
// echarts.extendsMap = function(id, opt) {
// // 实例
// var cityMap = {
// "郑州市": zhengzhou,
// "开封市": kaifeng,
// "洛阳市": luoyang,
// "平顶山市": pingdingshan,
// "安阳市": anyang,
// "鹤壁市": hebi,
// "新乡市": xinxiang,
// "焦作市": jiaozuo,
// "濮阳市": puyang,
// "漯河市": luohe,
// "三门峡市": sanmenxia,
// "南阳市": nanyang,
// "商丘市": shangqiu,
// "信阳市": xinyang,
// "周口市": zhoukou,
// "许昌市": xuchang,
// "驻马店市": zhumadian
// };
// }
var geoGpsMap = {
'1': [116.4071, 39.9046],
'2': [125.8154, 44.2584],
'3': [121.4737, 31.2303],
'4': [117.1582, 36.8701],
'5': [103.9526, 30.7617],
'6': [106.6302, 26.6470],
};
var geoCoordMap = {
"江苏": [118.8062, 31.9208],
'黑龙江': [127.9688, 45.368],
'内蒙古': [110.3467, 41.4899],
"吉林": [125.8154, 44.2584],
'北京市': [116.4551, 40.2539],
"辽宁": [123.1238, 42.1216],
"河北": [114.4995, 38.1006],
"天津": [117.4219, 39.4189],
"山西": [112.3352, 37.9413],
"陕西": [109.1162, 34.2004],
"甘肃": [103.5901, 36.3043],
"宁夏": [106.3586, 38.1775],
"青海": [101.4038, 36.8207],
"新疆": [87.9236, 43.5883],
"四川": [103.9526, 30.7617],
"重庆": [108.384366, 30.439702],
"山东": [117.1582, 36.8701],
"河南": [113.4668, 34.6234],
"安徽": [117.29, 32.0581],
"湖北": [114.3896, 30.6628],
"浙江": [119.5313, 29.8773],
"福建": [119.4543, 25.9222],
"江西": [116.0046, 28.6633],
"湖南": [113.0823, 28.2568],
"贵州": [106.6992, 26.7682],
"云南": [102.9199, 25.4663],
"广东": [113.12244, 23.009505],
"广西": [108.479, 23.1152],
"海南": [110.3893, 19.8516],
'上海': [121.4648, 31.2891],
};
var d1 = {
'江苏': 10041,
'黑龙江': 4093,
'内蒙古': 1157,
'吉林': 4903,
'北京市': 2667,
'辽宁': 8331,
'河北': 23727,
'天津': 681,
'山西': 5352,
'陕西': 38,
'甘肃': 77,
'宁夏': 65,
'青海': 10,
'新疆': 193,
'四川': 309,
'重庆': 77,
'山东': 21666,
'河南': 15717,
'安徽': 15671,
'湖北': 3714,
'浙江': 3141,
'福建': 955,
'江西': 4978,
'湖南': 778,
'贵州': 33,
'云南': 149,
'广东': 1124,
'广西': 125,
'海南': 7,
'上海': 2155,
};
var d2 = {
"江苏": 0,
'黑龙江': 0,
'内蒙古': 0,
"吉林": 0,
'北京市': 0,
"辽宁": 0,
"河北": 0,
"天津": 0,
"山西": 0,
"陕西": 0,
"甘肃": 0,
"宁夏": 0,
"青海": 0,
"新疆": 0,
"四川": 0,
"重庆": 0,
"山东": 0,
"河南": 0,
"安徽": 0,
"湖北": 0,
"浙江": 0,
"福建": 0,
"江西": 0,
"湖南": 0,
"贵州": 0,
"云南": 0,
"广东": 0,
"广西": 0,
'海南': 0,
'上海': 0,
};
var d3 = {
'江苏': 11788,
'黑龙江': 1944,
'内蒙古': 2954,
'吉林': 3482,
'北京市': 1808,
'辽宁': 5488,
'河北': 27035,
'天津': 2270,
'山西': 13623,
'陕西': 4221,
'甘肃': 754,
'宁夏': 1783,
'青海': 91,
'新疆': 1907,
'四川': 4905,
'重庆': 1420,
'山东': 39781,
'河南': 16154,
'安徽': 7914,
'湖北': 6802,
'浙江': 5812,
'福建': 3345,
'江西': 4996,
'湖南': 5627,
'贵州': 1504,
'云南': 2725,
'广东': 6339,
'广西': 1009,
'海南': 0,
'上海': 1988,
};
var d4 = {
"江苏": 0,
'黑龙江': 0,
'内蒙古': 0,
"吉林": 0,
'北京市': 0,
"辽宁": 0,
"河北": 0,
"天津": 0,
"山西": 0,
"陕西": 0,
"甘肃": 0,
"宁夏": 0,
"青海": 0,
"新疆": 0,
"四川": 0,
"重庆": 0,
"山东": 0,
"河南": 0,
"安徽": 0,
"湖北": 0,
"浙江": 0,
"福建": 0,
"江西": 0,
"湖南": 0,
"贵州": 0,
"云南": 0,
"广东": 0,
"广西": 0,
'海南': 0,
'上海': 0,
};
var d5 = {
'江苏': 159,
'黑龙江': 5,
'内蒙古': 54,
'吉林': 10,
'北京市': 0,
'辽宁': 0,
'河北': 1679,
'天津': 1,
'山西': 2698,
'陕西': 1744,
'甘肃': 362,
'宁夏': 429,
'青海': 122,
'新疆': 731,
'四川': 3925,
'重庆': 1480,
'山东': 79,
'河南': 1017,
'安徽': 208,
'湖北': 1209,
'浙江': 1418,
'福建': 1237,
'江西': 1004,
'湖南': 1511,
'贵州': 345,
'云南': 1429,
'广东': 2242,
'广西': 2271,
'海南': 59,
'上海': 8,
};
var d6 = {
"江苏": 20,
'黑龙江': 60,
'内蒙古': 80,
"吉林": 10,
'北京市': 80,
"辽宁": 40,
"河北": 50,
"天津": 60,
"山西": 40,
"陕西": 60,
"甘肃": 40,
"宁夏": 10,
"青海": 0,
"新疆": 0,
"四川": 80,
"重庆": 0,
"山东": 60,
"河南": 0,
"安徽": 0,
"湖北": 10,
"浙江": 100,
"福建": 60,
"江西": 0,
"湖南": 0,
"贵州": 150,
"云南": 0,
"广东": 80,
"广西": 0,
'海南': 0,
'上海': 50,
};
var colors = [
["#1DE9B6", "#1DE9B6", "#FFDB5C", "#FFDB5C", "#04B9FF", "#04B9FF"],
["#1DE9B6", "#F46E36", "#04B9FF", "#5DBD32", "#FFC809", "#FB95D5", "#BDA29A", "#6E7074", "#546570", "#C4CCD3"],
["#37A2DA", "#67E0E3", "#32C5E9", "#9FE6B8", "#FFDB5C", "#FF9F7F", "#FB7293", "#E062AE", "#E690D1", "#E7BCF3", "#9D96F5", "#8378EA", "#8378EA"],
["#DD6B66", "#759AA0", "#E69D87", "#8DC1A9", "#EA7E53", "#EEDD78", "#73A373", "#73B9BC", "#7289AB", "#91CA8C", "#F49F42"],
];
var colorIndex = 0;
$(function() {
// var geoCoordMap = {
// '郑州': [113.64964385, 34.7566100641],
// '开封': [114.351642118, 34.8018541758],
// '洛阳': [112.447524769, 34.6573678177],
// '平顶山': [113.300848978, 33.7453014565],
// '安阳': [114.351806508, 36.1102667222],
// '鹤壁': [114.297769838, 35.7554258742],
// '新乡': [113.912690161, 35.3072575577],
// '焦作': [113.211835885, 35.234607555],
// '濮阳': [115.026627441, 35.7532978882],
// '漯河': [114.0460614, 33.5762786885],
// '三门峡': [111.181262093, 34.7833199411],
// '南阳': [112.542841901, 33.0114195691],
// "商丘": [115.641885688, 34.4385886402],
// '信阳': [114.085490993, 32.1285823075],
// '周口': [114.654101942, 33.6237408181],
// '许昌': [113.83531246, 34.0267395887],
// '驻马店': [114.049153547, 32.9831581541]
// };
var year = ["北京", "长春", "上海", "青岛", "成都", "贵阳"];
var mapData = [
[],
[],
[],
[],
[],
[],
];
/*柱子Y名称*/
var categoryData = [];
var barData = [];
for (var key in geoCoordMap) {
mapData[0].push({
"year": '长春',
"name": key,
"value": d1[key] / 100,
"value1": d1[key] / 100,
});
mapData[1].push({
"year": '长春',
"name": key,
"value": d1[key] / 100,
"value1": d2[key] / 100,
});
mapData[2].push({
"year": '青岛',
"name": key,
"value": d3[key] / 100,
"value1": d3[key] / 100,
});
mapData[3].push({
"year": '青岛',
"name": key,
"value": d3[key] / 100,
"value1": d4[key] / 100,
});
mapData[4].push({
"year": '成都',
"name": key,
"value": d5[key] / 100,
"value1": d5[key] / 100,
});
mapData[5].push({
"year": '成都',
"name": key,
"value": d5[key] / 100,
"value1": d6[key] / 100,
});
}
for (var i = 0; i < mapData.length; i++) {
mapData[i].sort(function sortNumber(a, b) {
return a.value - b.value
});
barData.push([]);
categoryData.push([]);
for (var j = 0; j < mapData[i].length; j++) {
barData[i].push(mapData[i][j].value1);
categoryData[i].push(mapData[i][j].name);
}
}
/*$.getJSON(uploadedDataURL, function(geoJson) {*/
/*echarts.registerMap('china', geoJson);*/
/*echarts.registerMap('china', geoJson);*/
var convertData = function(data) {
var res = [];
for (var i = 0; i < data.length; i++) {
var geoCoord = geoCoordMap[data[i].name];
if (geoCoord) {
res.push({
name: data[i].name,
value: geoCoord.concat(data[i].value)
});
}
}
return res;
};
var convertToLineData = function(data, gps) {
var res = [];
for (var i = 0; i < data.length; i++) {
var dataItem = data[i];
var toCoord = geoCoordMap[dataItem.name];
//debugger;
var fromCoord = gps; //郑州
// var toCoord = geoGps[Math.random()*3];
if (fromCoord && toCoord) {
res.push([{
coord: fromCoord,
value: dataItem.value
}, {
coord: toCoord,
}]);
}
}
return res;
};
optionXyMap01 = {
timeline: {
data: year,
axisType: 'category',
autoPlay: true,
playInterval: 3000,
left: '10%',
right: '10%',
bottom: '3%',
width: '80%',
// height: null,
label: {
normal: {
textStyle: {
color: '#ddd'
}
},
emphasis: {
textStyle: {
color: '#fff'
}
}
},
symbolSize: 10,
lineStyle: {
color: '#555'
},
checkpointStyle: {
borderColor: '#777',
borderWidth: 2
},
controlStyle: {
showNextBtn: true,
showPrevBtn: true,
normal: {
color: '#666',
borderColor: '#666'
},
emphasis: {
color: '#aaa',
borderColor: '#aaa'
}
},
},
baseOption: {
animation: true,
animationDuration: 1000,
animationEasing: 'cubicInOut',
animationDurationUpdate: 1000,
animationEasingUpdate: 'cubicInOut',
grid: {
right: '1%',
top: '15%',
bottom: '10%',
width: '20%'
},
tooltip: {
trigger: 'axis', // hover触发器
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow', // 默认为直线,可选为:'line' | 'shadow'
shadowStyle: {
color: 'rgba(150,150,150,0.1)' //hover颜色
}
}
},
geo: {
show: true,
map: 'china',
roam: true,
zoom: 1,
center: [113.83531246, 34.0267395887],
label: {
emphasis: {
show: false
}
},
itemStyle: {
normal: {
borderColor: 'rgba(147, 235, 248, 1)',
borderWidth: 1,
areaColor: {
type: 'radial',
x: 0.5,
y: 0.5,
r: 0.8,
colorStops: [{
offset: 0,
color: 'rgba(147, 235, 248, 0)' // 0% 处的颜色
}, {
offset: 1,
color: 'rgba(147, 235, 248, .2)' // 100% 处的颜色
}],
globalCoord: false // 缺省为 false
},
shadowColor: 'rgba(128, 217, 248, 1)',
// shadowColor: 'rgba(255, 255, 255, 1)',
shadowOffsetX: -2,
shadowOffsetY: 2,
shadowBlur: 10
},
emphasis: {
areaColor: '#389BB7',
borderWidth: 0
}
}
},
},
options: []
};
for (var n = 0; n < year.length; n++) {
optionXyMap01.options.push({
/*backgroundColor: '#013954',*/
title:
[{
text: '物流平台',
subtext: ' ',
left: '35%',
top: '15%',
textStyle: {
color: '#fff',
fontSize: 25
}
},
{
id: 'statistic',
text: year[n] + "数据统计情况",
left: '75%',
top: '8%',
textStyle: {
color: '#fff',
fontSize: 25
}
}
],
xAxis: {
type: 'value',
scale: true,
position: 'top',
min: 0,
boundaryGap: false,
splitLine: {
show: false
},
axisLine: {
show: false
},
axisTick: {
show: false
},
axisLabel: {
margin: 2,
textStyle: {
color: '#aaa'
}
},
},
yAxis: {
type: 'category',
// name: 'TOP 20',
nameGap: 16,
axisLine: {
show: true,
lineStyle: {
color: '#ddd'
}
},
axisTick: {
show: false,
lineStyle: {
color: '#ddd'
}
},
axisLabel: {
interval: 0,
textStyle: {
color: '#ddd'
}
},
data: categoryData[n]
},
series: [
//未知作用
{
//文字和标志
name: 'light',
type: 'scatter',
coordinateSystem: 'geo',
data: convertData(mapData[n]),
symbolSize: function(val) {
return val[2] / 10;
},
label: {
normal: {
formatter: '{b}',
position: 'right',
show: true
},
emphasis: {
show: true
}
},
itemStyle: {
normal: {
color: colors[colorIndex][n]
}
}
},
//地图?
{
type: 'map',
map: 'china',
geoIndex: 0,
aspectScale: 0.75, //长宽比
showLegendSymbol: false, // 存在legend时显示
label: {
normal: {
show: false
},
emphasis: {
show: false,
textStyle: {
color: '#fff'
}
}
},
roam: true,
itemStyle: {
normal: {
areaColor: '#031525',
borderColor: '#FFFFFF',
},
emphasis: {
areaColor: '#2B91B7'
}
},
animation: false,
data: mapData
},
//地图点的动画效果
{
// name: 'Top 5',
type: 'effectScatter',
coordinateSystem: 'geo',
data: convertData(mapData[n].sort(function(a, b) {
return b.value - a.value;
}).slice(0, 20)),
symbolSize: function(val) {
return val[2] / 10;
},
showEffectOn: 'render',
rippleEffect: {
brushType: 'stroke'
},
hoverAnimation: true,
label: {
normal: {
formatter: '{b}',
position: 'right',
show: true
}
},
itemStyle: {
normal: {
color: colors[colorIndex][n],
shadowBlur: 10,
shadowColor: colors[colorIndex][n]
}
},
zlevel: 1
},
//地图线的动画效果
{
type: 'lines',
zlevel: 2,
effect: {
show: true,
period: 4, //箭头指向速度,值越小速度越快
trailLength: 0.1, //特效尾迹长度[0,1]值越大,尾迹越长重
symbol: 'arrow', //箭头图标
symbolSize: 5, //图标大小
},
lineStyle: {
normal: {
color: colors[colorIndex][n],
width: 0.3, //尾迹线条宽度
opacity: 0.8, //尾迹线条透明度
curveness: .3 //尾迹线条曲直度
}
},
data: convertToLineData(mapData[n], geoGpsMap[n + 1])
},
//柱状图
{
zlevel: 1.5,
type: 'bar',
symbol: 'none',
itemStyle: {
normal: {
color: colors[colorIndex][n]
}
},
data: barData[n]
}
]
})
}
myChart.setOption(optionXyMap01);
/*});*/
});
function randomNum(minNum, maxNum) {
switch (arguments.length) {
case 1:
return parseInt(Math.random() * minNum + 1, 10);
break;
case 2:
return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10);
break;
default:
return 0;
break;
}
}
// 使用刚指定的配置项和数据显示图表。
//myChart.setOption(option);
window.addEventListener("resize",function(){
myChart.resize();
});
}
function ceshis7() {
var myChart = echarts.init(document.getElementById('chart_1'));
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
window.addEventListener("resize",function(){
myChart.resize();
});
}
});
/*时段产量图表*/
function setTimeProductionEchart(chart) {
var data = [
{
name: "产量",
list: [{
date: "周一",
value: 20
},
{
date: "周二",
value: 13
},
{
date: "周三",
value: 15
},
{
date: "周四",
value: 18
},
{
date: "周五",
value: 6
},
{
date: "周六",
value: 11
},
{
date: "周日",
value: 14
}
]
}
];
var dateList=[];
var yData1 = [];
data[0].list.forEach(function(item,index){
dateList.push(data[0].list[index].date);
yData1.push(data[0].list[index].value);
});
var opsChart={
color: ['#e08f68'],
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
},
formatter: function(params) {
var tiplabel = params[0].name + '<br/>' +
'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:' + params[0].color.colorStops[0].color + '"></span>' +
params[0].seriesName + ':' + params[0].value;
return tiplabel;
}
},
legend: {
data: [data[0].name],
left: 'right',
icon: "circle",
textStyle: {
color: '#fff'
}
},
grid: {
top:80,
left: 20,
bottom: 20,
right: 40,
containLabel: true,
},
xAxis: {
type: 'category',
data: dateList,
axisLabel: {
tooltip: {
show: true,
},
inside: false,
textStyle: {
fontSize: 14
},
interval: 0,
color: 'rgba(255,255,255,0.6)'
},
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: '#0C1A5B',
}
},
},
yAxis: [{
type: 'value',
splitLine: {
show: false,
lineStyle: {
color: 'rgba(255,255,255,0.1)'
}
},
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: '#0C1A5B',
}
},
axisLabel: {
textStyle: {
fontSize: 14
},
formatter: function(value) {
return value
},
color: 'rgba(255,255,255,0.6)'
}
}],
series: [
{
name: data[0].name,
yAxisIndex: 0,
//barMinHeight:5,
itemStyle: {
normal: {
label: {
show: true,
position: 'top',
color: '#fff',
fontSize: 14
},
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: '#00FFFF'
}, {
offset: 1,
color: '#004EFF'
}]),
opacity: 1,
shadowBlur: 10,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
},
type: 'bar',
data: yData1
}
]
}
chart.setOption(opsChart,true);
}
/*日排产达成数据*/
function setDailyDataEchart(chart) {
var ops= {
color:["#67c23a","#409eff"],
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {
right:0,
orient:"vertical",
textStyle:{
color:'white'
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [
{
type: 'category',
data: ['1/01', '1/02', '1/03', '1/04', '1/05', '1/06', '1/07'],
axisTick:{
show:true,
lineStyle:{
color:"white"
}
},
axisLine:{
show:true,
lineStyle:{
color:"white"
}
},
axisLabel:{
show:true,
color:'white'
}
}
],
yAxis:
{
type: 'value',
splitLine: {
show: false
},
axisTick:{
show:false
},
axisLine:{
show:false
},
axisLabel:{
show:true,
color:'white'
}
},
series: [
{
name: '计划',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: [120, 132, 101, 134, 90, 230, 210]
},
{
name: '完工',
type: 'bar',
stack: 'Ad',
emphasis: {
focus: 'series'
},
data: [220, 182, 191, 234, 290, 330, 310]
}
]
};
chart.setOption(ops,true);
}
/*合格率*/
function setHglEchart(chart) {
var ops= {
color:["#409eff"],
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
axisTick:{
show:true,
lineStyle:{
color:"white"
}
},
axisLine:{
show:true,
lineStyle:{
color:"white"
}
},
axisLabel:{
show:true,
color:'white'
}
},
yAxis: {
type: 'value',
splitLine: {
show: false
},
axisTick:{
show:false
},
axisLine:{
show:false
},
axisLabel:{
show:true,
color:'white'
}
},
series: [
{
data: [150, 230, 224, 218, 135, 147, 260],
type: 'line',
itemStyle : { normal: {label : {show: true}}}
}
]
};
chart.setOption(ops,true);
}
function setPieDailyChart(chart) {
var ops= {
color:["#A2E9FF","#409eff"],
tooltip: {
trigger: 'item'
},
legend: {
top: '5%',
left: 'center',
show:false
},
series: [
{
name: '完成率',
type: 'pie',
radius: ['40%', '70%'],
avoidLabelOverlap: false,
/*label: {
show: false,
position: 'center',
normal:{
show:true,
position:"center",
formatter: '{a}\r\n{b}%',
/!* formatter:function () {
}*!/
}
},*/
/* emphasis: {
label: {
show: true,
fontSize: '40',
fontWeight: 'bold'
}
},*/
labelLine: {
show: false
},
data: [
{ value: 20, name: '未完工'},
{ value: 80, name: '完工' },
]
}
]
};
chart.setOption(ops,true);
}
// function setPieYChart(chart) {
// var ops= {
// tooltip: {
// trigger: 'item'
// },
// legend: {
// top: '5%',
// left: 'center',
// show:false
// },
// series: [
// {
// name: 'Access From',
// type: 'pie',
// radius: ['40%', '70%'],
// avoidLabelOverlap: false,
// label: {
// show: false,
// position: 'center'
// },
// emphasis: {
// label: {
// show: true,
// fontSize: '40',
// fontWeight: 'bold'
// }
// },
// labelLine: {
// show: false
// },
// data: [
// { value: 1048, name: 'Search Engine' },
// { value: 735, name: 'Direct' },
// { value: 580, name: 'Email' },
// { value: 484, name: 'Union Ads' },
// { value: 300, name: 'Video Ads' }
// ]
// }
// ]
// };
// chart.setOption(ops,true);
// }
// JavaScript Document
(function($){
$.fn.myScroll = function(options){
//默认配置
var defaults = {
speed:60, //滚动速度,值越大速度越慢
rowHeight:24 //每行的高度
};
var opts = $.extend({}, defaults, options),intId = [];
function marquee(obj, step){
obj.find("ul").animate({
marginTop: '-=1'
},0,function(){
var s = Math.abs(parseInt($(this).css("margin-top")));
if(s >= step){
$(this).find("li").slice(0, 1).appendTo($(this));
$(this).css("margin-top", 0);
}
});
}
this.each(function(i){
var sh = opts["rowHeight"],speed = opts["speed"],_this = $(this);
intId[i] = setInterval(function(){
if(_this.find("ul").height()<=_this.height()){
clearInterval(intId[i]);
}else{
marquee(_this, sh);
}
}, speed);
_this.hover(function(){
clearInterval(intId[i]);
},function(){
intId[i] = setInterval(function(){
if(_this.find("ul").height()<=_this.height()){
clearInterval(intId[i]);
}else{
marquee(_this, sh);
}
}, speed);
});
});
}
})(jQuery);
\ No newline at end of file
/* Sergey Golovin 2014 golovim@gmail.com */
(function() {
var a, b = {}.hasOwnProperty;
a = jQuery,
a.fn.extend({
wodry: function(c) {
var d, e, f, g, h;
return null == c && (c = {}),
e = a.extend({},
c),
null == e.separator && (e.separator = "|"),
null == e.delay && (e.delay = 2e3),
null == e.animationDuration && (e.animationDuration = 1000),
null == e.animation && (e.animation = "rotateY"),
null == e.callback && (e.callback = function() {}),
null == e.shift && (e.shift = {}),
null == (f = e.shift).x && (f.x = 0),
null == (g = e.shift).y && (g.y = 0),
null == (h = e.shift).z && (h.z = 0),
d = {
rotateY: {
front_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px)",
back_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) rotateY(180deg)",
action: {
transform: " rotateY(180deg)",
transition: " " + e.animationDuration + "ms"
}
},
rotateX: {
front_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px)",
back_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) rotateX(180deg)",
action: {
transform: " rotateX(180deg)",
transition: " " + e.animationDuration + "ms"
}
},
rotateAll: {
isCoplex: !0,
front_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) rotateX(180deg) rotateY(180deg)",
back_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) rotateX(180deg) rotateY(180deg)",
action: {
transform: " rotateX(180deg) rotateY(180deg)",
transition: " " + e.animationDuration + "ms"
}
},
scaleX: {
isCoplex: !0,
front_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) scaleX(0.1)",
back_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) scaleX(0.1)",
action: {
transform: " scaleX(10)",
transition: " " + e.animationDuration + "ms"
}
},
scaleY: {
isCoplex: !0,
front_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) scaleY(0.1)",
back_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) scaleY(0.1)",
action: {
transform: " scaleY(10)",
transition: " " + e.animationDuration + "ms"
}
},
scaleAll: {
isCoplex: !0,
front_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) scaleY(0.1) slaleX(0.1)",
back_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) scaleY(0.1) scaleX(0.1)",
action: {
transform: " scaleY(10) scaleX(10)",
transition: " " + e.animationDuration + "ms"
}
},
anticlockwise: {
isCoplex: !0,
front_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) rotate3d(100,40,-80,180deg)",
back_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) rotate3d(100,40,-80,180deg)",
action: {
transform: " rotate3d(100,40,-80,180deg)",
transition: " " + e.animationDuration + "ms"
}
},
clockwise: {
isCoplex: !0,
front_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) rotate3d(40,100,80,180deg)",
back_transform: "translate3d(" + e.shift.x + "px," + e.shift.y + "px," + e.shift.z + "px) rotate3d(40,100,80,180deg)",
action: {
transform: " rotate3d(40,100,80,180deg)",
transition: " " + e.animationDuration + "ms"
}
}
},
this.each(function() {
var c, f, g, h, i;
return h = a(this),
f = [],
a.each(h.text().split(e.separator),
function(a, b) {
return f.push(b)
}),
h.text(f[0]),
i = function(a, c) {
var d, e, f, g, h, i, j, k, l, m, n;
for (i = {},
g = {},
l = 0, m = a.length; m > l; l++) h = a[l],
d = a.indexOf(h),
g[h] = c[d];
if (a.length === c.length) {
for (h in g) b.call(g, h) && (j = g[h], n = ["-webkit-" + h, "-moz-" + h, "-o-" + h], k = n[0], e = n[1], f = n[2], i[k] = j, i[e] = j, i[f] = j, i[h] = j);
return i
}
},
c = function(b, c, d, e) {
return c.html(""),
a("<span class='front-face'>" + d + "</span>").appendTo(c),
a("." + c.context.className + " .front-face").css(i(["transform"], [b.front_transform])),
a("<span class='back-face'>" + e + "</span>").appendTo(c),
a("." + c.context.className + " .back-face").css(i(["transform"], [b.back_transform])),
c.wrapInner("<span class='adjecting' />").find(".adjecting").hide().show().css(i(["transform", "transition"], [b.action.transform, b.action.transition])),
b.isCoplex ? setTimeout(function() {
return a("." + c.context.className + " .front-face").remove()
},
1) : void 0
},
g = function() {
var b, g;
return h.find(".back-face").length > 0 && h.html(h.find(".back-face").html()),
g = h.text(),
b = a.inArray(g, f),
b + 1 === f.length && (b = -1),
c(d[e.animation], h, g, f[b + 1])
},
setInterval(function() {
return g()
//e.callback()
},
e.delay + e.animationDuration)
})
}
})
}).call(this);
//# sourceMappingURL=wodry.min.map
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>KEWELL车间作业及质量看板</title>
<link rel="stylesheet" href="../../css/dashboard/wodry.css">
<link rel="stylesheet" href="../../css/dashboard/index.css">
<link rel="stylesheet" href="../../css/dashboard/public.css">
</head>
<body>
<div class="main">
<div class="header">
<div class="header-left fl" id="time"></div>
<div class="header-center fl">
<div class="header-title">
车间作业及质量看板
</div>
<div class="header-img"></div>
</div>
<div class="header-right fl"></div>
<div class="header-bottom fl"></div>
</div>
<div class="center">
<div class="center-left fl">
<div class="left-top rightTop border">
<!--<h1 id="ceshi">数据可视化</h1>-->
<div class="title">时段产量</div>
<div class="bottom-b">
<div id="chartSdcl" class="allnav"></div>
</div>
</div>
<div class="left-cen rightTop border">
<div class="title">日排产达成数据</div>
<div class="bottom-b">
<div id="chartRpcdcsj" class="allnav"></div>
</div>
</div>
<div class="left-bottom rightTop border">
<div class="title">静电手环</div>
<div class="bottom-b">
<div id="chartJdsh" class="allnav">
<div class="allnav-left">
<div class="circle circle-normal" id="chartJdshCirle" ></div>
<ul class="allnav-circle">
<li>
<span class="circle circle-small circle-normal"></span>
<span>正常</span>
</li>
<li>
<span class="circle circle-small circle-close"></span>
<span>关闭</span>
</li>
<li>
<span class="circle circle-small circle-offine"></span>
<span>离线</span>
</li>
<li>
<span class="circle circle-small circle-info"></span>
<span>警告</span>
</li>
</ul>
</div>
<div class="allnav-right">
<ul>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
<li><div class="circle circle-middle out circle-normal"><div class="circle in"></div></div></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="center-cen fl">
<div class="cen-top rightTop border">
<video width="100%" height="100%" controls id="firstVideo" autoplay="autoplay" muted>
<source src="https://media.w3.org/2010/05/sintel/trailer.mp4" type="video/mp4">
<!-- <source src="http://vfx.mtime.cn/Video/2019/02/04/mp4/190204084208765161.mp4.ogg" type="video/ogg">-->
<!-- <source src="http://vfx.mtime.cn/Video/2019/02/04/mp4/190204084208765161.mp4.webm" type="video/webm">-->
<object data="https://media.w3.org/2010/05/sintel/trailer.mp4" width="100%" height="100%">
<embed src="https://media.w3.org/2010/05/sintel/trailer.mp4" width="100%" height="100%">
</object>
</video>
</div>
<div class="cen-bottom rightTop border">
<div class="title">生产进度跟踪</div>
<div class="bottom-b">
<div id="chartScjdgz" class="allnav">
<div class="echart wenzi">
<div class="gun">
<span>序号</span>
<span>订单号</span>
<span>物料</span>
<span>描述</span>
<span>计划</span>
<span>完工</span>
<span>订单时间</span>
<span>达成率</span>
</div>
<div id="FontScroll" class="myscroll">
<ul>
<li>
<div class="fontInner clearfix">
<span>
<b>1</b>
</span>
<span>WO0001</span>
<span>Wl001</span>
<span>产品1</span>
<span>100</span>
<span>80</span>
<span>01-01</span>
<span>80%</span>
</div>
</li>
<li>
<div class="fontInner clearfix">
<span>
<b>2</b>
</span>
<span>WO0001</span>
<span>Wl001</span>
<span>产品1</span>
<span>100</span>
<span>80</span>
<span>01-01</span>
<span>80%</span>
</div>
</li>
<li>
<div class="fontInner clearfix">
<span>
<b>3</b>
</span>
<span>WO0001</span>
<span>Wl001</span>
<span>产品1</span>
<span>100</span>
<span>80</span>
<span>01-01</span>
<span>80%</span>
</div>
</li>
<li>
<div class="fontInner clearfix">
<span>
<b>4</b>
</span>
<span>WO0001</span>
<span>Wl001</span>
<span>产品1</span>
<span>100</span>
<span>80</span>
<span>01-01</span>
<span>80%</span>
</div>
</li>
<li>
<div class="fontInner clearfix">
<span>
<b>5</b>
</span>
<span>WO0001</span>
<span>Wl001</span>
<span>产品1</span>
<span>100</span>
<span>80</span>
<span>01-01</span>
<span>80%</span>
</div>
</li>
<li>
<div class="fontInner clearfix">
<span>
<b>6</b>
</span>
<span>WO0001</span>
<span>Wl001</span>
<span>产品1</span>
<span>100</span>
<span>80</span>
<span>01-01</span>
<span>80%</span>
</div>
</li>
<li>
<div class="fontInner clearfix">
<span>
<b>7</b>
</span>
<span>WO0001</span>
<span>Wl001</span>
<span>产品1</span>
<span>100</span>
<span>80</span>
<span>01-01</span>
<span>80%</span>
</div>
</li>
<li>
<div class="fontInner clearfix">
<span>
<b>8</b>
</span>
<span>WO0001</span>
<span>Wl001</span>
<span>产品1</span>
<span>100</span>
<span>80</span>
<span>01-01</span>
<span>80%</span>
</div>
</li>
<li>
<div class="fontInner clearfix">
<span>
<b>9</b>
</span>
<span>WO0001</span>
<span>Wl001</span>
<span>产品1</span>
<span>100</span>
<span>80</span>
<span>01-01</span>
<span>80%</span>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="center-right fr">
<div class="right-top rightTop border">
<div class="title">日计划/月计划达成</div>
<div class="chart" style="width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;">
<ul style="width: 100%;height: 100%">
<li style="float: left;width: 50%;height: 100%;position: relative;overflow:hidden;">
<div style="position: absolute;top: 0;bottom: 0.4rem;left: 0;right: 0">
<div id="chartRjh" class="allnav"></div>
</div>
<div style="position: absolute;bottom: 0;right: 0;left: 0;text-align: center">
<div>日计划数:<span>100</span></div>
<div>日完工数:<span>80</span></div>
</div>
</li>
<li style="float: left;width: 50%;height: 100%;position: relative;overflow:hidden;">
<div style="position: absolute;top: 0;bottom: 0.4rem;left: 0;right: 0">
<div id="chartYjh" class="allnav"></div>
</div>
<div style="position: absolute;bottom: 0;right: 0;left: 0;text-align: center">
<div>月计划数:<span>3000</span></div>
<div>月完工数:<span>2400</span></div>
</div>
</li>
</ul>
</div>
</div>
<div class="right-cen border">
<div class="title">合格率</div>
<div class="right-cen-cent">
<div id="chartHgl" class="allnav"></div>
</div>
</div>
<div class="right-bottom rightTop border">
<div class="title">工艺流程图</div>
<div class="chat">
<img src="../../images/dashboard/gylc.png" alt="" style="width: 100%;height: 100%">
</div>
</div>
</div>
</div>
</div>
<script language="JavaScript" type="text/javascript" src="../../lib/easyui/jquery.min.js" charset="utf-8"></script>
<script language="JavaScript" type="text/javascript" src="../../lib/gui/static/plugins/echarts/echarts.min.js"></script>
<script src="../../js/dashboard/wodry.min.js"></script>
<script src="../../js/dashboard/fontscroll.js"></script>
<script src="../../js/dashboard/echarts.js"></script>
<!--<script src="js/mymap.js"></script>-->
<script>
$(document).ready(function () {
var whei = $(window).width()
$("html").css({ fontSize: whei / 22 });
$(window).resize(function () {
var whei = $(window).width();
$("html").css({ fontSize: whei / 22 })
});
var myChartSdcl = echarts.init(document.getElementById('chartSdcl'));
var chartRpcdcsj=echarts.init(document.getElementById("chartRpcdcsj"));
var chartHgl=echarts.init(document.getElementById("chartHgl"));
var chartRjh=echarts.init(document.getElementById("chartRjh"));
var chartYjh=echarts.init(document.getElementById("chartYjh"));
var chartJdshCirle=$("#chartJdshCirle");
setTimeProductionEchart(myChartSdcl); /*时段产量*/
setDailyDataEchart(chartRpcdcsj); /*日排产达成数据*/
setHglEchart(chartHgl);/*合格率*/
setPieDailyChart(chartRjh);/*日计划*/
setPieDailyChart(chartYjh);
$('.myscroll').myScroll({
speed: 60, //数值越大,速度越慢
rowHeight: 46 //li的高度
});
});
</script>
<script>
//顶部时间
function getTime(){
var myDate = new Date();
var myYear = myDate.getFullYear();
var myMonth = myDate.getMonth()+1;
var myToday = myDate.getDate();
var myDay = myDate.getDay();
var myHour = myDate.getHours();
var myMinute = myDate.getMinutes();
var mySecond = myDate.getSeconds();
var week = ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
var nowTime=nowTime = myYear+'-'+fillZero(myMonth)+'-'+fillZero(myToday)+'&nbsp;&nbsp;'+fillZero(myHour)+':'+fillZero(myMinute)+':'+fillZero(mySecond)+'&nbsp;&nbsp;'+week[myDay]+'&nbsp;&nbsp;';
$('#time').html(nowTime);
};
function fillZero(str){
var realNum;
if(str<10){
realNum = '0'+str;
}else{
realNum = str;
}
return realNum;
}
setInterval(getTime,1000);
</script>
</body>
</html>
\ No newline at end of file
<link rel="stylesheet" href="css/dashboard/mian.css">
<div class="gui-div kmesweb-dashboard" id="kmesDashboard">
<div class="kmesweb-dashboard" id="kmesDashboard">
<div id="navigation">
<div class="header">
<p class="p1">
......@@ -11,7 +11,7 @@
<div class="contain">
<ul>
<li>
<a href="bigdata.html" target="_blank">
<a href="kmes/dashboard/first" target="_blank">
<img src="images/dashboard/jinrong.png" alt="">
<span>展示效果一</span>
</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment