whyczyk
2022-02-25 ab09c93131ecb1b0c3afdb5a351a02d10d697546
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
import regEquipType from "@/assets/units/function/regEquipType";
function getTblHeader(dev_id) {
    let headers = [
        {
            prop: "num1",
            label: "单体编号",
            width: "",
            key1: "",
            fixed: 'left',
        },
        {
            prop: "vol1",
            label: "电压(V)",
            width: "",
            key1: "vol",
        },
        {
            prop: "res1",
            label: "内阻(mΩ)",
            width: "",
            key1: "res",
        },
        {
            prop: "temp1",
            label: "温度(℃)",
            width: "",
            key1: "temp",
        },
        {
            prop: "conduct1",
            label: "电导",
            width: "",
            key1: "conduct",
        },
        {
            prop: "monConnRes",
            label: "链接条阻值",
            width: "",
            key1: "monConnRes",
        },
        {
            prop: "curr1",
            label: "均衡电流(A)",
            width: "",
            key1: "curr",
        },
        {
            prop: "leakVol1",
            label: "漏液电压(V)",
            width: "",
            key1: "leakVol",
        },
        {
            prop: "monCap",
            label: "实际容量(AH)",
            width: "",
            key1: "monCap",
            type: "LD9",
        },
        {
            prop: "monTestCap",
            label: "测试容量(AH)",
            width: "",
            key1: "monTestCap",
            type: "LD9",
        },
        {
            prop: "monResCap",
            label: "剩余容量(AH)",
            width: "",
            key1: "monResCap",
            type: "LD9",
        },
        {
            prop: "monDisTimeLong",
            label: "放电可持续时长",
            width: "",
            key1: "monDisTimeLong",
            type: "LD9",
        },
    ];
    // 判断是否为锂电池
    if (regEquipType(dev_id, ["lithium"])) {
        headers = [
            {
                prop: "num1",
                label: "单体编号",
                width: "",
            },
            {
                prop: "vol1",
                label: "电压(V)",
                width: "",
            },
            {
                prop: "temp1",
                label: "温度(℃)",
                width: "",
            },
        ];
    }
    return headers;
}
 
export default getTblHeader;