浙大网新操作调整(控制权操作)
This commit is contained in:
parent
3cb71dce37
commit
241dbcd36f
@ -64,8 +64,15 @@ export default {
|
||||
// 暂无功能,先disabled
|
||||
label: '授权',
|
||||
disabled: true,
|
||||
handler: this.undeveloped,
|
||||
isShow: (station, work) => false
|
||||
handler: this.setStationControl,
|
||||
isDisabled: (station, work) => {
|
||||
if (work === 'localWork') {
|
||||
return true;
|
||||
} else {
|
||||
return station.controlMode !== 'Center';
|
||||
}
|
||||
},
|
||||
isShow: (station, work) => true
|
||||
},
|
||||
{
|
||||
label: '取消',
|
||||
@ -75,11 +82,11 @@ export default {
|
||||
if (work === 'localWork') {
|
||||
return station.controlMode === 'Center';
|
||||
} else {
|
||||
return station.controlMode !== 'Center';
|
||||
return true;
|
||||
}
|
||||
},
|
||||
isShow: (station, work) => {
|
||||
return work === 'localWork';
|
||||
return true;
|
||||
}
|
||||
},
|
||||
// /** 紧急站控 */
|
||||
@ -89,10 +96,14 @@ export default {
|
||||
handler: this.setEmergencyControl,
|
||||
cmdType: CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL,
|
||||
isDisabled: (station, work) => {
|
||||
if (work === 'localWork') {
|
||||
return station.controlMode === 'Emergency';
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
isShow: (station, work) => {
|
||||
return work === 'localWork';
|
||||
return true;
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user