删除列车缺少参数调整
This commit is contained in:
parent
27b5fcb962
commit
2523801dbe
@ -814,7 +814,7 @@ export default {
|
||||
over: true
|
||||
};
|
||||
if (this.trainOperateType === 'update') {
|
||||
params.groupNumber = this.trainModel.groupNumber;
|
||||
params.groupNumber = this.trainModel.groupNumber || this.trainModel.code;
|
||||
params.serviceNumber = '0' + this.formModelNewTrip.slice(3, 6);
|
||||
params.tripNumber = this.formModelNewTrip.slice(6, 8);
|
||||
step.cmdType = CMD.TrainWindow.CMD_TRAIN_SET_PLAN;
|
||||
@ -831,12 +831,12 @@ export default {
|
||||
step.operation = OperationEvent.Train.addTrainId.menu.operation;
|
||||
step.param = params;
|
||||
} else if (this.trainOperateType === 'delete') {
|
||||
params.groupNumber = this.trainModel.groupNumber;
|
||||
params.groupNumber = this.trainModel.groupNumber || this.trainModel.code;
|
||||
step.cmdType = CMD.TrainWindow.CMD_TRAIN_REMOVE_TRAIN_TRACE;
|
||||
step.operation = OperationEvent.Train.delTrainId.menu.operation;
|
||||
step.param = params;
|
||||
} else if (this.trainOperateType === 'move') {
|
||||
params.groupNumber = this.trainModel.groupNumber;
|
||||
params.groupNumber = this.trainModel.groupNumber || this.trainModel.code;
|
||||
params.sectionCode = this.formModelNewSection;
|
||||
step.cmdType = CMD.TrainWindow.CMD_TRAIN_MOVE_TRAIN_TRACE;
|
||||
step.operation = OperationEvent.Train.moveTrainId.menu.operation;
|
||||
|
Loading…
Reference in New Issue
Block a user