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
| export const checkboxs = {
| // 交流ABC
| jl: [
| { value: "110001,110004,110007", label: "过压", model: true },
| { value: "110002,110005,110008", label: "欠压", model: true },
| { value: "110003,110006,110009", label: "缺相", model: true },
| { value: "110003,110006,110009", label: "过流", model: true }
| ],
| // 整流器
| zlq: [
| { value: "110017,110018,110019,110020,110021,110022,110023,110024,110025,110026,110027,110028,110029,110030,110031,110032", label: "整流器总故障", model: true },
| { value: "110063,110064,110065,110066,110067,110068,110069,110070,110071,110072,110073,110074,110075,110076,110077,110078", label: "整流器欠压", model: true },
| { value: "110079,110080,110081,110082,110083,110084,110085,110086,110087,110088,110089,110090,110091,110092,110093,110094", label: "整流器过流", model: true },
| { value: "110095,110096,110097,110098,110099,110100,110101,110102,110103,110104,110105,110106,110107,110108,110109,110110", label: "整流器交流异常", model: true },
| { value: "110047,110048,110049,110050,110051,110052,110053,110054,110055,110056,110057,110058,110059,110060,110061,1100602", label: "整流器过压", model: true },
| ],
| // 故障
| gz: [
| { value: "110033", label: "交流总故障", model: true },
| { value: "110034", label: "直流总故障", model: true },
| { value: "110011", label: "防雷器故障", model: true },
| { value: "110038", label: "监控器故障", model: true },
| { value: "110119, 110120", label: "通讯故障", model: true },
| { value: "110040", label: "开关柜故障", model: true },
| ],
| // 状态
| zt: [
| { value: "110010", label: "交流停电", model: true },
| { value: "110012,110013", label: "直流电压异常", model: true },
| { value: "110014", label: "负载熔断", model: true },
| { value: "110039", label: "直流过流", model: true },
| ],
| // 电池组
| dcz: [
| { value: "110015,110016", label: "熔断", model: true },
| { value: "110041,110042", label: "电压低", model: true },
| { value: "110043,110044", label: "下电", model: true },
| { value: "110045,110046", label: "充电过流", model: true },
| ],
| // 交流输入
| jlsr: [
| { value: "110111,110112", label: "跳闸", model: true },
| { value: "110113,110114", label: "熔丝告警", model: true },
| { value: "110115,110116", label: "三相不平衡", model: true },
| { value: "110117,110118", label: "频率异常", model: true },
| ],
| // 交流输入
| jlin: [
| { value: "110121,110122", label: "停电", model: true },
| { value: "110123,110124", label: "通信故障", model: true },
| ],
| // 温湿度和烟感
| wsy: [
| { value: "110125, 110126, 110127, 110128, 110129, 110130, 110134, 110135, 110136", label: "通信故障", model: true },
| { value: "110131, 110132, 110133", label: "烟感报警", model: true },
| ],
| //电池告警
| dcgj: [
| { value: "119001", label: "在线电压", model: true },
| { value: "119002", label: "组端电压", model: true },
| { value: "119003", label: "充电电流", model: true },
| { value: "119004", label: "放电电流", model: true },
| { value: "119005", label: "单体电压", model: true },
| { value: "119006", label: "单体温度", model: true },
| { value: "119007", label: "单体内阻", model: true },
| { value: "119012", label: "漏液电压", model: true },
| ],
| //设备状态
| sbzt: [
| { value: "0", label: "浮充", model: true },
| { value: "1", label: "充电", model: true },
| { value: "2", label: "放电", model: true },
| { value: "3", label: "停电放电", model: true },
| { value: "4", label: "内阻测试", model: true },
| { value: "5", label: "K1/D1测试", model: true },
| ],
| //通讯故障
| txgz: [
| { value: "0", label: "通讯正常", model: true },
| { value: "1", label: "通讯异常", model: true },
| ],
| //续航
| jfxh: [
| { value: "1", label: "续航1小时内", model: true },
| { value: "2", label: "续航1小时到2小时", model: true },
| { value: "3", label: "续航2小时到3小时", model: true },
| { value: "4", label: "续航3小时到5小时", model: true },
| { value: "5", label: "续航5小时到8小时", model: true },
| { value: "6", label: "续航8小时以上", model: true },
| ]
| };
| // 告警等级
| export const estateFn = function (str) {
| let estateArr = ["一级告警", "二级告警", "三级告警", "四级告警", "五级告警", "六级告警", "七级告警"];
| if (str < 1) {
| console.log("告警等级为0")
| return ""
| }
| return estateArr[str - 1];
| }
|
|