<script>
|
import HdwLight from "@/components/HdwLight.vue";
|
|
export default {
|
name: "battGroupAlarm9612",
|
components: {HdwLight},
|
props: {
|
table1: {
|
type: Object,
|
default(){
|
return {
|
datas: [
|
{
|
battGroupId: 0,
|
recordTime: 0,
|
groupAlarm: "无"
|
},
|
],
|
};
|
},
|
},
|
table2: {
|
type: Object,
|
default() {
|
return {
|
datas: [
|
{
|
battGroupId: 0,
|
monNum: 0,
|
commFail: -1, // 通信故障
|
volHigh: -1, // 过压
|
volLow: -1, // 欠压
|
tempHigh: -1, // 超温
|
resHigh: -1, // 内阻高
|
posLeak: -1, // 正极漏液
|
negLeak: -1, // 负极漏液
|
tempError: -1, // 温度故障
|
resError: -1, // 内阻故障
|
battBulging: -1, // 电池鼓胀
|
junHengError: -1, // 均衡维护故障
|
monTempLow: -1, // 单体温度超下限
|
battMainting: -1, // 电池处于维护中
|
},
|
],
|
};
|
}
|
}
|
},
|
}
|
</script>
|
|
<template>
|
<div class="dianchigaojing">
|
<!-- <div class="borderBox box1">-->
|
<!-- <el-table-->
|
<!-- stripe-->
|
<!-- size="small"-->
|
<!-- :data="table1.datas">-->
|
<!-- <el-table-column-->
|
<!-- prop="battGroupId"-->
|
<!-- align="center"-->
|
<!-- label="电池组ID">-->
|
<!-- </el-table-column>-->
|
<!-- <el-table-column-->
|
<!-- prop="recordTime"-->
|
<!-- align="center"-->
|
<!-- label="记录时间">-->
|
<!-- </el-table-column>-->
|
<!-- <el-table-column-->
|
<!-- prop="groupAlarm"-->
|
<!-- align="center"-->
|
<!-- label="电池组状态">-->
|
<!-- </el-table-column>-->
|
<!-- </el-table>-->
|
<!-- </div>-->
|
<div class="borderBox box2">
|
<el-table
|
stripe
|
size="small"
|
height="100%"
|
:data="table2.datas">
|
<el-table-column
|
prop="monNum"
|
align="center"
|
label="单体编号">
|
</el-table-column>
|
<el-table-column
|
prop="commFail"
|
align="center"
|
label="通信故障">
|
<template slot-scope="scope">
|
<hdw-light :type="scope.row.commFail"></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="volHigh"
|
align="center"
|
label="过压">
|
<template slot-scope="scope">
|
<hdw-light :type="scope.row.volHigh"></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="volLow"
|
align="center"
|
label="欠压">
|
<template slot-scope="scope">
|
<hdw-light :type="scope.row.volLow"></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="tempHigh"
|
align="center"
|
label="超温">
|
<template slot-scope="scope">
|
<hdw-light
|
:type="scope.row.tempHigh"
|
></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="resHigh"
|
align="center"
|
label="内阻高">
|
<template slot-scope="scope">
|
<hdw-light :type="scope.row.resHigh"></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="posLeak"
|
align="center"
|
label="正极漏液">
|
<template slot-scope="scope">
|
<hdw-light :type="scope.row.posLeak"></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="negLeak"
|
align="center"
|
label="负极漏液">
|
<template slot-scope="scope">
|
<hdw-light :type="scope.row.negLeak"></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="tempError"
|
align="center"
|
label="温度故障">
|
<template slot-scope="scope">
|
<hdw-light
|
:type="scope.row.tempError"
|
></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="resError"
|
align="center"
|
label="内阻故障">
|
<template slot-scope="scope">
|
<hdw-light :type="scope.row.resError"></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="battBulging"
|
align="center"
|
label="电池鼓胀">
|
<template slot-scope="scope">
|
<hdw-light :type="scope.row.battBulging"></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="junHengError"
|
align="center"
|
label="均衡维护故障">
|
<template slot-scope="scope">
|
<hdw-light :type="scope.row.junHengError"></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="monTempLow"
|
align="center"
|
label="温度超下限">
|
<template slot-scope="scope">
|
<hdw-light
|
:type="scope.row.monTempLow"
|
></hdw-light>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="battMainting"
|
align="center"
|
label="维护中">
|
<template slot-scope="scope">
|
<hdw-light
|
:type="scope.row.battMainting"
|
></hdw-light>
|
</template>
|
</el-table-column>
|
</el-table>
|
</div>
|
</div>
|
</template>
|
|
<style scoped>
|
.dianchigaojing {
|
display: flex;
|
flex-direction: column;
|
padding: 5px;
|
height: 100%;
|
}
|
|
.dianchigaojing .borderBox {
|
border: 1px solid #00fefe;
|
padding: 5px;
|
}
|
|
.dianchigaojing .borderBox.box1 {
|
margin-bottom: 8px;
|
}
|
|
.dianchigaojing .borderBox.box2 {
|
flex: 1;
|
overflow-y: scroll;
|
}
|
</style>
|