diff --git a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue index bbd31fc1e..35365614a 100644 --- a/src/jmapNew/theme/haerbin_01/menus/menuButton.vue +++ b/src/jmapNew/theme/haerbin_01/menus/menuButton.vue @@ -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;