Answer
The period remains the same in all three cases.
Work Step by Step
Accelerating the elevator effectively changes the perceived g, the acceleration due to gravity, inside the elevator.
The period of the vertical mass-spring system is independent of g, so it is unaffected by the motion described.