西安三添加操作 设置默认发车轨 (问题调整)
This commit is contained in:
parent
33b2c3cb43
commit
5e81b002e1
@ -72,7 +72,7 @@ export const menuOperate = {
|
||||
},
|
||||
setDefaultTransfer: {
|
||||
// 设置默认转换轨
|
||||
operation: OperationEvent.Section.loadSpareTrain.menu.operation,
|
||||
operation: OperationEvent.Section.setDefaultTransfer.menu.operation,
|
||||
cmdType: CMD.Section.CMD_SECTION_SET_DEFAULT_TRANSFER
|
||||
}
|
||||
},
|
||||
|
@ -178,13 +178,14 @@ export default {
|
||||
}
|
||||
// 故障模式菜单列表
|
||||
if (this.operatemode === OperateMode.FAULT && this.selected.type != '04') {
|
||||
this.menu = this.menuForce;
|
||||
if (this.selected.transferTrack) {
|
||||
this.menu.push({
|
||||
this.menu = [...this.menuForce, {
|
||||
label: '设置默认发车轨',
|
||||
handler: this.setDefaultTransfer,
|
||||
cmdType: CMD.Section.CMD_SECTION_SET_DEFAULT_TRANSFER
|
||||
});
|
||||
}];
|
||||
} else {
|
||||
this.menu = this.menuForce;
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -224,8 +225,7 @@ export default {
|
||||
});
|
||||
},
|
||||
setDefaultTransfer() {
|
||||
commitOperate(menuOperate.Section.setDefaultTransfer, {sectionCode:this.selected.code}, 3).then(({valid, operate})=>{
|
||||
});
|
||||
commitOperate(menuOperate.Section.setDefaultTransfer, {sectionCode:this.selected.code}, 3).then(({valid, operate})=>{});
|
||||
},
|
||||
loadSpare() {
|
||||
commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
|
||||
|
@ -2207,6 +2207,13 @@ export const OperationEvent = {
|
||||
operation: '425',
|
||||
domId: '_Tips-Section-EarlyDeparture-menuBtn'
|
||||
}
|
||||
},
|
||||
// 设置默认发车轨
|
||||
setDefaultTransfer: {
|
||||
menu: {
|
||||
operation: '431',
|
||||
domId: '_Tips-Section-SetDefaultTransfer-menu'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user