控制权判断调整1

This commit is contained in:
fan 2022-12-07 14:38:53 +08:00
parent 16ee7692b2
commit cf02840100

View File

@ -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;
}
}