longyvfengyun
2023-12-25 d8d792a6842832e8f6af6604274c438b25053afe
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
function getDevType(chargeType, isBusCouple) {
    let type = 0;
    // 限流充电无母联
    if(chargeType == 1 && isBusCouple ==0) {
        type = 0;
    }
 
    // 限流充电无母联
    if(chargeType == 1 && isBusCouple ==1) {
        type = 1;
    }
 
    // 逆变充电无母联
    if(chargeType == 2 && isBusCouple ==0) {
        type = 2;
    }
 
    // 逆变充电无母联
    if(chargeType == 2 && isBusCouple ==1) {
        type = 3;
    }
 
    return type;
}
export default getDevType;