西安2号线,修改开放自动进路和取消自动进路 实训配置

This commit is contained in:
lVAL 2021-01-21 17:00:12 +08:00
parent 0b9aeacda3
commit 1e488cdec6
2 changed files with 24 additions and 12 deletions

View File

@ -99,15 +99,27 @@ export default {
},
commit() {
const operate = {
operation: OperationEvent.Section.unlock.confirm.operation
};
};
let name = '';
let cmdType = '';
if (this.operation == OperationEvent.Section.unlock.menu.operation) {
operate.operation = OperationEvent.Section.unlock.confirm.operation;
cmdType = CMD.Section.CMD_SECTION_UNBLOCK;
name = '区段解锁';
} else if (this.operation == OperationEvent.Section.fault.menu.operation) {
operate.operation = OperationEvent.Section.fault.confirm.operation;
cmdType = CMD.Section.CMD_SECTION_FAULT_UNLOCK;
name = '区段故障解锁';
}
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('menuOperation/pushRequestList', {
device: this.selected,
operation: { code: OperationEvent.Command.commandXian.confirm.operation, name: '区段解锁'},
cmdType: CMD.Section.CMD_SECTION_UNBLOCK,
operation: { code: OperationEvent.Command.commandXian.confirm.operation, name },
cmdType,
param: {
sectionCode: this.selected.code
}

View File

@ -138,8 +138,8 @@ export default {
productTypes: ['01'],
stepVOList: [
{ deviceType: '03', orderNum: 1, operateCode: '402', tip: '鼠标右键菜单选择【区段故障解锁】' },
{ deviceType: '03', orderNum: 2, operateCode: '4042', tip: '鼠标左键点击【确定】按钮' },
{ deviceType: '03', orderNum: 2, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' }
{ deviceType: '03', orderNum: 2, operateCode: '4023', tip: '鼠标左键点击【确定】按钮' },
{ deviceType: '03', orderNum: 3, operateCode: '009', tip: '鼠标左键点击【发送请求】按钮' }
]
},
// {
@ -329,10 +329,10 @@ export default {
{
maxDuration: 15,
minDuration: 8,
operateType: 'Signal_Open_Auto_Setting',
operateType: 'Signal_Set_CI_Auto',
skinCode: '09',
trainingName: '进路交自动控({5})',
trainingRemark: '进路交自动控',
trainingName: '开放自动进路({5})',
trainingRemark: '设置联锁自动进路',
trainingType: 'Signal',
productTypes: ['01', '02'],
stepVOList: [
@ -343,10 +343,10 @@ export default {
{
maxDuration: 15,
minDuration: 8,
operateType: 'Signal_Close_Auto_Setting',
operateType: 'Signal_Cancel_CI_Auto',
skinCode: '09',
trainingName: '进路交人工控({5})',
trainingRemark: '进路交人工控',
trainingName: '关闭自动进路({5})',
trainingRemark: '取消自动联锁进路',
trainingType: 'Signal',
productTypes: ['01', '02'],
stepVOList: [