Trayce Thompson drove in two runs with an RBI double during the decisive rally in the seventh while the Dodgers surged past the Giants 7-4.