Missing depth of field in render....

I have found exactly the depth of field I should have, but it will not render out. As you can see in the pictures, the viewport picture has a lot of Dof, but the rendered result has nothing. Does anyone know what’s going on?