Dependence of vortex states in superconductors on a chiral helimagnet and an applied magnetic field