The Dodgers were precariously close to losing in another walk-off to San Francisco before surging for seven runs in the 11th inning of a 14-7 win.