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;">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<el-card shadow="always"
|
|
|
|
|
|
class="sbjk-card-container common-card-container-body-no-padding common-card-container-no-title-bg"
|
2026-01-23 22:32:12 +08:00
|
|
|
|
:class="handleCardClass(baseInfo)">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<div slot="header">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span
|
2026-01-12 14:15:21 +08:00
|
|
|
|
class="large-title">{{
|
|
|
|
|
|
baseInfo.parentDeviceName ? `${baseInfo.parentDeviceName} -> ` : ''
|
|
|
|
|
|
}}{{ 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>
|
2026-01-24 10:27:43 +08:00
|
|
|
|
<el-badge :hidden="!baseInfo.alarmNum" :value="baseInfo.alarmNum || 0" class="item">
|
2025-11-26 17:50:06 +08:00
|
|
|
|
<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-22 21:01:34 +08:00
|
|
|
|
</div>
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<div class="descriptions-main">
|
|
|
|
|
|
<el-descriptions direction="vertical" :column="3" :colon="false">
|
2026-01-23 22:32:12 +08:00
|
|
|
|
<el-descriptions-item
|
|
|
|
|
|
contentClassName="descriptions-direction work-status"
|
|
|
|
|
|
:span="1" label="工作状态">
|
2026-01-25 16:30:43 +08:00
|
|
|
|
{{ CLUSTERWorkStatusOptions[baseInfo.workStatus] }}
|
2025-12-12 17:38:26 +08:00
|
|
|
|
</el-descriptions-item>
|
2026-01-23 22:32:12 +08:00
|
|
|
|
<el-descriptions-item contentClassName="descriptions-direction"
|
2025-12-12 17:38:26 +08:00
|
|
|
|
:span="1" label="与PCS通信">
|
|
|
|
|
|
{{ $store.state.ems.communicationStatusOptions[baseInfo.pcsCommunicationStatus] }}
|
|
|
|
|
|
</el-descriptions-item>
|
2026-01-23 22:32:12 +08:00
|
|
|
|
<el-descriptions-item contentClassName="descriptions-direction"
|
2025-12-12 17:38:26 +08:00
|
|
|
|
:span="1" label="与EMS通信">
|
|
|
|
|
|
{{ $store.state.ems.communicationStatusOptions[baseInfo.emsCommunicationStatus] }}
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
</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">
|
2025-10-16 16:10:29 +08:00
|
|
|
|
<span class="pointer" @click="showChart(item.pointName || '',baseInfo.deviceId)">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
{{ baseInfo[item.attr] | formatNumber }} <span v-if="item.unit" v-html="item.unit"></span>
|
2025-09-13 20:36:46 +08:00
|
|
|
|
</span>
|
2025-12-12 17:38:26 +08:00
|
|
|
|
</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 pointer" @click="showChart( '当前SOC',baseInfo.deviceId)">当前SOC :
|
|
|
|
|
|
{{ baseInfo.currentSoc }}%
|
2025-06-22 21:01:34 +08:00
|
|
|
|
</div>
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</div>
|
2025-12-12 17:38:26 +08:00
|
|
|
|
</div>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<el-table
|
2025-12-12 17:38:26 +08:00
|
|
|
|
class="common-table"
|
|
|
|
|
|
:data="baseInfo.batteryDataList"
|
|
|
|
|
|
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
|
|
|
|
prop="dataName"
|
|
|
|
|
|
label="名称">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span v-html="scope.row.dataName+'('+unitObj[scope.row.dataName]+')'"></span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
prop="avgData"
|
|
|
|
|
|
label="单体平均值"
|
2025-06-28 14:52:49 +08:00
|
|
|
|
>
|
2025-09-13 20:36:46 +08:00
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer"
|
2026-01-12 14:15:21 +08:00
|
|
|
|
@click="showChart( tablePointNameMap[scope.row.dataName+scope.column.label],baseInfo.deviceId)">{{
|
|
|
|
|
|
scope.row.avgData
|
|
|
|
|
|
}}</span>
|
2025-09-13 20:36:46 +08:00
|
|
|
|
</template>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
prop="minData"
|
|
|
|
|
|
label="单体最小值">
|
2025-09-13 20:36:46 +08:00
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer"
|
2026-01-12 14:15:21 +08:00
|
|
|
|
@click="showChart( tablePointNameMap[scope.row.dataName+scope.column.label],baseInfo.deviceId)">{{
|
|
|
|
|
|
scope.row.minData
|
|
|
|
|
|
}}</span>
|
2025-09-13 20:36:46 +08:00
|
|
|
|
</template>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
prop="minDataID"
|
|
|
|
|
|
label="单体最小值ID">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
prop="maxData"
|
|
|
|
|
|
label="单体最大值">
|
2025-09-13 20:36:46 +08:00
|
|
|
|
<template slot-scope="scope">
|
2025-12-12 17:38:26 +08:00
|
|
|
|
<span class="pointer "
|
2026-01-12 14:15:21 +08:00
|
|
|
|
@click="showChart( tablePointNameMap[scope.row.dataName+scope.column.label],baseInfo.deviceId)">{{
|
|
|
|
|
|
scope.row.maxData
|
|
|
|
|
|
}}</span>
|
2025-09-13 20:36:46 +08:00
|
|
|
|
</template>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column
|
2025-12-12 17:38:26 +08:00
|
|
|
|
prop="maxDataID"
|
|
|
|
|
|
label="单体最大值ID">
|
2025-06-28 14:52:49 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</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>
|
2025-06-28 14:52:49 +08:00
|
|
|
|
|
2025-06-21 23:59:01 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
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-06-28 14:52:49 +08:00
|
|
|
|
import {getBMSBatteryCluster} from '@/api/ems/dzjk'
|
|
|
|
|
|
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
2025-09-10 09:54:29 +08:00
|
|
|
|
import intervalUpdate from "@/mixins/ems/intervalUpdate";
|
2026-01-23 22:32:12 +08:00
|
|
|
|
import {mapState} from "vuex";
|
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: 'DzjkSbjkBmsdcc',
|
|
|
|
|
|
mixins: [getQuerySiteId, intervalUpdate],
|
|
|
|
|
|
components: {PointTable, pointChart},
|
2026-01-23 22:32:12 +08:00
|
|
|
|
computed: {
|
|
|
|
|
|
...mapState({
|
2026-01-25 16:30:43 +08:00
|
|
|
|
CLUSTERWorkStatusOptions: state => state?.ems?.CLUSTERWorkStatusOptions || {},
|
2026-01-23 22:32:12 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
2025-06-21 23:59:01 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2025-12-12 17:38:26 +08:00
|
|
|
|
loading: false,
|
|
|
|
|
|
unitObj: {
|
|
|
|
|
|
'电压': 'V',
|
|
|
|
|
|
'温度': '℃',
|
|
|
|
|
|
'SOC': '%'
|
2025-06-28 14:52:49 +08:00
|
|
|
|
},
|
2025-12-12 17:38:26 +08:00
|
|
|
|
tablePointNameMap: {
|
|
|
|
|
|
'电压单体最小值': '最低单体电压',
|
|
|
|
|
|
'电压单体平均值': '电压平均值',
|
|
|
|
|
|
'电压单体最大值': '最高单体电压',
|
|
|
|
|
|
'温度单体最小值': '最低单体温度',
|
|
|
|
|
|
'温度单体平均值': '平均单体温度',
|
|
|
|
|
|
'温度单体最大值': '最高单体温度',
|
|
|
|
|
|
'SOC单体最小值': '最低单体SOC',
|
|
|
|
|
|
'SOC单体平均值': '当前SOC',
|
|
|
|
|
|
'SOC单体最大值': '最高单体SOC',
|
2025-09-13 20:36:46 +08:00
|
|
|
|
},
|
2025-12-12 17:38:26 +08:00
|
|
|
|
baseInfoList: [],
|
|
|
|
|
|
infoData: [
|
|
|
|
|
|
{label: '簇电压', attr: 'clusterVoltage', unit: 'V', pointName: '簇电压'},
|
|
|
|
|
|
{label: '可充电量', attr: 'chargeableCapacity', unit: 'kWh', pointName: '可充电量'},
|
|
|
|
|
|
{label: '累计充电量', attr: 'totalChargedCapacity', unit: 'kWh', pointName: '累计充电量'},
|
|
|
|
|
|
{label: '簇电流', attr: 'clusterCurrent', unit: 'A', pointName: '簇电流'},
|
|
|
|
|
|
{label: '可放电量', attr: 'dischargeableCapacity', unit: 'kWh', pointName: '可放电量'},
|
|
|
|
|
|
{label: '累计放电量', attr: 'totalDischargedCapacity', unit: 'kWh', pointName: '累计放电量'},
|
|
|
|
|
|
{label: 'SOH', attr: 'soh', unit: '%', pointName: 'SOH'},
|
|
|
|
|
|
{label: '平均温度', attr: 'averageTemperature', unit: '℃', pointName: '平均温度'},
|
|
|
|
|
|
{label: '绝缘电阻', attr: 'insulationResistance', unit: 'Ω', pointName: '绝缘电阻'},
|
2025-06-21 23:59:01 +08:00
|
|
|
|
],
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-12-12 17:38:26 +08:00
|
|
|
|
methods: {
|
2026-01-23 22:32:12 +08:00
|
|
|
|
handleCardClass(item) {
|
|
|
|
|
|
const {workStatus = ''} = item
|
2026-01-25 16:30:43 +08:00
|
|
|
|
return !(Object.keys(this.CLUSTERWorkStatusOptions).includes(item.workStatus)) ? "timing-card-container" : workStatus === '9' ? 'warning-card-container' : 'running-card-container'
|
2026-01-23 22:32:12 +08:00
|
|
|
|
},
|
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: 'CLUSTER'}, dataType)
|
2025-11-25 17:56:12 +08:00
|
|
|
|
},
|
2025-12-12 17:38:26 +08:00
|
|
|
|
showChart(pointName, deviceId) {
|
|
|
|
|
|
pointName && this.$refs.pointChart.showChart({pointName, deviceCategory: 'CLUSTER', deviceId})
|
2025-09-13 20:36:46 +08:00
|
|
|
|
},
|
2025-12-12 17:38:26 +08:00
|
|
|
|
updateData() {
|
2025-06-28 14:52:49 +08:00
|
|
|
|
this.loading = true
|
|
|
|
|
|
getBMSBatteryCluster(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
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
2025-06-22 21:01:34 +08:00
|
|
|
|
::v-deep {
|
|
|
|
|
|
//描述列表样式
|
2025-12-12 17:38:26 +08:00
|
|
|
|
.descriptions-main {
|
|
|
|
|
|
padding: 24px 300px 24px 24px;
|
2025-06-22 21:01:34 +08:00
|
|
|
|
}
|
2025-12-12 17:38:26 +08:00
|
|
|
|
|
|
|
|
|
|
.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-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%;
|
|
|
|
|
|
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-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>
|