diff --git a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue index e382bf9c0..aad987dfd 100644 --- a/src/jmapNew/theme/chengdu_03/menus/menuButton.vue +++ b/src/jmapNew/theme/chengdu_03/menus/menuButton.vue @@ -513,18 +513,18 @@ export default { cmdType: '', param: {} }; - if (model.type === 'Switch' && buttonOperation === this.MixinCommand.block.button.operation) { + if (model._type === 'Switch' && buttonOperation === this.MixinCommand.block.button.operation) { operate.cmdType = CMD.Switch.CMD_SWITCH_BLOCK; - operate.param = {SwitchCode: model.code}; - } else if (model.type === 'Switch' && buttonOperation === this.MixinCommand.unblock.button.operation) { + operate.param = {switchCode: model.code}; + } else if (model._type === 'Switch' && buttonOperation === this.MixinCommand.unblock.button.operation) { operate.cmdType = CMD.Switch.CMD_SWITCH_UNBLOCK; - operate.param = {SwitchCode: model.code}; - } else if (model.type === 'Signal' && buttonOperation === this.MixinCommand.block.button.operation) { + operate.param = {switchCode: model.code}; + } else if (model._type === 'Signal' && buttonOperation === this.MixinCommand.block.button.operation) { operate.cmdType = CMD.Signal.CMD_SIGNAL_BLOCK; - operate.param = {SignalCode: model.code}; - } else if (model.type === 'Signal' && buttonOperation === this.MixinCommand.unblock.button.operation) { + operate.param = {signalCode: model.code}; + } else if (model._type === 'Signal' && buttonOperation === this.MixinCommand.unblock.button.operation) { operate.cmdType = CMD.Signal.CMD_SIGNAL_UNBLOCK; - operate.param = {SignalCode: model.code}; + operate.param = {signalCode: model.code}; } this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {}).catch(() => { this.$refs.noticeInfo.doShow(operate);