bugfix - 站控信号机操作

This commit is contained in:
Yuan 2023-11-22 14:17:48 +08:00
parent c513a3e80b
commit e29028ec0e

View File

@ -210,7 +210,7 @@ export default {
initMenu() { initMenu() {
this.menu = []; this.menu = [];
this.menuNormal.forEach(menuItem => { this.menuNormal.forEach(menuItem => {
menuItem.disabled = !judgeStationControl(this.selected.belongStationCode, this.selected.stationCode, this.work, menuItem.isAvailableInLocalMode) || menuItem.isDisabled(this.selected, this.work); menuItem.disabled = !judgeStationControl(this.selected.belongStationCode, this.selected.stationCode, this.work, menuItem.isAvailableInOtherControlMode) || menuItem.isDisabled(this.selected, this.work);
menuItem.show = menuItem.isShow(this.selected, this.work); menuItem.show = menuItem.isShow(this.selected, this.work);
this.menu.push(menuItem); this.menu.push(menuItem);
}); });