导师端-首页看板-班级ID

parent 4b5a9c33
...@@ -60,10 +60,12 @@ async function getTeacherPersonalInfo(teacherId: string) { ...@@ -60,10 +60,12 @@ async function getTeacherPersonalInfo(teacherId: string) {
} }
} }
const classes = Array.from(classNames).join('、'); const classes = Array.from(classNames).join('、');
const classIds = Array.from(new Set(classRows.data.map((row: any) => row.class_id))).join(',');
return { return {
teacherName: teacher.data?.user_name || '', teacherName: teacher.data?.user_name || '',
teacherSubjects: subjects, teacherSubjects: subjects,
teacherClassIds: classIds,
teacherClasses: classes, teacherClasses: classes,
teacherGender: teacher.data?.gender || '', teacherGender: teacher.data?.gender || '',
politicalStatus: teacherProfile.data?.political_status || '', politicalStatus: teacherProfile.data?.political_status || '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment