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+'bmszlContainer'" style="margin-bottom:25px;">
|
2025-09-17 14:52:08 +08:00
|
|
|
|
<el-card :class="{
|
|
|
|
|
|
'warning-card-container':baseInfo.workStatus && baseInfo.workStatus !== '0',
|
|
|
|
|
|
'running-card-container':baseInfo.workStatus === '0'
|
|
|
|
|
|
}" class="sbjk-card-container common-card-container-body-no-padding common-card-container-no-title-bg"
|
|
|
|
|
|
shadow="always">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<div slot="header">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="large-title">{{ baseInfo.deviceName }}</span>
|
2025-11-26 17:50:06 +08:00
|
|
|
|
<div class="info">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<div>数据更新时间:{{ baseInfo.dataUpdateTime || '-' }}</div>
|
2025-11-26 17:50:06 +08:00
|
|
|
|
</div>
|
2025-11-25 17:56:12 +08:00
|
|
|
|
<div class="alarm">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<el-button type="primary" round size="small" style="margin-right:20px;"
|
|
|
|
|
|
@click="pointDetail(baseInfo,'point')">详细
|
|
|
|
|
|
</el-button>
|
2025-11-26 17:50:06 +08:00
|
|
|
|
<el-badge :value="baseInfo.alarmNum || 0" class="item">
|
|
|
|
|
|
<i
|
|
|
|
|
|
class="el-icon-message-solid alarm-icon"
|
|
|
|
|
|
@click="pointDetail(baseInfo,'alarmPoint')"
|
|
|
|
|
|
></i>
|
|
|
|
|
|
</el-badge>
|
2025-11-25 17:56:12 +08:00
|
|
|
|
</div>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="descriptions-main">
|
2025-09-17 14:52:08 +08:00
|
|
|
|
<el-descriptions :colon="false" :column="3" direction="vertical">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<el-descriptions-item
|
|
|
|
|
|
:contentClassName="`descriptions-direction ${baseInfo.workStatus === '0' ? 'save' :'danger'}`" :span="1"
|
|
|
|
|
|
label="工作状态" labelClassName="descriptions-label">
|
|
|
|
|
|
{{ $store.state.ems.workStatusOptions[baseInfo.workStatus] }}
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
<el-descriptions-item :span="1" contentClassName="descriptions-direction" label="与PCS通信"
|
|
|
|
|
|
labelClassName="descriptions-label">
|
|
|
|
|
|
{{ $store.state.ems.communicationStatusOptions[baseInfo.pcsCommunicationStatus] }}
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
<el-descriptions-item :span="1" contentClassName="descriptions-direction" label="与EMS通信"
|
|
|
|
|
|
labelClassName="descriptions-label">
|
|
|
|
|
|
{{ $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">
|
2025-09-17 14:52:08 +08:00
|
|
|
|
<el-descriptions :colon="false" :column="3" direction="vertical">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<el-descriptions-item v-for="(item,index) in infoData" :key="index+'pcsInfoData'" :label="item.label"
|
|
|
|
|
|
:span="1" contentClassName="descriptions-direction"
|
|
|
|
|
|
labelClassName="descriptions-label">
|
|
|
|
|
|
<span class="pointer" @click="showChart(item.pointName || '',baseInfo.deviceId)">
|
|
|
|
|
|
{{ baseInfo[item.attr] | formatNumber }}<span v-if="item.unit" v-html="item.unit"></span>
|
2025-09-13 20:36:46 +08:00
|
|
|
|
</span>
|
|
|
|
|
|
</el-descriptions-item>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
<!-- 进度-->
|
|
|
|
|
|
<div class="process-container">
|
|
|
|
|
|
<div class="process-line-bg">
|
2025-09-17 14:52:08 +08:00
|
|
|
|
<div :style="{height:baseInfo.stackSoc+'%'}" class="process-line"></div>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</div>
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<div class="process pointer" @click="showChart('当前SOC',baseInfo.deviceId)">当前SOC :
|
|
|
|
|
|
{{ baseInfo.stackSoc }}%
|
|
|
|
|
|
</div>
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<el-table
|
2025-12-12 17:38:26 +08:00
|
|
|
|
:data="baseInfo.batteryDataList"
|
|
|
|
|
|
class="common-table"
|
|
|
|
|
|
max-height="500"
|
|
|
|
|
|
stripe
|
|
|
|
|
|
style="width: 100%;margin-top:25px;">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="簇号"
|
|
|
|
|
|
prop="clusterId">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="簇电压"
|
2025-06-28 14:52:49 +08:00
|
|
|
|
>
|
|
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer"
|
|
|
|
|
|
@click="showChart('簇电压',scope.row.clusterId,'CLUSTER')">{{ scope.row.clusterVoltage }} V</span>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="簇电流">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer"
|
|
|
|
|
|
@click="showChart('簇电流',scope.row.clusterId,'CLUSTER')">{{ scope.row.clusterCurrent }} A</span>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="簇SOC">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer"
|
|
|
|
|
|
@click="showChart('当前SOC',scope.row.clusterId,'CLUSTER')">{{ scope.row.currentSoc }} %</span>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="单体最高电压"
|
|
|
|
|
|
prop="maxVoltage">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer"
|
|
|
|
|
|
@click="showChart('最高单体电压',scope.row.clusterId,'CLUSTER')">{{ scope.row.maxCellVoltage }} V</span>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2025-08-11 17:34:39 +08:00
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="电池号码"
|
|
|
|
|
|
prop="maxCellVoltageId">
|
2025-08-11 17:34:39 +08:00
|
|
|
|
</el-table-column>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="单体最低电压"
|
|
|
|
|
|
prop="minVoltage">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer"
|
|
|
|
|
|
@click="showChart('最低单体电压',scope.row.clusterId,'CLUSTER')">{{ scope.row.minCellVoltage }} V</span>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2025-08-11 17:34:39 +08:00
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="电池号码"
|
|
|
|
|
|
prop="minCellVoltageId">
|
2025-08-11 17:34:39 +08:00
|
|
|
|
</el-table-column>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="单体最高温度">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer"
|
|
|
|
|
|
@click="showChart('最高单体温度',scope.row.clusterId,'CLUSTER')">{{ scope.row.maxCellTemp }} ℃</span>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2025-08-11 17:34:39 +08:00
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="电池号码"
|
|
|
|
|
|
prop="maxCellTempId">
|
2025-08-11 17:34:39 +08:00
|
|
|
|
</el-table-column>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="单体最低温度"
|
|
|
|
|
|
prop="minTemperature">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer"
|
|
|
|
|
|
@click="showChart('最低单体温度',scope.row.clusterId,'CLUSTER')">{{ scope.row.minCellTemp }} ℃</span>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2025-08-11 17:34:39 +08:00
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
label="电池号码"
|
|
|
|
|
|
prop="minCellTempId">
|
2025-08-11 17:34:39 +08:00
|
|
|
|
</el-table-column>
|
2025-06-24 23:50:29 +08:00
|
|
|
|
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</el-table>
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-empty v-show="baseInfoList.length<=0" :image-size="200"></el-empty>
|
2025-09-13 20:36:46 +08:00
|
|
|
|
<point-chart ref="pointChart" :site-id="siteId"/>
|
2025-11-25 17:56:12 +08:00
|
|
|
|
<point-table ref="pointTable"/>
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
import {getBMSOverView} from '@/api/ems/dzjk'
|
|
|
|
|
|
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
2025-09-10 09:54:29 +08:00
|
|
|
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
2025-09-13 20:36:46 +08:00
|
|
|
|
import pointChart from "./../PointChart.vue";
|
2025-11-25 17:56:12 +08:00
|
|
|
|
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
2025-12-12 17:38:26 +08:00
|
|
|
|
|
2025-06-21 23:59:01 +08:00
|
|
|
|
export default {
|
2025-12-12 17:38:26 +08:00
|
|
|
|
name: 'DzjkSbjkBmszl',
|
|
|
|
|
|
components: {pointChart, PointTable},
|
|
|
|
|
|
mixins: [getQuerySiteId, intervalUpdate],
|
2025-06-21 23:59:01 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2025-12-12 17:38:26 +08:00
|
|
|
|
loading: false,
|
|
|
|
|
|
baseInfoList: [],
|
|
|
|
|
|
infoData: [
|
|
|
|
|
|
{label: '电池堆总电压', attr: 'stackVoltage', unit: 'V', pointName: '电池堆电压'},
|
|
|
|
|
|
{label: '可充电量', attr: 'availableChargeCapacity', unit: 'kWh', pointName: '可充电量'},
|
|
|
|
|
|
{label: '累计充电量', attr: 'totalChargeCapacity', unit: 'kWh', pointName: '累计充电量'},
|
|
|
|
|
|
{label: '电池堆总电流', attr: 'stackCurrent', unit: 'A', pointName: '电池堆总电流'},
|
|
|
|
|
|
{label: '可放电量', attr: 'availableDischargeCapacity', unit: 'kWh', pointName: '可放电量'},
|
|
|
|
|
|
{label: '累计放电量', attr: 'totalDischargeCapacity', unit: 'kWh', pointName: '累计放电量'},
|
|
|
|
|
|
{label: 'SOH', attr: 'stackSoh', unit: '%', pointName: 'SOH'},
|
|
|
|
|
|
{label: '平均温度', attr: 'operatingTemp', unit: '℃', pointName: '平均温度'},
|
|
|
|
|
|
{label: '绝缘电阻', attr: 'stackInsulationResistance', unit: 'Ω', pointName: '绝缘电阻'},
|
2025-06-21 23:59:01 +08:00
|
|
|
|
]
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-12-12 17:38:26 +08:00
|
|
|
|
methods: {
|
2025-11-25 17:56:12 +08:00
|
|
|
|
// 查看设备电位表格
|
2025-12-12 17:38:26 +08:00
|
|
|
|
pointDetail(row, dataType) {
|
|
|
|
|
|
const {siteId, deviceId} = row
|
|
|
|
|
|
this.$refs.pointTable.showTable({siteId, deviceId, deviceCategory: 'STACK'}, dataType)
|
2025-11-25 17:56:12 +08:00
|
|
|
|
},
|
2025-12-12 17:38:26 +08:00
|
|
|
|
showChart(pointName, deviceId, deviceCategory = 'STACK') {
|
|
|
|
|
|
pointName && this.$refs.pointChart.showChart({pointName, deviceCategory, deviceId})
|
2025-09-13 20:36:46 +08:00
|
|
|
|
},
|
2025-12-12 17:38:26 +08:00
|
|
|
|
updateData() {
|
2025-09-10 09:54:29 +08:00
|
|
|
|
this.loading = true
|
2025-06-28 14:52:49 +08:00
|
|
|
|
getBMSOverView(this.siteId).then(response => {
|
|
|
|
|
|
this.baseInfoList = JSON.parse(JSON.stringify(response?.data || []));
|
2025-12-12 17:38:26 +08:00
|
|
|
|
}).finally(() => {
|
|
|
|
|
|
this.loading = false
|
|
|
|
|
|
})
|
2025-09-10 09:54:29 +08:00
|
|
|
|
},
|
2025-12-12 17:38:26 +08:00
|
|
|
|
init() {
|
2025-09-10 09:54:29 +08:00
|
|
|
|
this.updateData()
|
|
|
|
|
|
this.updateInterval(this.updateData)
|
2025-06-28 14:52:49 +08:00
|
|
|
|
}
|
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>
|
|
|
|
|
|
|
2025-09-17 14:52:08 +08:00
|
|
|
|
<style lang="scss" scoped>
|
2025-06-22 21:01:34 +08:00
|
|
|
|
::v-deep {
|
|
|
|
|
|
//描述列表样式
|
|
|
|
|
|
.descriptions-main {
|
|
|
|
|
|
padding: 24px 300px 24px 24px;
|
|
|
|
|
|
|
|
|
|
|
|
.descriptions-main-bg-color {
|
|
|
|
|
|
padding: 14px 300px 14px 24px;
|
2025-06-21 23:59:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-06-22 21:01:34 +08:00
|
|
|
|
}
|
2025-12-12 17:38:26 +08:00
|
|
|
|
|
2025-06-21 23:59:01 +08:00
|
|
|
|
// 进度条样式
|
2025-12-12 17:38:26 +08:00
|
|
|
|
.process-container {
|
|
|
|
|
|
width: 100px;
|
2025-06-22 21:01:34 +08:00
|
|
|
|
position: absolute;
|
2025-12-12 17:38:26 +08:00
|
|
|
|
right: 70px;
|
|
|
|
|
|
top: 50%;
|
2025-06-22 21:01:34 +08:00
|
|
|
|
transform: translateY(-50%);
|
2025-12-12 17:38:26 +08:00
|
|
|
|
|
|
|
|
|
|
.process-line-bg {
|
2025-06-22 21:01:34 +08:00
|
|
|
|
position: relative;
|
2025-12-12 17:38:26 +08:00
|
|
|
|
width: 100%;
|
2025-06-22 21:01:34 +08:00
|
|
|
|
height: 110px;
|
2025-12-12 17:38:26 +08:00
|
|
|
|
background-color: #fff2cb;
|
2025-06-22 21:01:34 +08:00
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
box-shadow: 0 0 10px #fff2cb, 0 0 0 rgba(255, 242, 203, 0.5);
|
2025-12-12 17:38:26 +08:00
|
|
|
|
|
|
|
|
|
|
.process-line {
|
2025-06-22 21:01:34 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
width: 100%;
|
2025-06-28 14:52:49 +08:00
|
|
|
|
height: 0;
|
2025-06-22 21:01:34 +08:00
|
|
|
|
background-color: #fc6c6c;
|
|
|
|
|
|
border-radius: 0 0 6px 6px;
|
|
|
|
|
|
box-shadow: 0 0 10px rgb(252 108 108), 0 0 0 rgba(252, 108, 108, 0.5);
|
2025-06-21 23:59:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-12-12 17:38:26 +08:00
|
|
|
|
|
|
|
|
|
|
.process {
|
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
|
color: #666666;
|
2025-06-22 21:01:34 +08:00
|
|
|
|
}
|
2025-06-21 23:59:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|