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