|
|
@ -85,8 +85,8 @@ export default function DetailGrade() { |
|
|
|
`${item?.student_done_per || 0}%`, |
|
|
|
`${item?.student_done_per || 0}%`, |
|
|
|
item?.student_done_per_level || 0, |
|
|
|
item?.student_done_per_level || 0, |
|
|
|
item?.organization_name || '', |
|
|
|
item?.organization_name || '', |
|
|
|
item?.organization_district ||'', |
|
|
|
item?.district ||'', |
|
|
|
item?.organization_province ||'', |
|
|
|
item?.province ||'', |
|
|
|
!!month?.value |
|
|
|
!!month?.value |
|
|
|
? month.value |
|
|
|
? month.value |
|
|
|
: getListMonthBySemester(semester.value) |
|
|
|
: getListMonthBySemester(semester.value) |
|
|
@ -167,8 +167,9 @@ export default function DetailGrade() { |
|
|
|
}&limit=${limitOnline}&offset=${offsetOnlineMore}`;
|
|
|
|
}&limit=${limitOnline}&offset=${offsetOnlineMore}`;
|
|
|
|
const res = await apiCaller(endPoint, "GET"); |
|
|
|
const res = await apiCaller(endPoint, "GET"); |
|
|
|
console.log('res',res); |
|
|
|
console.log('res',res); |
|
|
|
|
|
|
|
if(res){ |
|
|
|
if (res?.status) { |
|
|
|
setIsEndOnlineClasses(true); |
|
|
|
|
|
|
|
}else if (res?.status) { |
|
|
|
listNext = res?.data; |
|
|
|
listNext = res?.data; |
|
|
|
setOffsetOnline(offsetOnline + limitOnline); |
|
|
|
setOffsetOnline(offsetOnline + limitOnline); |
|
|
|
if (res?.data?.length < limitOnline) { |
|
|
|
if (res?.data?.length < limitOnline) { |
|
|
|