We use the tropical geometry approach to compute absolute and relative enumerative invariants of complex surfaces which are $\mathbb {C} P^1$-bundles over an elliptic curve. We also show that the tropical multiplicity used to count curves can be refined by the standard Block–Göttsche refined multiplicity to give tropical refined invariants. We then give a concrete algorithm using floor diagrams to compute these invariants along with the associated interpretation as operators acting on some Fock space. The floor diagram algorithm allows one to prove the piecewise polynomiality of the relative invariants, and the quasi-modularity of their generating series.