There are many restaurants with views of the Alhambra.
Eating your meal with the Alhambra as a backdrop is very pleasant.
Here is a list:Mirador de Aixa
Amazing views of the Alhambra. http://www.miradordeaixa.com/Mirador de Moraymar
There are great views from the teraza and there is a special sort of look out tower which seats a few people. You would probably have to go there and book it to be certain of getting it.https://granadamap.com/morayma/index.htmAll the ouside bars in Paseo de los Tristes https://granadainfo.com/tapas/en/paseo-tristesRuta de Azafran
You would have to get a window seat to get a good view.https://granadamap.com/azafran/Huerta de Juan Ranas
There is also a cafe bar on the roof, you don't have to have a full meal. There are also 2 other places just under Mirador de San Nicolas which I haven't been to. Just go up to the mirador an look over the wall and you can see a bit of what they are like. https://granadamap.com/juan_ranas/
This is the line of bars in Paseo de Los Tristes. Most of the tables have great views of the Alhambra.