| | |
| | | |
| | | // 设置停电放电状态 |
| | | if (data.devOnlinevollow) { |
| | | this.inputs.battState = 5; |
| | | this.diagram.type = 5; |
| | | this.diagram.desc = "(开关闭合)"; |
| | | this.diagram.powerCut = 1; |
| | | if (this.isBTS9140) { |
| | | this.workState = "停电放电"; |
| | | if(this.inputs.groupCurr>0) { |
| | | this.inputs.battState = 1; |
| | | this.diagram.type = 1; |
| | | if (this.isBTS9140) { |
| | | this.workState = "直连充电"; |
| | | } |
| | | }else { |
| | | this.inputs.battState = 5; |
| | | this.diagram.type = 5; |
| | | this.diagram.desc = "(开关闭合)"; |
| | | this.diagram.powerCut = 1; |
| | | if (this.isBTS9140) { |
| | | this.workState = "停电放电"; |
| | | } |
| | | } |
| | | // 当前设备是BTS设备 |
| | | if (workstatus === 0 && data.devResTestState !== 0) { |
| | |
| | | // 关闭遮罩层 |
| | | this.maskShow = false; |
| | | // 设置停电放电状态 |
| | | // 如果电流是为正(充电)。那么平台的拓扑电流流向为直连充电的流向,并且显示的设备状态为直连充电 |
| | | // 如果电流是为负(放电),那么那么平台的拓扑电流流向为停电放电的流向,并且显示的设备状态为停电放电。 |
| | | if (data.devOnlinevollow) { |
| | | this.inputs.battState = 5; |
| | | this.diagram.type = 5; |
| | | this.diagram.desc = "(开关闭合)"; |
| | | this.diagram.powerCut = 1; |
| | | if(this.inputs.groupCurr>0) { |
| | | this.inputs.battState = 1; |
| | | this.diagram.type = 0; |
| | | this.diagram.desc = "(开关闭合)"; |
| | | // 修改读到的状态为直连充电 |
| | | data.devWorkstate = 0; |
| | | }else { |
| | | this.inputs.battState = 5; |
| | | this.diagram.type = 5; |
| | | this.diagram.desc = "(开关闭合)"; |
| | | this.diagram.powerCut = 1; |
| | | } |
| | | |
| | | // 当前设备是BTS设备 |
| | | if (workstatus === 0 && data.devResTestState !== 0) { |
| | | this.diagram.desc += "(内阻测试)"; |
| | |
| | | this.diagram.type = 1; |
| | | this.diagram.desc = "(开关断开)"; |
| | | break; |
| | | case 3: //放电状态拓扑图 |
| | | this.diagram.type = 5; |
| | | case 3: // 停电放电放电状态拓扑图 |
| | | if(this.inputs.groupCurr>0) { |
| | | this.diagram.type = 0; |
| | | // 修改读到的状态为直连充电 |
| | | data.devWorkstate = 0; |
| | | }else { |
| | | this.diagram.type = 5; |
| | | } |
| | | break; |
| | | case 5: //放电状态(KD测试)拓扑图 |
| | | this.diagram.type = 3; |