2025-06-21 23:59:01 +08:00
|
|
|
|
|
|
|
|
|
<template>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<div v-loading="loading">
|
|
|
|
|
<div v-for="(baseInfo,index) in baseInfoList" :key="index+'bmsdccContainer'" style="margin-bottom:25px;">
|
|
|
|
|
<el-card shadow="always" class="common-card-container common-card-container-body-no-padding common-card-container-no-title-bg">
|
|
|
|
|
<div slot="header">
|
|
|
|
|
<span class="large-title">{{index+1}}#{{baseInfo.deviceName}}</span>
|
2025-06-22 21:01:34 +08:00
|
|
|
|
</div>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<div class="descriptions-main">
|
|
|
|
|
<el-descriptions direction="vertical" :column="3" :colon="false">
|
2025-06-30 17:32:04 +08:00
|
|
|
|
<el-descriptions-item labelClassName="descriptions-label" :contentClassName="`descriptions-direction ${baseInfo.workStatus === '0' ? 'save' :'danger'}`" :span="1" label="工作状态" >{{$store.state.ems.workStatusOptions[baseInfo.workStatus]}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item labelClassName="descriptions-label" contentClassName="descriptions-direction" :span="1" label="与PCS通信">{{$store.state.ems.communicationStatusOptions[baseInfo.pcsCommunicationStatus]}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item labelClassName="descriptions-label" contentClassName="descriptions-direction" :span="1" label="与EMS通信">{{$store.state.ems.communicationStatusOptions[baseInfo.emsCommunicationStatus]}}</el-descriptions-item>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</el-descriptions>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="descriptions-main descriptions-main-bg-color">
|
|
|
|
|
<el-descriptions direction="vertical" :column="3" :colon="false">
|
|
|
|
|
<el-descriptions-item labelClassName="descriptions-label" contentClassName="descriptions-direction" v-for="(item,index) in infoData" :key="index+'pcsInfoData'" :span="1" :label="item.label">{{baseInfo[item.attr] | formatNumber}} <span v-if="item.unit" v-html="item.unit"></span></el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<!-- 进度-->
|
|
|
|
|
<div class="process-container">
|
|
|
|
|
<div class="process-line-bg">
|
|
|
|
|
<div class="process-line":style="{height:baseInfo.currentSoc+'%'}"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="process">当前SOC : {{baseInfo.currentSoc}}%</div>
|
2025-06-22 21:01:34 +08:00
|
|
|
|
</div>
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</div>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<el-table
|
|
|
|
|
class="common-table"
|
|
|
|
|
:data="baseInfo.batteryDataList"
|
|
|
|
|
stripe
|
|
|
|
|
style="width: 100%;margin-top:25px;">
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="dataName"
|
|
|
|
|
label="名称">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-html="scope.row.dataName+'('+unitObj[scope.row.dataName]+')'"></span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="avgData"
|
|
|
|
|
label="单体平均值"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="minData"
|
|
|
|
|
label="单体最小值">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="minDataID"
|
|
|
|
|
label="单体最小值ID">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="maxData"
|
|
|
|
|
label="单体最大值">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="maxDataID"
|
|
|
|
|
label="单体最大值ID">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-card>
|
|
|
|
|
</div>
|
|
|
|
|
<el-empty v-show="baseInfoList.length<=0" :image-size="200"></el-empty>
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</div>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
import {getBMSBatteryCluster} from '@/api/ems/dzjk'
|
|
|
|
|
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
2025-06-21 23:59:01 +08:00
|
|
|
|
export default {
|
2025-06-24 23:50:29 +08:00
|
|
|
|
name:'DzjkSbjkBmsdcc',
|
2025-06-28 14:52:49 +08:00
|
|
|
|
mixins:[getQuerySiteId],
|
2025-06-21 23:59:01 +08:00
|
|
|
|
components:{},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2025-06-28 14:52:49 +08:00
|
|
|
|
loading:false,
|
|
|
|
|
unitObj:{
|
|
|
|
|
'电压':'V',
|
|
|
|
|
'温度':'℃',
|
|
|
|
|
'SOC':'%'
|
|
|
|
|
},
|
|
|
|
|
baseInfoList:[],
|
2025-06-21 23:59:01 +08:00
|
|
|
|
infoData:[
|
2025-06-28 14:52:49 +08:00
|
|
|
|
{label:'簇电压',attr:'clusterVoltage',unit:'V'},
|
|
|
|
|
{label:'可充电量',attr:'chargeableCapacity',unit:'kWh'},
|
|
|
|
|
{label:'累计充电量',attr:'totalChargedCapacity',unit:'kWh'},
|
|
|
|
|
{label:'簇电流',attr:'clusterCurrent',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:'Ω'},
|
2025-06-21 23:59:01 +08:00
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-06-28 14:52:49 +08:00
|
|
|
|
methods:{
|
|
|
|
|
init(){
|
|
|
|
|
this.loading = true
|
|
|
|
|
getBMSBatteryCluster(this.siteId).then(response => {
|
|
|
|
|
this.baseInfoList = JSON.parse(JSON.stringify(response?.data || []));
|
|
|
|
|
}).finally(() => {this.loading = false})
|
2025-06-21 23:59:01 +08:00
|
|
|
|
|
2025-06-28 14:52:49 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-21 23:59:01 +08:00
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2025-06-22 21:01:34 +08:00
|
|
|
|
::v-deep {
|
|
|
|
|
//描述列表样式
|
|
|
|
|
.descriptions-main{
|
|
|
|
|
padding:24px 300px 24px 24px;
|
|
|
|
|
}
|
|
|
|
|
.descriptions-main-bottom{
|
|
|
|
|
padding:14px 300px 14px 24px;
|
2025-06-21 23:59:01 +08:00
|
|
|
|
}
|
2025-06-22 21:01:34 +08:00
|
|
|
|
}
|
2025-06-21 23:59:01 +08:00
|
|
|
|
// 进度条样式
|
2025-06-22 21:01:34 +08:00
|
|
|
|
.process-container{
|
|
|
|
|
width:100px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right:70px;
|
|
|
|
|
top:50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
.process-line-bg{
|
|
|
|
|
position: relative;
|
|
|
|
|
width:100%;
|
|
|
|
|
height: 110px;
|
|
|
|
|
background-color:#fff2cb ;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
box-shadow: 0 0 10px #fff2cb, 0 0 0 rgba(255, 242, 203, 0.5);
|
|
|
|
|
.process-line{
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 25%;
|
|
|
|
|
background-color: #ffbf14;
|
|
|
|
|
border-radius: 0 0 6px 6px;
|
|
|
|
|
box-shadow: 0 0 10px #ffbf14, 0 0 0 rgba(255, 191, 20, 0.5);
|
2025-06-21 23:59:01 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-22 21:01:34 +08:00
|
|
|
|
.process{
|
|
|
|
|
margin-top:15px;
|
|
|
|
|
color:#666666;
|
|
|
|
|
}
|
2025-06-21 23:59:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|