派班计划代码调整

This commit is contained in:
joylink_cuiweidong 2020-08-04 16:27:23 +08:00
parent e8c3cbfe3c
commit 1f6fdb5341
3 changed files with 17 additions and 3 deletions

View File

@ -20,6 +20,7 @@
@devicemodel="devicemodel"
@showScheduling="showScheduling"
@schedulingView="schedulingView"
@hideScheduling="hideScheduling"
@switchStationMode="switchStationMode"
/>
<menu-lesson
@ -498,6 +499,13 @@ export default {
schedulingView() {
this.$refs.schedulingView.doShow();
},
hideScheduling(running) {
if (running) {
this.$refs.scheduling.doClose();
} else {
this.$refs.schedulingView.doClose();
}
},
showdriving() {
this.panelShow = true;
this.drivingShow = false;

View File

@ -156,9 +156,9 @@ export default {
'$store.state.socket.simulationOver':function(val) {
!this.isGoback && this.back();
},
'$store.state.training.started': function (val) {
this.setRuning(val);
},
// '$store.state.training.started': function (val) {
// this.setRuning(val);
// },
'$store.state.socket.simulationStart':function(val) {
if (val) {
this.setRuning(true);
@ -262,6 +262,7 @@ export default {
},
setRuning(run) {
this.runing = run;
this.$emit('hideScheduling', run);
},
end() {
this.isDisable = false;

View File

@ -202,6 +202,11 @@ export default {
// },
setRuning(run) {
this.runing = run;
if (run) {
this.$refs.runPlanLoad.doClose();
} else {
this.$refs.runPlanView.doClose();
}
},
setFault() {
this.$refs.faultChoose.doShow();