Commit 6303dc4e authored by 徐来柯's avatar 徐来柯

Merge branch 'master' of http://139.159.244.151:2900/laike/3DWeb

parents e259fa99 bd8f4bc3
...@@ -104,6 +104,44 @@ body { ...@@ -104,6 +104,44 @@ body {
line-height: 32px; line-height: 32px;
} }
.item_val_wrap{
display: flex;
}
.item_wrap_content{
margin-top: 20px;
flex: 1;
height: 170px;
text-align: center;
flex-wrap: wrap;
}
.item_wrap_content>div{
width: 96px;
height: 100%;
background: url(../imgs/numerical.png) no-repeat;
background-size: 100%;
overflow: hidden;
}
.item_wrap_content:nth-child(2)>div{
margin-top: 34px;
}
.val{
margin-top: 33px;
margin-bottom: 5px;
font-size: 19px;
font-family: PingFang SC;
font-weight: bold;
color: #FB9931;
line-height: 1;
}
.name{
font-size: 12px;
font-family: PingFang SC;
font-weight: 500;
color: #FFFEFE;
line-height: 1;
}
.item_img { .item_img {
width: 23px; width: 23px;
height: 23px; height: 23px;
......
...@@ -23,48 +23,39 @@ ...@@ -23,48 +23,39 @@
<img class="item_img" src="./imgs/title@2x.png" alt=""> <img class="item_img" src="./imgs/title@2x.png" alt="">
<span class="item_title" >文本标题</span> <span class="item_title" >文本标题</span>
</div> </div>
<div class="item_wrap" ></div> <div class="item_wrap item_val_wrap">
</div> <div class="item_wrap_content">
<div class="item">
<div class="item_header" >
<img class="item_img" src="./imgs/title@2x.png" alt="">
<span class="item_title" >文本标题</span>
</div>
<div class="item_wrap" ></div>
</div>
<div class="item">
<div class="item_header" >
<img class="item_img" src="./imgs/title@2x.png" alt="">
<span class="item_title" >文本标题</span>
</div>
<div class="item_wrap" >
<div> <div>
<div class="val" id="pro_eff">0</div> <div class="val" id="pro_eff">0</div>
<div class="name">生产效率</div> <div class="name">生产效率</div>
</div> </div>
</div>
<div class="item_wrap_content">
<div> <div>
<div class="val" id="per_eff">0</div> <div class="val" id="per_eff">0</div>
<div class="name">合格率</div> <div class="name">合格率</div>
</div> </div>
</div>
<div class="item_wrap_content">
<div> <div>
<div class="val" id="act_eff">0</div> <div class="val" id="act_eff">0</div>
<div class="name">稼动率</div> <div class="name">稼动率</div>
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="item"> <div class="item">
<div class="item_header" > <div class="item_header" >
<img src="" alt=""> <img class="item_img" src="./imgs/title@2x.png" alt="">
<span>文本标题</span> <span class="item_title" >文本标题</span>
</div> </div>
<div class="item_wrap" id="act_torque"></div> <div class="item_wrap" id="act_torque"></div>
</div> </div>
<div class="item"> <div class="item">
<div class="item_header"> <div class="item_header" >
<img src="" alt=""> <img class="item_img" src="./imgs/title@2x.png" alt="">
<span>文本标题</span> <span class="item_title" >文本标题</span>
</div> </div>
<div class="item_wrap" id="torque"></div> <div class="item_wrap" id="torque"></div>
</div> </div>
......
...@@ -192,7 +192,7 @@ function getTorque(){ ...@@ -192,7 +192,7 @@ function getTorque(){
}, },
series: [ series: [
{ {
name: '转矩1', name: '功率1',
data: data1, data: data1,
type: 'bar', type: 'bar',
stack: '1', stack: '1',
...@@ -208,7 +208,7 @@ function getTorque(){ ...@@ -208,7 +208,7 @@ function getTorque(){
} }
}, },
{ {
name: '转矩2', name: '功率2',
data: data2, data: data2,
type: 'bar', type: 'bar',
stack: '2', stack: '2',
...@@ -266,7 +266,7 @@ function getTorque(){ ...@@ -266,7 +266,7 @@ function getTorque(){
url : baseUrl + "/Base/PostRediusTest", url : baseUrl + "/Base/PostRediusTest",
dataType :"json", dataType :"json",
contentType: "application/json", contentType: "application/json",
data: JSON.stringify( ["TORQUE1", "TORQUE2"]), data: JSON.stringify( ["PROWER1", "PROWER2"]),
success :function(res) { success :function(res) {
if(xAxis.length === 6){ if(xAxis.length === 6){
data1.shift() data1.shift()
......
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