Commit bd8f4bc3 authored by lixiaoyi's avatar lixiaoyi

功率图修改

parent 6623fd71
...@@ -102,6 +102,9 @@ body { ...@@ -102,6 +102,9 @@ body {
.item_wrap { .item_wrap {
height: calc(100% - 32px); height: calc(100% - 32px);
line-height: 32px; line-height: 32px;
}
.item_val_wrap{
display: flex; display: flex;
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<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 class="item_wrap item_val_wrap">
<div class="item_wrap_content"> <div class="item_wrap_content">
<div> <div>
<div class="val" id="pro_eff">0</div> <div class="val" id="pro_eff">0</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