|
@@ -152,14 +152,26 @@ struct WorkshopPage {
|
|
|
cancel: ()=> {},
|
|
|
confirm: ()=> {},
|
|
|
oneClickLightOn: ()=>{
|
|
|
+ let times = 1
|
|
|
this.issueControlCommand('LED1Control', 0)
|
|
|
- this.issueControlCommand('LED2Control', 0)
|
|
|
- this.issueControlCommand('LED3Control', 0)
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand('LED2Control', 0)
|
|
|
+ }, times * 1000);
|
|
|
+ times++;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand('LED3Control', 0)
|
|
|
+ }, times * 1000);
|
|
|
},
|
|
|
oneClickLightOff: ()=>{
|
|
|
- this.issueControlCommand('LED1Control', 1)
|
|
|
- this.issueControlCommand('LED2Control', 1)
|
|
|
+ let times = 1
|
|
|
this.issueControlCommand('LED3Control', 1)
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand('LED2Control', 1)
|
|
|
+ }, times * 1000);
|
|
|
+ times++;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand('LED1Control', 1)
|
|
|
+ }, times * 1000);
|
|
|
},
|
|
|
zoneOneLightControl: ()=>{
|
|
|
this.issueControlCommand('LED1Control', this.lightControlArray[0] === 1 ? 0 : 1)
|
|
@@ -474,10 +486,15 @@ struct WorkshopPage {
|
|
|
.onClick(()=>{
|
|
|
// this.workStatus = 1
|
|
|
this.issueControlCommand('LED1Control', 0)
|
|
|
- this.issueControlCommand('LED2Control', 0)
|
|
|
- this.issueControlCommand('LED3Control', 0)
|
|
|
-
|
|
|
let times = 1
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand('LED2Control', 0)
|
|
|
+ }, times * 1000);
|
|
|
+ times++;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand('LED3Control', 0)
|
|
|
+ }, times * 1000);
|
|
|
+ times++;
|
|
|
BusinessConstant.stationLightMap.forEach((value, key) => {
|
|
|
if (value && value.length === 2) {
|
|
|
setTimeout(()=>{
|
|
@@ -489,7 +506,7 @@ struct WorkshopPage {
|
|
|
this.issueControlCommand(value[0], 0)
|
|
|
}, times * 1000);
|
|
|
}
|
|
|
- times ++;
|
|
|
+ times++;
|
|
|
});
|
|
|
})
|
|
|
// 一键停工
|
|
@@ -517,20 +534,32 @@ struct WorkshopPage {
|
|
|
.borderRadius($r('app.float.virtualSize_6_4'))
|
|
|
.onClick(()=>{
|
|
|
// this.workStatus = 0
|
|
|
+ let times = 0
|
|
|
BusinessConstant.stationLightMap.forEach((value, key) => {
|
|
|
if (value && value.length === 2) {
|
|
|
- this.issueControlCommand(value[0], 1)
|
|
|
- this.issueControlCommand(value[1], 1)
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand(value[0], 1)
|
|
|
+ this.issueControlCommand(value[1], 1)
|
|
|
+ }, times * 1000);
|
|
|
} else if (value && value.length === 1) {
|
|
|
- this.issueControlCommand(value[0], 1)
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand(value[0], 1)
|
|
|
+ }, times * 1000);
|
|
|
}
|
|
|
+ times++;
|
|
|
});
|
|
|
-
|
|
|
- setTimeout(()=> {
|
|
|
- this.issueControlCommand('LED1Control', 1)
|
|
|
- this.issueControlCommand('LED2Control', 1)
|
|
|
+ times++;
|
|
|
+ setTimeout(()=>{
|
|
|
this.issueControlCommand('LED3Control', 1)
|
|
|
- }, 1500)
|
|
|
+ }, times * 1000);
|
|
|
+ times++;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand('LED2Control', 1)
|
|
|
+ }, times * 1000);
|
|
|
+ times++;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.issueControlCommand('LED1Control', 1)
|
|
|
+ }, times * 1000);
|
|
|
})
|
|
|
|
|
|
// 电源功耗
|