西安三添加操作 设置默认发车轨 (问题调整)

This commit is contained in:
fan 2021-08-31 09:53:58 +08:00
parent 33b2c3cb43
commit 5e81b002e1
3 changed files with 13 additions and 6 deletions

View File

@ -72,7 +72,7 @@ export const menuOperate = {
}, },
setDefaultTransfer: { setDefaultTransfer: {
// 设置默认转换轨 // 设置默认转换轨
operation: OperationEvent.Section.loadSpareTrain.menu.operation, operation: OperationEvent.Section.setDefaultTransfer.menu.operation,
cmdType: CMD.Section.CMD_SECTION_SET_DEFAULT_TRANSFER cmdType: CMD.Section.CMD_SECTION_SET_DEFAULT_TRANSFER
} }
}, },

View File

@ -178,13 +178,14 @@ export default {
} }
// //
if (this.operatemode === OperateMode.FAULT && this.selected.type != '04') { if (this.operatemode === OperateMode.FAULT && this.selected.type != '04') {
this.menu = this.menuForce;
if (this.selected.transferTrack) { if (this.selected.transferTrack) {
this.menu.push({ this.menu = [...this.menuForce, {
label: '设置默认发车轨', label: '设置默认发车轨',
handler: this.setDefaultTransfer, handler: this.setDefaultTransfer,
cmdType: CMD.Section.CMD_SECTION_SET_DEFAULT_TRANSFER cmdType: CMD.Section.CMD_SECTION_SET_DEFAULT_TRANSFER
}); }];
} else {
this.menu = this.menuForce;
} }
} }
}, },
@ -224,8 +225,7 @@ export default {
}); });
}, },
setDefaultTransfer() { 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() { loadSpare() {
commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{ commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{

View File

@ -2207,6 +2207,13 @@ export const OperationEvent = {
operation: '425', operation: '425',
domId: '_Tips-Section-EarlyDeparture-menuBtn' domId: '_Tips-Section-EarlyDeparture-menuBtn'
} }
},
// 设置默认发车轨
setDefaultTransfer: {
menu: {
operation: '431',
domId: '_Tips-Section-SetDefaultTransfer-menu'
}
} }
}, },