\documentclass....
\usepackage{amsmath}
\numberwithin{figure}{section}
\numberwithin{table}{section}
\begin{document}
....
مثل اینکه با پیغام خصوصی گفتم که فابل نمونه بفرستید!
\documentclass{report}
\usepackage{amsmath}
\usepackage{xepersian}
\numberwithin{figure}{section}
\begin{document}
\فصل{}
\قسمت{}
\begin{figure}[!h]
\centering \includegraphics[width=5cm]{f.jpg}
\caption{}
\end{figure}
\end{document}