派班计划代码调整
This commit is contained in:
parent
e8c3cbfe3c
commit
1f6fdb5341
@ -20,6 +20,7 @@
|
|||||||
@devicemodel="devicemodel"
|
@devicemodel="devicemodel"
|
||||||
@showScheduling="showScheduling"
|
@showScheduling="showScheduling"
|
||||||
@schedulingView="schedulingView"
|
@schedulingView="schedulingView"
|
||||||
|
@hideScheduling="hideScheduling"
|
||||||
@switchStationMode="switchStationMode"
|
@switchStationMode="switchStationMode"
|
||||||
/>
|
/>
|
||||||
<menu-lesson
|
<menu-lesson
|
||||||
@ -498,6 +499,13 @@ export default {
|
|||||||
schedulingView() {
|
schedulingView() {
|
||||||
this.$refs.schedulingView.doShow();
|
this.$refs.schedulingView.doShow();
|
||||||
},
|
},
|
||||||
|
hideScheduling(running) {
|
||||||
|
if (running) {
|
||||||
|
this.$refs.scheduling.doClose();
|
||||||
|
} else {
|
||||||
|
this.$refs.schedulingView.doClose();
|
||||||
|
}
|
||||||
|
},
|
||||||
showdriving() {
|
showdriving() {
|
||||||
this.panelShow = true;
|
this.panelShow = true;
|
||||||
this.drivingShow = false;
|
this.drivingShow = false;
|
||||||
|
@ -156,9 +156,9 @@ export default {
|
|||||||
'$store.state.socket.simulationOver':function(val) {
|
'$store.state.socket.simulationOver':function(val) {
|
||||||
!this.isGoback && this.back();
|
!this.isGoback && this.back();
|
||||||
},
|
},
|
||||||
'$store.state.training.started': function (val) {
|
// '$store.state.training.started': function (val) {
|
||||||
this.setRuning(val);
|
// this.setRuning(val);
|
||||||
},
|
// },
|
||||||
'$store.state.socket.simulationStart':function(val) {
|
'$store.state.socket.simulationStart':function(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.setRuning(true);
|
this.setRuning(true);
|
||||||
@ -262,6 +262,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setRuning(run) {
|
setRuning(run) {
|
||||||
this.runing = run;
|
this.runing = run;
|
||||||
|
this.$emit('hideScheduling', run);
|
||||||
},
|
},
|
||||||
end() {
|
end() {
|
||||||
this.isDisable = false;
|
this.isDisable = false;
|
||||||
|
@ -202,6 +202,11 @@ export default {
|
|||||||
// },
|
// },
|
||||||
setRuning(run) {
|
setRuning(run) {
|
||||||
this.runing = run;
|
this.runing = run;
|
||||||
|
if (run) {
|
||||||
|
this.$refs.runPlanLoad.doClose();
|
||||||
|
} else {
|
||||||
|
this.$refs.runPlanView.doClose();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setFault() {
|
setFault() {
|
||||||
this.$refs.faultChoose.doShow();
|
this.$refs.faultChoose.doShow();
|
||||||
|
Loading…
Reference in New Issue
Block a user