成都三号线 引导总锁 实训代码调整

This commit is contained in:
joylink_cuiweidong 2021-02-05 14:55:55 +08:00
parent 871a04e441
commit 62bf080515
2 changed files with 11 additions and 4 deletions

View File

@ -217,7 +217,7 @@ export default {
} }
}, },
beforeDestroy() { beforeDestroy() {
this.buttonDown(this.Command.cancel.clearMbm.operation); this.resetMbmButton();
}, },
methods: { methods: {
passWordCommit(data) { passWordCommit(data) {
@ -325,6 +325,11 @@ export default {
}); });
} }
}, },
resetMbmButton() {
this.commandTypeList = [];
this.$store.dispatch('menuOperation/setButtonOperation', null);
Handler.clear(); //
},
// OR // OR
arrangementRouteOperation(deviceList) { arrangementRouteOperation(deviceList) {
const operate = { const operate = {
@ -659,7 +664,9 @@ export default {
} else { } else {
operate.cmdType = CMD.Station.CMD_STATION_SET_MASTER_GUIDE_LOCK; operate.cmdType = CMD.Station.CMD_STATION_SET_MASTER_GUIDE_LOCK;
} }
this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => { this.buttonDown(this.Command.cancel.clearMbm.operation); }).catch((error) => { this.$store.dispatch('training/nextNew', operate).then(({valid, response}) => {
this.resetMbmButton();
}).catch((error) => {
console.error(error); console.error(error);
this.$refs.noticeInfo.doShow(); this.$refs.noticeInfo.doShow();
}); });

View File

@ -907,7 +907,7 @@ export default {
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '609', tip: '鼠标左键点击【引导总锁】' }, { deviceType: '04', orderNum: 1, operateCode: '609', tip: '鼠标左键点击【引导总锁】' },
{ deviceType: '04', orderNum: 2, operateCode: '0011', tip: '输入密码123点击【确定】按钮' }, { deviceType: '04', orderNum: 2, operateCode: '0011', tip: '输入密码123点击【确定】按钮' },
{ deviceType: '04', orderNum: 3, operateCode: '1190', tip: '鼠标左键点击【{26}】', codeType:'BUTTON' } { deviceType: '04', orderNum: 3, operateCode: '609', tip: '鼠标左键点击【{26}】', codeType:'BUTTON' }
], ],
config:{guideTotalLockBT:true} config:{guideTotalLockBT:true}
}, },
@ -924,7 +924,7 @@ export default {
stepVOList: [ stepVOList: [
{ deviceType: '04', orderNum: 1, operateCode: '609', tip: '鼠标左键点击【引导总锁】' }, { deviceType: '04', orderNum: 1, operateCode: '609', tip: '鼠标左键点击【引导总锁】' },
{ deviceType: '04', orderNum: 2, operateCode: '0011', tip: '输入密码123点击【确定】按钮' }, { deviceType: '04', orderNum: 2, operateCode: '0011', tip: '输入密码123点击【确定】按钮' },
{ deviceType: '04', orderNum: 3, operateCode: '1190', tip: '鼠标左键点击【{26}】', codeType:'BUTTON' } { deviceType: '04', orderNum: 3, operateCode: '609', tip: '鼠标左键点击【{26}】', codeType:'BUTTON' }
], ],
config:{guideTotalLockBT:true} config:{guideTotalLockBT:true}
} }