|
|
|
@ -4,35 +4,35 @@ |
|
|
|
|
<div class="card"> |
|
|
|
|
<div><img src="../../../assets/images/用电量.png"></div> |
|
|
|
|
<div> |
|
|
|
|
<p>总用电量</p> |
|
|
|
|
<h2>{{data.totwh}}kWh</h2> |
|
|
|
|
<p style="color: #cccccc">总用电量</p> |
|
|
|
|
<h1>{{data.totwh}}kWh</h1> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="card"> |
|
|
|
|
<div><img src="../../../assets/images/功率.png"></div> |
|
|
|
|
<div> |
|
|
|
|
<p>当前功率</p> |
|
|
|
|
<h2>{{data.totp}}kW</h2> |
|
|
|
|
<p style="color: #cccccc">当前功率</p> |
|
|
|
|
<h1>{{data.totp}}kW</h1> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="card"> |
|
|
|
|
<div><img src="../../../assets/images/温度.png"></div> |
|
|
|
|
<div> |
|
|
|
|
<div style="display: flex; margin-bottom: 5px"> |
|
|
|
|
<p>进水温度:</p> |
|
|
|
|
<h2>{{data.tempIn}}℃</h2> |
|
|
|
|
<p style="color: #cccccc">进水温度:</p> |
|
|
|
|
<h1>{{data.tempIn}}℃</h1> |
|
|
|
|
</div> |
|
|
|
|
<div style="display: flex"> |
|
|
|
|
<p>出水温度:</p> |
|
|
|
|
<h2>{{data.tempOut}}℃</h2> |
|
|
|
|
<p style="color: #cccccc">出水温度:</p> |
|
|
|
|
<h1>{{data.tempOut}}℃</h1> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="card"> |
|
|
|
|
<div><img src="../../../assets/images/温度传感器.png"></div> |
|
|
|
|
<div> |
|
|
|
|
<p>运行状态</p> |
|
|
|
|
<h2 style="color: #1ab394">{{data.runStatus}}</h2> |
|
|
|
|
<p style="color: #cccccc">运行状态</p> |
|
|
|
|
<h1 style="color: #1ab394">{{data.runStatus}}</h1> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -247,6 +247,12 @@ export default { |
|
|
|
|
myChart3 = echarts.init(document.getElementById("myEcharts3")); |
|
|
|
|
myChart3.setOption({ |
|
|
|
|
title: {}, |
|
|
|
|
legend:{ |
|
|
|
|
data:['当前功率'], |
|
|
|
|
textStyle: { |
|
|
|
|
color: "white" //标题的颜色 |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: "axis", |
|
|
|
|
show: true |
|
|
|
@ -254,12 +260,31 @@ export default { |
|
|
|
|
textStyle:{ |
|
|
|
|
color:'#BEC3DA' |
|
|
|
|
}, |
|
|
|
|
grid:{ |
|
|
|
|
show: true, |
|
|
|
|
top: '20%', |
|
|
|
|
bottom:'15%', |
|
|
|
|
left:'5%', |
|
|
|
|
right:'3%', |
|
|
|
|
borderWidth: 1, |
|
|
|
|
borderColor: '#767da1', |
|
|
|
|
}, |
|
|
|
|
xAxis: { |
|
|
|
|
data:data.glXz, |
|
|
|
|
axisLine:{ |
|
|
|
|
lineStyle:{ |
|
|
|
|
color:'#BEC3DA', |
|
|
|
|
type:'dashed' |
|
|
|
|
color:'#767da1' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
axisTick: { |
|
|
|
|
show: false // 去掉x轴刻度 |
|
|
|
|
}, |
|
|
|
|
splitArea: { |
|
|
|
|
show: true, |
|
|
|
|
interval:0, |
|
|
|
|
areaStyle: { |
|
|
|
|
color: ['rgb(54,68,148,.8)', 'rgb(37,51,133,.8)'] //这里重点,用于设置颜色的数组, |
|
|
|
|
//(有了这个属性,那我们完全可以自己在根据某些条件来生成这样一个数组) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -269,12 +294,12 @@ export default { |
|
|
|
|
splitLine:{ |
|
|
|
|
show:true, |
|
|
|
|
lineStyle:{ |
|
|
|
|
type:'dashed', |
|
|
|
|
type:'solid', |
|
|
|
|
color:'#BEC3DA' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
axisLine: { |
|
|
|
|
show: true, |
|
|
|
|
show: false, |
|
|
|
|
lineStyle:{ |
|
|
|
|
type:'dashed', |
|
|
|
|
color:'#BEC3DA' |
|
|
|
@ -290,6 +315,22 @@ export default { |
|
|
|
|
color:'#2F8EE0' |
|
|
|
|
}, |
|
|
|
|
symbol: "none", //去掉拐角点 |
|
|
|
|
markPoint: { |
|
|
|
|
itemStyle: { |
|
|
|
|
normal: { |
|
|
|
|
label: { |
|
|
|
|
color: '#fff', |
|
|
|
|
// fontSize: 9 |
|
|
|
|
// borderColor: '#000', |
|
|
|
|
// borderWidth: 1, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
data: [ |
|
|
|
|
{type: "max", name: "最大值"}, |
|
|
|
|
{type: "min", name: "最小值"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}); |
|
|
|
@ -316,15 +357,42 @@ export default { |
|
|
|
|
myChart.setOption({ |
|
|
|
|
title: {}, |
|
|
|
|
tooltip: {}, |
|
|
|
|
grid:{ |
|
|
|
|
show: true, |
|
|
|
|
top: '20%', |
|
|
|
|
bottom:'15%', |
|
|
|
|
left:'5%', |
|
|
|
|
right:'3%', |
|
|
|
|
borderWidth: 1, |
|
|
|
|
borderColor: '#767da1', |
|
|
|
|
}, |
|
|
|
|
legend:{ |
|
|
|
|
data:['日用电量'], |
|
|
|
|
textStyle: { |
|
|
|
|
color: "white" //标题的颜色 |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
textStyle:{ |
|
|
|
|
color:'#BEC3DA' |
|
|
|
|
}, |
|
|
|
|
xAxis: { |
|
|
|
|
type:'category', |
|
|
|
|
data:data.dayXz, |
|
|
|
|
axisLine:{ |
|
|
|
|
lineStyle:{ |
|
|
|
|
color:'#BEC3DA', |
|
|
|
|
type:'dashed' |
|
|
|
|
color:'#767da1', |
|
|
|
|
// type:'dashed' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
axisTick: { |
|
|
|
|
show: false // 去掉x轴刻度 |
|
|
|
|
}, |
|
|
|
|
splitArea: { |
|
|
|
|
show: true, |
|
|
|
|
interval:0, |
|
|
|
|
areaStyle: { |
|
|
|
|
color: ['rgb(54,68,148,.8)', 'rgb(37,51,133,.8)'] //这里重点,用于设置颜色的数组, |
|
|
|
|
//(有了这个属性,那我们完全可以自己在根据某些条件来生成这样一个数组) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -334,12 +402,12 @@ export default { |
|
|
|
|
splitLine:{ |
|
|
|
|
show:true, |
|
|
|
|
lineStyle:{ |
|
|
|
|
type:'dashed', |
|
|
|
|
color:'#BEC3DA' |
|
|
|
|
type:'solid', |
|
|
|
|
color:'#f3ffff' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
axisLine: { |
|
|
|
|
show: true, |
|
|
|
|
show: false, |
|
|
|
|
lineStyle:{ |
|
|
|
|
type:'dashed', |
|
|
|
|
color:'#BEC3DA' |
|
|
|
@ -354,6 +422,22 @@ export default { |
|
|
|
|
itemStyle:{ |
|
|
|
|
color:'#2F8EE0' |
|
|
|
|
}, |
|
|
|
|
markPoint: { |
|
|
|
|
itemStyle: { |
|
|
|
|
normal: { |
|
|
|
|
label: { |
|
|
|
|
color: '#fff', |
|
|
|
|
// fontSize: 9 |
|
|
|
|
// borderColor: '#000', |
|
|
|
|
// borderWidth: 1, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
data: [ |
|
|
|
|
{type: "max", name: "最大值"}, |
|
|
|
|
{type: "min", name: "最小值"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}); |
|
|
|
@ -376,15 +460,42 @@ export default { |
|
|
|
|
myChart2.setOption({ |
|
|
|
|
title: {}, |
|
|
|
|
tooltip: {}, |
|
|
|
|
grid:{ |
|
|
|
|
show: true, |
|
|
|
|
top: '20%', |
|
|
|
|
bottom:'15%', |
|
|
|
|
left:'5%', |
|
|
|
|
right:'3%', |
|
|
|
|
borderWidth: 1, |
|
|
|
|
borderColor: '#767da1', |
|
|
|
|
}, |
|
|
|
|
legend:{ |
|
|
|
|
data:['月用电量'], |
|
|
|
|
textStyle: { |
|
|
|
|
color: "white" //标题的颜色 |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
textStyle:{ |
|
|
|
|
color:'#BEC3DA' |
|
|
|
|
}, |
|
|
|
|
xAxis: { |
|
|
|
|
type:'category', |
|
|
|
|
data:data.emonthXz, |
|
|
|
|
axisLine:{ |
|
|
|
|
lineStyle:{ |
|
|
|
|
color:'#BEC3DA', |
|
|
|
|
type:'dashed' |
|
|
|
|
color:'#767da1', |
|
|
|
|
// type:'dashed' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
axisTick: { |
|
|
|
|
show: false // 去掉x轴刻度 |
|
|
|
|
}, |
|
|
|
|
splitArea: { |
|
|
|
|
show: true, |
|
|
|
|
interval:0, |
|
|
|
|
areaStyle: { |
|
|
|
|
color: ['rgb(54,68,148,.8)', 'rgb(37,51,133,.8)'] //这里重点,用于设置颜色的数组, |
|
|
|
|
//(有了这个属性,那我们完全可以自己在根据某些条件来生成这样一个数组) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -394,12 +505,12 @@ export default { |
|
|
|
|
splitLine:{ |
|
|
|
|
show:true, |
|
|
|
|
lineStyle:{ |
|
|
|
|
type:'dashed', |
|
|
|
|
color:'#BEC3DA' |
|
|
|
|
type:'solid', |
|
|
|
|
color:'#f3ffff' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
axisLine: { |
|
|
|
|
show: true, |
|
|
|
|
show: false, |
|
|
|
|
lineStyle:{ |
|
|
|
|
type:'dashed', |
|
|
|
|
color:'#BEC3DA' |
|
|
|
@ -414,6 +525,22 @@ export default { |
|
|
|
|
itemStyle:{ |
|
|
|
|
color:'#2F8EE0' |
|
|
|
|
}, |
|
|
|
|
markPoint: { |
|
|
|
|
itemStyle: { |
|
|
|
|
normal: { |
|
|
|
|
label: { |
|
|
|
|
color: '#fff', |
|
|
|
|
// fontSize: 9 |
|
|
|
|
// borderColor: '#000', |
|
|
|
|
// borderWidth: 1, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
data: [ |
|
|
|
|
{type: "max", name: "最大值"}, |
|
|
|
|
{type: "min", name: "最小值"} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}); |
|
|
|
@ -435,9 +562,20 @@ export default { |
|
|
|
|
title: {}, |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: "axis", |
|
|
|
|
|
|
|
|
|
show: true |
|
|
|
|
}, |
|
|
|
|
grid:{ |
|
|
|
|
show: true, |
|
|
|
|
top: '20%', |
|
|
|
|
bottom:'15%', |
|
|
|
|
left:'5%', |
|
|
|
|
right:'3%', |
|
|
|
|
borderWidth: 1, |
|
|
|
|
borderColor: '#767da1', |
|
|
|
|
}, |
|
|
|
|
legend: { |
|
|
|
|
data: ['进水', '出水'], |
|
|
|
|
textStyle:{ |
|
|
|
|
color:'#BEC3DA' |
|
|
|
|
} |
|
|
|
@ -449,8 +587,19 @@ export default { |
|
|
|
|
data: data.time, |
|
|
|
|
axisLine:{ |
|
|
|
|
lineStyle:{ |
|
|
|
|
color:'#BEC3DA', |
|
|
|
|
type:'dashed' |
|
|
|
|
color:'#767da1', |
|
|
|
|
// type:'dashed' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
axisTick: { |
|
|
|
|
show: false // 去掉x轴刻度 |
|
|
|
|
}, |
|
|
|
|
splitArea: { |
|
|
|
|
show: true, |
|
|
|
|
interval:0, |
|
|
|
|
areaStyle: { |
|
|
|
|
color: ['rgb(54,68,148,.8)', 'rgb(37,51,133,.8)'] //这里重点,用于设置颜色的数组, |
|
|
|
|
//(有了这个属性,那我们完全可以自己在根据某些条件来生成这样一个数组) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -465,7 +614,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
axisLine: { |
|
|
|
|
show: true, |
|
|
|
|
show: false, |
|
|
|
|
lineStyle:{ |
|
|
|
|
type:'dashed', |
|
|
|
|
color:'#BEC3DA' |
|
|
|
|