| | |
| | | |
| | | var switchBtn = { |
| | | floatCharge:{ |
| | | open:{stats: 'off'}, // 常开接触器 |
| | | close: {stats: 'off'} // 常闭接触器 |
| | | k1:{stats: 'on'}, |
| | | k2: {stats: 'off'}, |
| | | k3: {stats: 'off'} |
| | | }, |
| | | discharge: { |
| | | open:{stats: 'on'}, |
| | | close: {stats: 'on'} |
| | | k1:{stats: 'off'}, |
| | | k2: {stats: 'on'}, |
| | | k3: {stats: 'on'} |
| | | }, |
| | | constCharge: { |
| | | open:{stats: 'on'}, |
| | | close: {stats: 'off'} |
| | | k1:{stats: 'off'}, |
| | | k2: {stats: 'on'}, |
| | | k3: {stats: 'off'} |
| | | }, |
| | | directCharge:{ |
| | | open:{stats: 'off'}, |
| | | close: {stats: 'on'} |
| | | k1:{stats: 'off'}, |
| | | k2: {stats: 'on'}, |
| | | k3: {stats: 'off'} |
| | | }, |
| | | unLink: { |
| | | open:{stats: 'off'}, |
| | | close: {stats: 'on'} |
| | | k1:{stats: 'off'}, |
| | | k2: {stats: 'off'}, |
| | | k3: {stats: 'off'} |
| | | }, |
| | | kd: { |
| | | open:{stats: 'on'}, |
| | | close:{stats: 'on'} |
| | | k1:{stats: 'off'}, |
| | | k2: {stats: 'off'}, |
| | | k3: {stats: 'off'} |
| | | }, |
| | | powerCutDis: { |
| | | open: {stats: 'off'}, |
| | | close: {stats: 'on'} |
| | | k1:{stats: 'off'}, |
| | | k2: {stats: 'off'}, |
| | | k3: {stats: 'off'} |
| | | } |
| | | |
| | | } |
| | |
| | | changeEleCircleOpt(eleCircle, 'current', temp); |
| | | |
| | | // 更新电路图中开关的状态 |
| | | changeEleCircleOpt(eleCircle, 'ko', btnObj.close); // 常闭开关 |
| | | changeEleCircleOpt(eleCircle, 'km', btnObj.open); // 常开开关 |
| | | changeEleCircleOpt(eleCircle, 'kc', btnObj.open); // 常开开关 |
| | | changeEleCircleOpt(eleCircle, 'ko', btnObj.k1); // 常闭开关 |
| | | changeEleCircleOpt(eleCircle, 'km', btnObj.k2); // 常开开关 |
| | | changeEleCircleOpt(eleCircle, 'kc', btnObj.k3); // 常开开关 |
| | | |
| | | changeEleCircleOpt(eleCircle, 'eleCurrent', currentColor); |
| | | } |