he wei
2024-09-21 70edda3b00f2528a473c28ec5a50b739ed160f0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<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>