Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
b863211cca
@ -283,34 +283,38 @@ export default {
|
||||
},
|
||||
onMouseDown(em) {
|
||||
if (['SquareButton', 'Key'].includes(em.deviceType)) {
|
||||
const operate = {
|
||||
start: true,
|
||||
send: true,
|
||||
operation: OperationEvent.Ibp.buttonPressed.operation,
|
||||
cmdType: CMD.IBP.CMD_IBP_PRESS_BUTTON,
|
||||
param: {
|
||||
stationCode: this.stationCode,
|
||||
buttonCode: em.deviceCode
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('trainingNew/next', operate).catch(error => { this.$message.error(error.message); });
|
||||
setTimeout(() => {
|
||||
const operate = {
|
||||
start: true,
|
||||
send: true,
|
||||
operation: OperationEvent.Ibp.buttonPressed.operation,
|
||||
cmdType: CMD.IBP.CMD_IBP_PRESS_BUTTON,
|
||||
param: {
|
||||
stationCode: this.stationCode,
|
||||
buttonCode: em.deviceCode
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('trainingNew/next', operate).catch(error => { this.$message.error(error.message); });
|
||||
// handleIbpPress(this.$route.query.group, this.stationCode, em.deviceCode).catch(error => { this.$message.error(error.message); });
|
||||
}, 500);
|
||||
}
|
||||
},
|
||||
onMouseUp(em) {
|
||||
if (['SquareButton'].includes(em.deviceType)) {
|
||||
const operate = {
|
||||
start: true,
|
||||
send: true,
|
||||
operation: OperationEvent.Ibp.buttonRelease.operation,
|
||||
cmdType: CMD.IBP.CMD_IBP_RELEASE_BUTTON,
|
||||
param: {
|
||||
stationCode: this.stationCode,
|
||||
buttonCode: em.deviceCode
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('trainingNew/next', operate).catch(error => { this.$message.error(error.message); });
|
||||
setTimeout(() => {
|
||||
const operate = {
|
||||
start: true,
|
||||
send: true,
|
||||
operation: OperationEvent.Ibp.buttonRelease.operation,
|
||||
cmdType: CMD.IBP.CMD_IBP_RELEASE_BUTTON,
|
||||
param: {
|
||||
stationCode: this.stationCode,
|
||||
buttonCode: em.deviceCode
|
||||
}
|
||||
};
|
||||
this.$store.dispatch('trainingNew/next', operate).catch(error => { this.$message.error(error.message); });
|
||||
// handleIbpRelease(this.$route.query.group, this.stationCode, em.deviceCode).catch(error => { this.$message.error(error.message); });
|
||||
}, 500);
|
||||
}
|
||||
},
|
||||
// 右键点击事件
|
||||
|
Loading…
Reference in New Issue
Block a user