1) As Moomba mentioned: you can repair your own gear everywhere, including dungeons, if you have the appropriate crafter leveled and carry the needed dark matter.

2) Joining a dungeon with nearly broken gear is something that shouldnt happen: You get a warning if you queue with nearly broken gear. Which is the moment you can - and should - withdraw that queue and take care of your gear before trying again.