bcm总览接口参数更新,电量指标没有返回数据时图表显示问题
This commit is contained in:
@ -20,9 +20,9 @@
|
||||
<!-- 进度-->
|
||||
<div class="process-container">
|
||||
<div class="process-line-bg">
|
||||
<div class="process-line" :style="{height:baseInfo.currentSoc+'%'}"></div>
|
||||
<div class="process-line" :style="{height:baseInfo.stackSoc+'%'}"></div>
|
||||
</div>
|
||||
<div class="process">当前SOC : {{baseInfo.currentSoc}}%</div>
|
||||
<div class="process">当前SOC : {{baseInfo.stackSoc}}%</div>
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
@ -100,15 +100,15 @@ export default {
|
||||
loading:false,
|
||||
baseInfoList:[],
|
||||
infoData:[
|
||||
{label:'电池堆总电压',attr:'totalVoltage',unit:'V'},
|
||||
{label:'可充电量',attr:'chargeableCapacity',unit:'kWh'},
|
||||
{label:'累计充电量',attr:'totalChargedCapacity',unit:'kWh'},
|
||||
{label:'电池堆总电流',attr:'totalCurrent',unit:'A'},
|
||||
{label:'可放电量',attr:'dischargeableCapacity',unit:'kWh'},
|
||||
{label:'累计放电量',attr:'totalDischargedCapacity',unit:'kWh'},
|
||||
{label:'SOH',attr:'soh',unit:'%'},
|
||||
{label:'平均温度',attr:'averageTemperature',unit:'℃'},
|
||||
{label:'绝缘电阻',attr:'insulationResistance',unit:'Ω'},
|
||||
{label:'电池堆总电压',attr:'stackVoltage',unit:'V'},
|
||||
{label:'可充电量',attr:'availableChargeCapacity',unit:'kWh'},
|
||||
{label:'累计充电量',attr:'totalChargeCapacity',unit:'kWh'},
|
||||
{label:'电池堆总电流',attr:'stackCurrent',unit:'A'},
|
||||
{label:'可放电量',attr:'availableDischargeCapacity',unit:'kWh'},
|
||||
{label:'累计放电量',attr:'totalDischargeCapacity',unit:'kWh'},
|
||||
{label:'SOH',attr:'stackSoh',unit:'%'},
|
||||
{label:'平均温度',attr:'operatingTemp',unit:'℃'},
|
||||
{label:'绝缘电阻',attr:'stackInsulationResistance',unit:'Ω'},
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -81,6 +81,7 @@ export default {
|
||||
xAxis: { type: 'category' },
|
||||
yAxis: [{
|
||||
type: 'value',
|
||||
name:'充电量/放电量kWh',
|
||||
axisLine: {
|
||||
lineStyle:{
|
||||
color: '#333333',
|
||||
@ -89,6 +90,7 @@ export default {
|
||||
}
|
||||
},{
|
||||
type: 'value',
|
||||
name:'效率%',
|
||||
axisLine: {
|
||||
lineStyle:{
|
||||
color: '#333333',
|
||||
@ -96,7 +98,7 @@ export default {
|
||||
onZero:false
|
||||
}
|
||||
}],
|
||||
grid:{top:30},
|
||||
grid:{top:40},
|
||||
dataset:{
|
||||
source
|
||||
},
|
||||
@ -123,7 +125,7 @@ export default {
|
||||
const startDate=formatDate(start),endDate = formatDate(end)
|
||||
getElectricData({siteId:this.siteId,startDate,endDate}).then(response => {
|
||||
const {totalChargedCap='',totalDisChargedCap='',efficiency='',sevenDayDisChargeStats=[]}=response?.data || {}
|
||||
this.setOption(sevenDayDisChargeStats)
|
||||
this.setOption(sevenDayDisChargeStats || [])
|
||||
this.totalChargedCap=totalChargedCap
|
||||
this.totalDisChargedCap=totalDisChargedCap
|
||||
this.efficiency=efficiency
|
||||
|
Reference in New Issue
Block a user