|
@@ -308,15 +308,11 @@ struct WorkshopPage {
|
|
|
let controlStr = BusinessConstant.stationLightMap.get(this.clickStation.stationName!);
|
|
|
if (this.toggleType === 1) {
|
|
|
if (controlStr && controlStr.length > 0) {
|
|
|
- if (this.clickStation.stationType! === 1) {
|
|
|
- this.issueControlCommand(controlStr[0], this.clickStation.controlPowerStatus! === 1 ? 0 : 1);
|
|
|
- } else {
|
|
|
- this.issueControlCommand(controlStr[0], this.clickStation.controlPowerStatus! === 1 ? 0 : 1);
|
|
|
- }
|
|
|
+ this.issueControlCommand(controlStr[0], this.clickStation.controlPowerStatus! === 1 ? 0 : 1);
|
|
|
}
|
|
|
} else {
|
|
|
if (controlStr && controlStr.length >= 1) {
|
|
|
- this.issueControlCommand(controlStr[1], this.clickStation.controlPowerStatus! === 1 ? 0 : 1);
|
|
|
+ this.issueControlCommand(controlStr[1], this.clickStation.devicePowerStatus! === 1 ? 0 : 1);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -996,7 +992,6 @@ struct WorkshopPage {
|
|
|
this.stationArray[6] = device7;
|
|
|
this.robotArray[0] = device8
|
|
|
}
|
|
|
- console.log('hhtest', 'this.stationArray======' + JSON.stringify(this.stationArray))
|
|
|
} else {
|
|
|
console.info('hhtest', "messageArrived error:" + JSON.stringify(err));
|
|
|
}
|