he wei
2024-04-15 c94f1afa786f297be86b01b49a641b2c0ad98b6e
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
import const_9100 from "./const_9100";
const { stopReason } = const_9100;
 
// 交直流
const props1 = [
  {
    label: "在线电压",
    key0: "onlineVolReal",
    key1: "onlineVolFake",
    flag: "onlineVolSt",
  },
  {
    label: "组端电压",
    key0: "groupVolReal",
    key1: "groupVolFake",
    flag: "groupVolSt",
  },
  {
    label: "电流方向",
    key0: "currDirReal",
    key1: "currDirFake",
    flag: "currDirSt",
    option: ["充电", "放电"],
  },
  {
    label: "电流",
    key0: "groupCurrReal",
    key1: "groupCurrFake",
    flag: "groupCurrSt",
  },
  {
    label: "测试容量",
    key0: "testCapReal",
    key1: "testCapFake",
    flag: "testCapSt",
  },
  {
    label: "电池温度",
    key0: "devTmpReal",
    key1: "devTmpFake",
    flag: "devTmpSt",
  },
];
const props2 = [
  {
    label: "单体N电压",
    key0: "monVolReal",
    key1: "monVolFake",
    flag: "monVolSt",
  },
  {
    label: "单体N内阻",
    key0: "monResReal",
    key1: "monResFake",
    flag: "monResSt",
  },
  {
    label: "单体N温度",
    key0: "monTmpReal",
    key1: "monTmpFake",
    flag: "monTmpSt",
  },
  {
    label: "单体N均衡电流",
    key0: "monJhCurrReal",
    key1: "monJhCurrFake",
    flag: "monJhCurrSt",
  },
  {
    label: "单体N终止剩余容量",
    key0: "monRestCapReal",
    key1: "monRestCapFake",
    flag: "monRestCapSt",
  },
  {
    label: "单体N终止电压",
    key0: "testMonVolReal",
    key1: "testMonVolFake",
    flag: "testMonVolSt",
  },
  {
    label: "单体N终止温度",
    key0: "testMonTmpReal",
    key1: "testMonTmpFake",
    flag: "testMonTmpSt",
  },
];
 
const alarm = [
  {
    label: "常闭接触器K1告警",
    key0: "k1AlmReal",
    key1: "k1AlmFake",
    flag: "k1AlmSt",
  },
  {
    label: "通讯告警",
    key0: "devCommerrReal",
    key1: "devCommerrFake",
    flag: "devCommerrSt",
  },
  {
    label: "二极管D1告警",
    key0: "d1AlmReal",
    key1: "d1AlmFake",
    flag: "d1AlmSt",
  },
];
 
const props3 = [
  {
    label: "设备工作状态",
    key0: "devWorkStateReal",
    key1: "devWorkStateFake",
    flag: "devWorkStateSt",
    option: [
      "在线浮充",
      "预充电(限流充电)",
      "核容测试",
      "停电放电",
      "内阻测试",
      "K1/D1 测试",
    ],
  },
  {
    label: "核容终止原因",
    key0: "testStopTypeReal",
    key1: "testStopTypeFake",
    option: stopReason,
    flag: "testStopTypeSt",
  },
  {
    label: "终止在线电压",
    key0: "testOnlineVolReal",
    key1: "testOnlineVolFake",
    flag: "testOnlineVolSt",
  },
  {
    label: "终止组端电压",
    key0: "testGroupVolReal",
    key1: "testGroupVolFake",
    flag: "testGroupVolSt",
  },
  {
    label: "终止时已放电时间",
    key0: "testTimeLongReal",
    key1: "testTimeLongFake",
    flag: "testTimeLongSt",
  },
  {
    label: "终止时核容电流",
    key0: "testOverCurrReal",
    key1: "testOverCurrFake",
    flag: "testOverCurrSt",
  },
  {
    label: "终止时剩余容量",
    key0: "testOverRestCapReal",
    key1: "testOverRestCapFake",
    flag: "testOverRestCapSt",
  },
  {
    label: "K1触点电阻值",
    key0: "k1PointResReal",
    key1: "k1PointResFake",
    flag: "k1PointResSt",
  },
  {
    label: "K1触点测试电流",
    key0: "k1PointCurrReal",
    key1: "k1PointCurrFake",
    flag: "k1PointCurrSt",
  },
  {
    label: "D1导通压降",
    key0: "d1CondVolDpReal",
    key1: "d1CondVolDpFake",
    flag: "d1CondVolDpSt",
  },
  {
    label: "D1导通测试电流",
    key0: "d1CondTestCurrReal",
    key1: "d1CondTestCurrFake",
    flag: "d1CondTestCurrSt",
  },
];
 
const getPropList = (count) => {
  let list = [];
  props2.forEach((v) => {
    let sub = [];
    let { label, key0, key1, flag } = v;
    for (let i = 0; i < count; i++) {
      let idx = i + 1;
      sub.push({
        label: label.replace("N", idx),
        key0,
        key1,
        flag,
        monNum: idx,
      });
    }
    list.push(sub);
  });
  return list;
};
 
export default {
  props1,
  props2,
  props3,
  alarm,
  getPropList,
};