列车操作速度显示调整
This commit is contained in:
parent
cad848ce8e
commit
dd6f8bace4
@ -117,12 +117,12 @@ export default {
|
|||||||
adjustDirection() {
|
adjustDirection() {
|
||||||
sandTableTrainControl(this.$route.query.group, { groupNumber: this.groupNumber, right: !this.right, speed: this.speed }).then(resp => {
|
sandTableTrainControl(this.$route.query.group, { groupNumber: this.groupNumber, right: !this.right, speed: this.speed }).then(resp => {
|
||||||
this.right = !this.right;
|
this.right = !this.right;
|
||||||
}).catch(err => { this.$message.error(err.message); });
|
}).catch(err => { this.$message.error(err.message); }).finally(() => { this.changeSpeedFlag = false; });
|
||||||
},
|
},
|
||||||
brakeTrain() {
|
brakeTrain() {
|
||||||
sandTableTrainControl(this.$route.query.group, { groupNumber: this.groupNumber, right: this.right, speed: 0 }).then(resp => {
|
sandTableTrainControl(this.$route.query.group, { groupNumber: this.groupNumber, right: this.right, speed: 0 }).then(resp => {
|
||||||
this.speed = 0;
|
this.speed = 0;
|
||||||
}).catch(err => { this.$message.error(err.message); });
|
}).catch(err => { this.$message.error(err.message); }).finally(() => { this.changeSpeedFlag = false; });
|
||||||
},
|
},
|
||||||
handleRun() {
|
handleRun() {
|
||||||
const step = {
|
const step = {
|
||||||
@ -146,7 +146,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
this.$messageBox(error.message || 'Failed to set or cancel the fault!');
|
this.$messageBox(error.message || 'Failed to set or cancel the fault!');
|
||||||
});
|
}).finally(() => { this.changeSpeedFlag = false; });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user