派班计划代码调整
This commit is contained in:
parent
e8c3cbfe3c
commit
1f6fdb5341
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user