代码调整
This commit is contained in:
parent
f7679a4cb1
commit
e7b6014974
@ -55,30 +55,65 @@ export default {
|
|||||||
label: '上电解锁',
|
label: '上电解锁',
|
||||||
handler: this.powerUnLock,
|
handler: this.powerUnLock,
|
||||||
cmdType: CMD.Station.CMD_STATION_POWER_ON_UNLOCK,
|
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'
|
isShow: (station, work) => work === 'localWork'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '全站设置联锁自动触发',
|
label: '全站设置联锁自动触发',
|
||||||
handler: this.setAutoTrigger,
|
handler: this.setAutoTrigger,
|
||||||
cmdType: CMD.Station.CMD_STATION_SET_CI_AUTO_TRIGGER,
|
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'
|
isShow: (station, work) => work === 'localWork'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '全站取消联锁自动触发',
|
label: '全站取消联锁自动触发',
|
||||||
handler: this.cancelAutoTrigger,
|
handler: this.cancelAutoTrigger,
|
||||||
cmdType: CMD.Station.CMD_STATION_CANCEL_CI_AUTO_TRIGGER,
|
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'
|
isShow: (station, work) => work === 'localWork'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '所有进路交ATS自动控',
|
label: '所有进路交ATS自动控',
|
||||||
handler: this.atsAutoControlALL,
|
handler: this.atsAutoControlALL,
|
||||||
cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING,
|
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'
|
isShow: (station, work) => work === 'localWork'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '所有进路交人工控',
|
label: '所有进路交人工控',
|
||||||
handler: this.humanControlALL,
|
handler: this.humanControlALL,
|
||||||
cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING,
|
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'
|
isShow: (station, work) => work === 'localWork'
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
@ -90,12 +125,26 @@ export default {
|
|||||||
label: '所有进路交人工控',
|
label: '所有进路交人工控',
|
||||||
handler: this.humanControlALL,
|
handler: this.humanControlALL,
|
||||||
cmdType: CMD.Station.CMD_STATION_CLOSE_AUTO_SETTING,
|
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'
|
isShow: (station, work) => work === 'dispatchWork'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '所有进路交ATS自动控',
|
label: '所有进路交ATS自动控',
|
||||||
handler: this.atsAutoControlALL,
|
handler: this.atsAutoControlALL,
|
||||||
cmdType: CMD.Station.CMD_STATION_OPEN_AUTO_SETTING,
|
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'
|
isShow: (station, work) => work === 'dispatchWork'
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
|
Loading…
Reference in New Issue
Block a user