merge
This commit is contained in:
parent
bafc4d65e7
commit
939cf77b2e
@ -185,66 +185,6 @@ export default {
|
||||
beforeDestroy() {
|
||||
this.resetMbmButton()
|
||||
},
|
||||
methods: {
|
||||
updateButtonShow(val, old) {
|
||||
if (old) {
|
||||
// 恢复旧按钮显示
|
||||
// this.promptInfo = '';
|
||||
const domId = OperationHandler.getDomIdByOperation(old)
|
||||
const dom = document.getElementById(domId)
|
||||
if (dom) {
|
||||
dom.disabled = false
|
||||
dom.style.backgroundColor = this.buttonUpColor
|
||||
}
|
||||
}
|
||||
if (val) {
|
||||
// 新按钮按下效果
|
||||
const domId = OperationHandler.getDomIdByOperation(val)
|
||||
const dom = document.getElementById(domId)
|
||||
if (dom) {
|
||||
// this.promptInfo = dom.innerText;
|
||||
dom.disabled = true
|
||||
dom.style.backgroundColor = this.buttonDownColor
|
||||
}
|
||||
}
|
||||
},
|
||||
passWordCommit(data) {
|
||||
let operate = {}
|
||||
if (data.overNext) {
|
||||
operate = {
|
||||
over: true,
|
||||
code: data.code,
|
||||
operation: data.operation,
|
||||
cmdType: this.cmdType,
|
||||
param: data.param,
|
||||
}
|
||||
} else if (data.nextCmdType) {
|
||||
operate = {
|
||||
over: true,
|
||||
operation: data.operation,
|
||||
cmdType: data.nextCmdType,
|
||||
}
|
||||
} else {
|
||||
operate = {
|
||||
operation: data.operateNext,
|
||||
}
|
||||
}
|
||||
this.trainingOperation(operate)
|
||||
},
|
||||
// 执行操作
|
||||
trainingOperation(operate) {
|
||||
this.$store
|
||||
.dispatch('training/nextNew', operate)
|
||||
.then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true })
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error)
|
||||
this.$refs.noticeInfo.doShow()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
updateButtonShow(val, old) {
|
||||
if (old) {
|
||||
@ -340,7 +280,6 @@ export default {
|
||||
})
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||
|
Loading…
Reference in New Issue
Block a user