diff --git a/src/api/type.ts b/src/api/type.ts index 56af8a7..853affb 100644 --- a/src/api/type.ts +++ b/src/api/type.ts @@ -1,7 +1,8 @@ export interface applicationOK { - id: string; + user_id: string; username: string; start_time: string; + id: string; end_time: string; grade: number; class_num: number; @@ -52,7 +53,7 @@ export interface ChangeStatus { } export interface FloorClass { - id: string; + user_id: string; class_num: number; classroom_name: string; end_period: number; diff --git a/src/app/classChange/page.tsx b/src/app/classChange/page.tsx index c851c09..b5b85e8 100644 --- a/src/app/classChange/page.tsx +++ b/src/app/classChange/page.tsx @@ -143,7 +143,7 @@ const ClassChange = () => { handleAcceptListClick(item.id, item.username)} + onClick={() => handleAcceptListClick(item.user_id, item.username)} prevClass={item.move} nextClass={`${item.classroom_name}`} student={getStudentString(item)} diff --git a/src/app/outAccept/page.tsx b/src/app/outAccept/page.tsx index 88dc852..ef4536b 100644 --- a/src/app/outAccept/page.tsx +++ b/src/app/outAccept/page.tsx @@ -216,23 +216,27 @@ const OutAccept = () => { {selectedTab ? applicationData?.map((item, index) => ( handleAcceptListClick(item.id, item.username)} + onClick={() => + handleAcceptListClick(item.user_id, item.username) + } reason={item.reason} /> )) : applicationData?.map((item, index) => ( handleAcceptListClick(item.id, item.username)} + onClick={() => + handleAcceptListClick(item.user_id, item.username) + } reason={item.reason} /> ))}