南京二号线 传输信号机控制权判断调整
This commit is contained in:
parent
e81585b706
commit
0bc72ed589
@ -465,7 +465,11 @@ export default {
|
||||
this.rightClickDialogVisible = false;
|
||||
if (this.selectedObj._type && (val._event == MouseEvent.Left || (val._event == MouseEvent.Right && this.$store.state.training.prdType === '01'))) {
|
||||
const type = this.State2SimulationMap[this.$store.state.training.prdType];
|
||||
this.modeMatch = this.stationContorl.controlMode == type;
|
||||
if (val._type === 'Signal' && val.type === 'TRANSMISSION') {
|
||||
this.modeMatch = true;
|
||||
} else {
|
||||
this.modeMatch = this.stationContorl.controlMode == type;
|
||||
}
|
||||
// 道岔区段 是道岔操作
|
||||
if (this.selectedObj._type == 'Section' && this.selectedObj.type == '03') {
|
||||
this.selectedObj = this.selectedObj.switch;
|
||||
@ -1381,7 +1385,7 @@ export default {
|
||||
{ name: '交出控制', commandTip: '交出控制权', cmdType: CMD.ControlConvertMenu.CMD_CM_SURRENDER_CONTROL, operate: OperationEvent.StationControl.requestCentralControl.menuButton, disabledCb: (stationControl) => ['Local', 'None'].includes(stationControl.controlMode) }
|
||||
];
|
||||
this.routeParamList = [
|
||||
{ name: '排列进路', commandTip: '进路排列', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.arrangementRoute.menuButton, disabledCb: (stationControl) => !this.modeMatch || !this.route },
|
||||
{ name: '排列进路', commandTip: '进路排列', cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE, operate: OperationEvent.Signal.arrangementRoute.menuButton, disabledCb: (stationControl) => { console.log(this.modeMatch, this.route); return !this.modeMatch || !this.route; } },
|
||||
{ name: '取消进路', commandTip: '取消排列', cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE, operate: OperationEvent.Signal.cancelTrainRoute.menuButton, disabledCb: (stationControl) => !this.modeMatch || !this.route }
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user