控制权判断调整1
This commit is contained in:
parent
16ee7692b2
commit
cf02840100
@ -11,8 +11,9 @@ export function judgeStationControl(stationCode, centralStationCode, work) {
|
||||
const flag1 = store.state.training.roleDeviceCode === stationCode || store.state.training.roleDeviceCode === centralStationCode;
|
||||
const flag2 = centralStation.controlMode === 'Local' || centralStation.controlMode === 'Emergency';
|
||||
return flag1 && flag2;
|
||||
} else {
|
||||
} else if ( work === 'dispatchWork' ) {
|
||||
return centralStation.controlMode === 'Center';
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user