BUG:【北京一号线】车站排列进路实训编制时点击始端信号机没有生成操作
This commit is contained in:
parent
43eb3c4a39
commit
9bf43b5b45
@ -293,6 +293,11 @@ export default {
|
||||
},
|
||||
'$store.state.menuOperation.selectedCount': function (val) {
|
||||
this.selectedChange();
|
||||
},
|
||||
'$store.state.trainingNew.trainingSwitch': function (val) {
|
||||
if (val) {
|
||||
this.$store.dispatch('menuOperation/setButtonOperation', null);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -226,6 +226,12 @@ export default {
|
||||
}
|
||||
this.clickNum = 0;
|
||||
} else {
|
||||
const operate = {
|
||||
code: selectType.code,
|
||||
operation: OperationEvent.Signal.arrangementRoute.button.operation
|
||||
};
|
||||
this.$store.dispatch('trainingNew/next', operate).then(valid => {
|
||||
if (valid) {
|
||||
this.oldSelected = selectType;
|
||||
this.routeList.forEach(elem => {
|
||||
if (elem.startSignalCode === this.oldSelected.code) {
|
||||
@ -237,6 +243,8 @@ export default {
|
||||
});
|
||||
this.clickNum++;
|
||||
}
|
||||
});
|
||||
}
|
||||
break;
|
||||
}
|
||||
case OperationEvent.MixinCommand.totalCancel.button.operation: {
|
||||
@ -326,7 +334,7 @@ export default {
|
||||
},
|
||||
// 现地设置进路
|
||||
setRoute(route) {
|
||||
commitOperate(menuOperate.Signal.arrangementRoute, {routeCode:route.code}, 3).then(({valid, operate})=>{
|
||||
commitOperate(menuOperate.Signal.arrangementRoute, {code: this.selected.code, routeCode:route.code}, 3).then(({valid, operate})=>{
|
||||
}).catch(error=>{
|
||||
console.error(error);
|
||||
this.$refs.noticeInfo.doShow();
|
||||
|
Loading…
Reference in New Issue
Block a user