feat(server): 统一课表解析并完善权限范围与年度升级
This commit is contained in:
1 parent
66ef878a71
commit
4dc824c283
54 files changed
+2401
-625
No files matched your search
@@ -0,0 +1,7 @@
|
||||
/** 所有在读入口共用;归档/转出专页显式读取历史状态。 */
|
||||
export function activeStudentWhere() {
|
||||
return { status: { notIn: ['transferred', 'inactive'] } };
|
||||
}
|
||||
export function isActiveStudent(student: { status: string }) {
|
||||
return !activeStudentWhere().status.notIn.includes(student.status);
|
||||
}
|
||||
Reference in new issue
Block a user