|
|
|
@ -95,18 +95,30 @@ export default function EducationDepartmentHome() { |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
useEffect(async () => { |
|
|
|
|
await getDataOrganization() |
|
|
|
|
await getDataStatisticCircle() |
|
|
|
|
}, []) |
|
|
|
|
useEffect(() => { |
|
|
|
|
const fetchData = async () => { |
|
|
|
|
await getDataOrganization(); |
|
|
|
|
await getDataStatisticCircle(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
fetchData(); |
|
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
const fetchStudentData = async () => { |
|
|
|
|
await getDataStudentChart(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
useEffect(async () => { |
|
|
|
|
await getDataStudentChart() |
|
|
|
|
}, [dateStudentChart]) |
|
|
|
|
fetchStudentData(); |
|
|
|
|
}, [dateStudentChart]); |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
const fetchTeacherData = async () => { |
|
|
|
|
await getDataTeacherChart(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
useEffect(async () => { |
|
|
|
|
await getDataTeacherChart() |
|
|
|
|
}, [dateTeacherChart]) |
|
|
|
|
fetchTeacherData(); |
|
|
|
|
}, [dateTeacherChart]); |
|
|
|
|
|
|
|
|
|
const getDataTeacher = async () => { |
|
|
|
|
try { |
|
|
|
@ -231,7 +243,7 @@ export default function EducationDepartmentHome() { |
|
|
|
|
</div> |
|
|
|
|
} |
|
|
|
|
<div className="d-flex justify-content-center" style={{marginTop: '3rem'}}> |
|
|
|
|
<PrimaryButton className="d-flex" style={{textDecoration: 'underline'}} onClick={goToOutstandingTeacher}> |
|
|
|
|
<PrimaryButton style={{textDecoration: 'underline'}} onClick={goToOutstandingTeacher}> |
|
|
|
|
Top 10 giáo viên tiêu biểu |
|
|
|
|
<div style={{marginLeft: 8, paddingBottom: 4}}>{renderIconButton()}</div> |
|
|
|
|
</PrimaryButton> |
|
|
|
|