调整西安三设置联锁自动进路条件

This commit is contained in:
fan 2021-07-20 17:58:27 +08:00
parent c9ce97534a
commit 38dbebe6a6

View File

@ -245,6 +245,14 @@ export default {
initMenu() {
this.menu = MenuContextHandler.covert(this.menuNormal);
//
const menuItem = this.menu.find( item => item.cmdType === CMD.Signal.CMD_SIGNAL_SET_CI_AUTO);
const menuItemDisabled = menuItem.disabled;
menuItem.disabled = true;
this.routeList.forEach(route => {
if (route.startSignalCode === this.selected.code && route.flt) {
menuItem.disabled = menuItemDisabled;
}
});
if (this.operatemode === OperateMode.FAULT) {
this.menu = this.menuForce;
}