generated from cyj/evo_tech
修改
This commit is contained in:
parent
48210de451
commit
173eff6713
@ -74,13 +74,13 @@
|
|||||||
label-width="200"
|
label-width="200"
|
||||||
|
|
||||||
>
|
>
|
||||||
<el-descriptions-item align="center" label="累计运行时间(h)">1233</el-descriptions-item>
|
<el-descriptions-item align="center" label="累计运行时间(h)">{{runtimeSummary.totalRunHours}}</el-descriptions-item>
|
||||||
<el-descriptions-item align="center" label="累计充电时间(h)">545456</el-descriptions-item>
|
<el-descriptions-item align="center" label="累计充电时间(h)">{{runtimeSummary.totalChargeHours}}</el-descriptions-item>
|
||||||
<el-descriptions-item align="center" label="累计放电时间(h)">566452</el-descriptions-item>
|
<el-descriptions-item align="center" label="累计放电时间(h)">{{runtimeSummary.totalDischargeHours}}</el-descriptions-item>
|
||||||
<el-descriptions-item align="center" label="累计充电能量(kWh)">71233</el-descriptions-item>
|
<el-descriptions-item align="center" label="累计充电能量(kWh)">{{runtimeSummary.totalChargeEnergyKWh}}</el-descriptions-item>
|
||||||
<el-descriptions-item align="center" label="累计放电能量(KWh)">566452</el-descriptions-item>
|
<el-descriptions-item align="center" label="累计放电能量(KWh)">{{runtimeSummary.totalDischargeEnergyKWh}}</el-descriptions-item>
|
||||||
<el-descriptions-item align="center" label="累计放电电容量(Ah)">8233</el-descriptions-item>
|
<el-descriptions-item align="center" label="累计放电容量(Ah)">{{runtimeSummary.totalDischargeCapacityAh}}</el-descriptions-item>
|
||||||
<el-descriptions-item align="center" label="累计充电容量(Ah)">8233</el-descriptions-item>
|
<el-descriptions-item align="center" label="累计充电容量(Ah)">{{runtimeSummary.totalChargeCapacityAh}}</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -129,10 +129,14 @@ import {
|
|||||||
let onlinnum = ref(0)
|
let onlinnum = ref(0)
|
||||||
let gznum = ref(0)
|
let gznum = ref(0)
|
||||||
|
|
||||||
|
let runtimeSummary = ref({})
|
||||||
|
|
||||||
let sbdata = []
|
let sbdata = []
|
||||||
|
|
||||||
let markerlist = []
|
let markerlist = []
|
||||||
|
|
||||||
|
let yxscx = []
|
||||||
|
let yxscy = []
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
equdata().then(rps => {
|
equdata().then(rps => {
|
||||||
|
|
||||||
@ -141,6 +145,8 @@ nextTick(() => {
|
|||||||
onlinnum.value = rps.data.summary.onlineCount
|
onlinnum.value = rps.data.summary.onlineCount
|
||||||
gznum.value = rps.data.summary.faultCount
|
gznum.value = rps.data.summary.faultCount
|
||||||
|
|
||||||
|
runtimeSummary.value = rps.data.runtimeSummary
|
||||||
|
|
||||||
sbdata = rps.data.socDistribution
|
sbdata = rps.data.socDistribution
|
||||||
|
|
||||||
if(rps.data.trend && rps.data.trend.length > 0){
|
if(rps.data.trend && rps.data.trend.length > 0){
|
||||||
@ -148,10 +154,20 @@ nextTick(() => {
|
|||||||
return n.date
|
return n.date
|
||||||
})
|
})
|
||||||
chond.value = rps.data.trend.map(n => {
|
chond.value = rps.data.trend.map(n => {
|
||||||
return n.date.chargeDuration
|
return n.chargeDuration
|
||||||
})
|
})
|
||||||
fangd.value = rps.data.trend.map(n => {
|
fangd.value = rps.data.trend.map(n => {
|
||||||
return n.date.dischargeDuration
|
return n.dischargeDuration
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
if(rps.data.runtimeDuration && rps.data.runtimeDuration.length > 0){
|
||||||
|
yxscx = rps.data.runtimeDuration.map(n => {
|
||||||
|
return n.name
|
||||||
|
})
|
||||||
|
|
||||||
|
yxscy = rps.data.runtimeDuration.map(n => {
|
||||||
|
return n.value
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -430,7 +446,7 @@ function ricfdinit() {
|
|||||||
// max: 50,
|
// max: 50,
|
||||||
// interval: 50,
|
// interval: 50,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
formatter: "{value}h",
|
formatter: "{value}s",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -726,7 +742,7 @@ function yxscinit() {
|
|||||||
xAxis: [
|
xAxis: [
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "category",
|
||||||
data:["10h", "50h", "100h", "150h", "200h", "250h", "300h"],
|
data:yxscx, //["10h", "50h", "100h", "150h", "200h", "250h", "300h"],
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
type: "shadow",
|
type: "shadow",
|
||||||
},
|
},
|
||||||
@ -753,7 +769,7 @@ function yxscinit() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
barWidth:'20px',
|
barWidth:'20px',
|
||||||
data:[80.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3],
|
data:yxscy, //[80.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3],
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
//柱形图圆角,鼠标移上去效果,如果只是一个数字则说明四个参数全部设置为那么多
|
//柱形图圆角,鼠标移上去效果,如果只是一个数字则说明四个参数全部设置为那么多
|
||||||
normal: {
|
normal: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user