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
| <script>
| import HdwLight from "@/components/HdwLight.vue";
|
| export default {
| name: "battGroupAlarm",
| components: {HdwLight},
| props: {
| table1: {
| type: Object,
| default(){
| return {
| datas: [
| {
| battGroupId: 0,
| recordTime: 0,
| groupVolAlarm: 0,
| testEndVol: 0,
| testEndCap: 0,
| testTimeLong: 0,
| },
| ],
| };
| },
| },
| table2: {
| type: Object,
| default() {
| return {
| datas: [
| {
| battGroupId: 0,
| recordTime: 0,
| monNum: 0,
| monVolAlarm: 0,
| monTempAlarm: 0,
| monResAlarm: 0,
| monRestCapAlarm: 0,
| },
| ],
| };
| }
| }
| },
| }
| </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="groupVolAlarm"
| align="center"
| label="组电压告警">
| <template slot-scope="scope">
| <hdw-light :type="scope.row.groupVolAlarm"></hdw-light>
| </template>
| </el-table-column>
| <el-table-column
| prop="testEndVol"
| align="center"
| label="测试终止电压">
| </el-table-column>
| <el-table-column
| prop="testEndCap"
| align="center"
| label="测试终止剩余容量">
| </el-table-column>
| <el-table-column
| prop="testTimelong"
| 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="battGroupId"
| align="center"
| label="电池组ID">
| </el-table-column>
| <el-table-column
| prop="recordTime"
| align="center"
| label="记录时间">
| </el-table-column>
| <el-table-column
| prop="monNum"
| align="center"
| label="单体编号">
| </el-table-column>
| <el-table-column
| prop="monVolAlarm"
| align="center"
| label="单体电压告警">
| <template slot-scope="scope">
| <hdw-light :type="scope.row.monVolAlarm"></hdw-light>
| </template>
| </el-table-column>
| <el-table-column
| prop="monTempAlarm"
| align="center"
| label="单体温度告警">
| <template slot-scope="scope">
| <hdw-light :type="scope.row.monTempAlarm"></hdw-light>
| </template>
| </el-table-column>
| <el-table-column
| prop="monResAlarm"
| align="center"
| label="单体内阻告警">
| <template slot-scope="scope">
| <hdw-light :type="scope.row.monResAlarm"></hdw-light>
| </template>
| </el-table-column>
| <el-table-column
| prop="monRestCapAlarm"
| align="center"
| label="单体预估容量告警">
| <template slot-scope="scope">
| <hdw-light
| :type="scope.row.monRestCapAlarm"
| ></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>
|
|