代码调整

This commit is contained in:
dong 2022-12-06 16:42:41 +08:00
parent f7679a4cb1
commit e7b6014974

View File

@ -55,30 +55,65 @@ export default {
label: '上电解锁',
handler: this.powerUnLock,
cmdType: CMD.Station.CMD_STATION_POWER_ON_UNLOCK,
isDisabled: (station, work) => {
if (work === 'localWork') {
return station.controlMode !== 'Local';
} else {
return station.controlMode !== 'Center';
}
},
isShow: (station, work) => work === 'localWork'
},
{
label: '全站设置联锁自动触发',
handler: this.setAutoTrigger,
cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER,
isDisabled: (station, work) => {
if (work === 'localWork') {
return station.controlMode !== 'Local';
} else {
return station.controlMode !== 'Center';
}
},
isShow: (station, work) => work === 'localWork'
},
{
label: '全站取消联锁自动触发',
handler: this.cancelAutoTrigger,
cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER,
isDisabled: (station, work) => {
if (work === 'localWork') {
return station.controlMode !== 'Local';
} else {
return station.controlMode !== 'Center';
}
},
isShow: (station, work) => work === 'localWork'
},
{
label: '所有进路交ATS自动控',
handler: this.atsAutoControlALL,
cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING,
isDisabled: (station, work) => {
if (work === 'localWork') {
return station.controlMode !== 'Local';
} else {
return station.controlMode !== 'Center';
}
},
isShow: (station, work) => work === 'localWork'
},
{
label: '所有进路交人工控',
handler: this.humanControlALL,
cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING,
isDisabled: (station, work) => {
if (work === 'localWork') {
return station.controlMode !== 'Local';
} else {
return station.controlMode !== 'Center';
}
},
isShow: (station, work) => work === 'localWork'
},
// {
@ -90,12 +125,26 @@ export default {
label: '所有进路交人工控',
handler: this.humanControlALL,
cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING,
isDisabled: (station, work) => {
if (work === 'localWork') {
return station.controlMode !== 'Local';
} else {
return station.controlMode !== 'Center';
}
},
isShow: (station, work) => work === 'dispatchWork'
},
{
label: '所有进路交ATS自动控',
handler: this.atsAutoControlALL,
cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING,
isDisabled: (station, work) => {
if (work === 'localWork') {
return station.controlMode !== 'Local';
} else {
return station.controlMode !== 'Center';
}
},
isShow: (station, work) => work === 'dispatchWork'
}
// {