获取所有年级班级列表-修改响应格式

parent 43d7caad
......@@ -144,10 +144,8 @@ export async function getAllGradeClasses(userInfo?: { userId: string; roles: str
let dataList = (classList.data || [])
.filter((item: any) => isAdmin || !allowedClassIds || allowedClassIds.has(item.id))
.map((item: any) => ({
classId: item.id,
className: item.class_name,
grade: item.grade,
gradeName: getGradeName(item.grade),
key: `${item.grade}${item.class_name}`,
value: item.id
}));
return { dataList };
......
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