bug12(哈尔滨仿真线路里的交出控制功能逻辑问题)修改

This commit is contained in:
joylink_cuiweidong 2020-12-31 14:13:51 +08:00
parent a3860cc279
commit 2d831ca398

View File

@ -231,7 +231,28 @@ export default {
const type = State2SimulationMap[this.$store.state.training.prdType];
if (control.controlMode != type) {
this.clearAllMenuShow();
this.centralizedStationList = new Array(15).fill({});
if (type == 'Center' && this.selected._type == 'Station') {
this.selectedObj = this.selected;
if (this.selectedObj._type) {
this.canCommand = true;
const step = {
operation: 'click',
code: this.selectedObj.code,
subType:this.$store.state.menuOperation.subType
};
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) {
this.centralizedStationList = new Array(15).fill({});
this.centralizedStationList[0] = { name: '接收控制', cmdType: CMD.ControlConvertMenu.CMD_CM_RECEIVE_CONTROL, operate: OperationEvent.StationControl.requestStationControl.menu, show: false, disabledName: 'controlMode', mode: 'Center' };
this.tempData = [];
this.tempData.push(this.selectedObj);
this.param = { stationCode: this.selectedObj.code };
}
});
}
} else {
this.centralizedStationList = new Array(15).fill({});
}
return false;
}
}