It traumatized you and your mind is still trying to process it.
You could try going to the pet store and putting yourself near dogs, thus desensitizing yourself to them.
It must have been a vicious attack. Not having to see the dog daily could also help with the nightmares.
I don't know,sorry :(