feat(web): migrate teacher attendance workflow

Add the React attendance console with manual, QR, and location check-in flows, record editing, Excel exchange, submission, risk signals, and course statistics. Preserve server-side task scope and archived-task restrictions.
This commit is contained in:
biss authored and biss committed 2026-10-03 21:38:14 +08:00
1 parent b19c40f09a
commit 1b27029b5a
8 files changed
+458

No files matched your search

+4
View File
@@ -34,6 +34,7 @@ import {
BankOutlined,
ApartmentOutlined,
TeamOutlined,
CarryOutOutlined,
} from '@ant-design/icons'
import { Avatar, Badge, Button, Layout, Menu, Tag } from 'antd'
import { useQuery } from '@tanstack/react-query'
@@ -102,6 +103,9 @@ export default function AppShell() {
...(roles.includes('Teacher') ? [
{ key: '/teacher-roster', icon: <TeamOutlined />, label: '选课名单' },
] : []),
...(roles.some((role) => ['Teacher', 'SuperAdmin', 'AcademicAdmin', 'CollegeAdmin', 'Counselor'].includes(role)) ? [
{ key: '/teacher-attendance', icon: <CarryOutOutlined />, label: '教学点名' },
] : []),
...(user?.roles.includes('SuperAdmin')
? [{ key: '/users', icon: <SafetyCertificateOutlined />, label: '用户与权限' }]
: []),