Reality is, Iran-Iraq war was a disaster because Iran’s leadership made another bonehead decision.
1982, Saddam offered a ceasefire and for borders to go back to pre-invasion. The war could have been done with minimal losses and a resounding Iranian victory. However, Khomeini refused to accept peace and instead wanted Karbala and sent hundreds of thousands to their deaths and destroyed the economy. Only in 1988 with the war in a stalemate and Rafsanjani begging him, did he “drink from poisoned chalice” and accept peace.
6 years of unnecessary war because you had a clergymen leading the military motivated on exporting the revolution and capturing sacred religious sites then doing what was best for his country.
Khamenai became the opposite version of Khomeini when it came to violence and shunned confrontation any chance he could due to the damage his predecessor did to the country.
So no, the Iran-Iraq war was not a huge victory. It was a self inflicted gunshot wound.