Commit Graph

197 Commits

Author SHA1 Message Date
b56fa577cb spec: 学生档案报告前端预览方案设计 2026-07-07 09:47:24 +08:00
24126ab3a9 fix: adjust Students table scroll.x to match total column width 2026-07-07 09:40:52 +08:00
693ba5d3b8 feat: complete remaining PRD tasks — RBAC nodes and staff split, schedule month view, auto-generate attendance from schedules, plus fix TypeORM name 2026-07-06 18:10:14 +08:00
67952af52e feat(archive): log PDF report generation in operation logs 2026-07-06 18:00:46 +08:00
bdd2f53b1a feat(occupancies): inherit rentalType and tenantId on room transfer 2026-07-06 18:00:35 +08:00
38f6e18cca Task 3: sync RENTAL class_schedule on rental create/update/delete
- ClassroomRentalsService.create/update now upsert a ClassSchedule row with schedule_type='RENTAL' and rental_id set.
- ClassroomRentalsService.remove deletes the synced schedule row; update to 'cancelled' also removes it.
- SchedulesService.getClassroomOccupancy explicitly returns INTERNAL and RENTAL schedules.
- Make classId/teacherId/rentalId nullable in ClassSchedule entity to support rental schedules.
- Add unit tests for rental schedule sync and mixed-type occupancy.
2026-07-06 17:55:08 +08:00
5ea49d0a9e feat(classes): add schedule and attendance-summary endpoints + frontend tabs
- Add GET /classes/:id/schedule returning ClassSchedule list with classroom name
- Add GET /classes/:id/attendance-summary returning attendance/absence/late rates
- Add 课表 and 出勤汇总 tabs to Classes detail page
- Register ClassSchedule and AttendanceRecord in ClassesModule
2026-07-06 17:48:19 +08:00
b837e9b145 feat(task2): 排课与租赁双向冲突检测
- SchedulesService.checkConflict 增加对 classroom_rentals 的冲突检测
- ClassroomRentalsService.findConflicts 增加对 class_schedules 的冲突检测
- 创建排课时若教室已被租赁,给出明确冲突提示
- 创建租赁时若教室已有排课,给出明确冲突提示
2026-07-06 17:44:45 +08:00
3fa446f978 Task 4: 学生列表 tenantId 筛选生效
- StudentsService.findAll() 接收 tenantId 参数并按 tenantId 过滤
- StudentsController.findAll() 增加 tenantId 查询参数
- students.organization 列仍在 occupancy/room-visual/import 等场景使用,未删除列
2026-07-06 17:39:24 +08:00
ba34c09be4 feat(attendance): add single-record edit and delete APIs
- Add PUT /attendance-records/:id to update status and remark
- Add DELETE /attendance-records/:id to remove a record
- Enforce campus scope on both operations
- Log edit/delete actions via OperationLogsService
2026-07-06 17:39:16 +08:00
85872d6564 refactor(admin): extract StudentProfileContent component and reuse in drawer 2026-07-06 17:22:09 +08:00
b8563fbde0 fix: use div wrapper for Drawer content 2026-07-06 17:01:17 +08:00
edb80b7fb2 fix: wrap Drawer content in fragment 2026-07-06 17:00:51 +08:00
b4fa3ab1fd feat: add learning records and attachments tabs to profile Drawer, plus PDF report button 2026-07-06 17:00:13 +08:00
09eb9ca9e0 fix: archive button opens Drawer instead of navigating to separate page 2026-07-06 16:58:54 +08:00
be75437861 fix: comprehensive UI fix — all table columns have explicit widths, no ellipsis on data, consistent scroll.x 2026-07-06 16:56:35 +08:00
26754dc3fa fix(admin): fix column widths and scroll.x for Attendance and Roles pages
- Attendance: remove ellipsis from 备注 column, scroll.x 1100 -> 1200
- Roles: adjust column widths (ID 60->80, 系统 70->80, 操作 160->180), remove ellipsis from 描述 and 权限标签
- Teachers: already correct (verified all widths match spec)
- Permissions: card-based layout, no Table component - no changes needed
- Notifications: List-based layout, no Table component - no changes needed
2026-07-06 16:56:26 +08:00
cb39a183cc fix: restore form declaration, fix openDrawer state 2026-07-06 16:47:20 +08:00
0f9bcbdaca fix: import Tabs/Descriptions, remove duplicate state 2026-07-06 16:46:03 +08:00
aac01594da feat: student profile as Drawer from student list 2026-07-06 16:45:21 +08:00
8f3a20140d feat: click student name to navigate to profile page 2026-07-06 16:43:51 +08:00
4024d7c174 fix: remove ellipsis from student name column, give it 120px width 2026-07-06 16:42:36 +08:00
43ee4dc5d5 fix(admin): replace scroll.x='max-content' with calculated fixed widths for all tables 2026-07-06 16:39:53 +08:00
8fc697e58f fix: change frontend port to 9527 (docker conflict) 2026-07-06 16:37:45 +08:00
6c700c1c04 fix: INSERT IGNORE in migration script, frontend port 9527 2026-07-06 16:37:34 +08:00
72f9a58838 feat: rewrite PDF report to puppeteer HTML→PDF with professional 6-page gongxue design 2026-07-06 16:19:50 +08:00
f4eac7b804 fix: add scroll.x='max-content' to 15 tables, widen narrow columns to prevent header wrapping 2026-07-06 16:10:33 +08:00
4020f79896 chore: enable DB synchronize for auto-creating new archive tables on first deploy 2026-07-06 16:05:38 +08:00
c81b0a0b5c chore: commit remaining integration files, PM2 single instance, PRD doc 2026-07-06 16:04:53 +08:00
8bd59b8ac6 feat: complete student archive subsystem — 7 entities, PDF report, frontend profile page 2026-07-06 15:58:36 +08:00
b6990dd11b feat: add student archive module with full CRUD APIs 2026-07-06 15:46:57 +08:00
9eec7c34be feat: add teacher management page with profile editing 2026-07-06 15:36:52 +08:00
9e0d9ff39c feat: add teacher list and profile API 2026-07-06 15:33:12 +08:00
1c097dc230 feat: new classrooms default to 'reserved' status instead of 'available' 2026-07-06 15:26:35 +08:00
72b0eed36e fix: resolve TS strict type errors in sync services (null→undefined) 2026-07-06 15:18:47 +08:00
8d810374f0 feat: add source tracking fields to Department for sync idempotency 2026-07-06 15:10:11 +08:00
20f3b79179 feat: bills expense type filter (backend join + frontend Select), sync stub docs 2026-07-06 14:48:47 +08:00
4b02012634 feat: classroom status filter + export button + menu (departments/notifications) 2026-07-06 14:43:13 +08:00
fb6d99266e feat: add date range filter to Occupancies, status filter to Tenants 2026-07-06 14:36:03 +08:00
ca909fae86 feat: add status+tenant filter to Students page, status filter to Rooms page 2026-07-06 14:33:30 +08:00
beeb8cb905 feat(attendance): add anomaly alert banner showing consecutive absences and frequent lates 2026-07-06 14:27:21 +08:00
da69545f74 fix: null cast for refundStatus in TypeORM 2026-07-06 10:50:24 +08:00
94251b66ce fix: TypeORM rejects string|null union type for mysql 2026-07-06 10:49:59 +08:00
9b0a9749a2 fix: type error in dashboard ClassroomUtilStats 2026-07-06 10:30:04 +08:00
6467e67bdb feat: legacy database migration — import old dump, map to new schema, deploy to Tencent Cloud 2026-07-06 10:27:47 +08:00
2ce73b8fc3 feat: PM2 + Docker deployment config (MySQL container, PM2 for backend+frontend proxy) 2026-07-06 10:12:42 +08:00
a568da160c feat(sync): implement sync stubs with env-var gating and status endpoint 2026-07-06 10:00:35 +08:00
2c0ca583a3 feat(students): add multi-enrollment comparison view in student list expand row 2026-07-06 10:00:35 +08:00
6ba7213cc4 feat(deposits): add refund rejection path with reason 2026-07-06 09:48:20 +08:00
3717531bb3 feat(dashboard): add classroom utilization stats endpoint and UI 2026-07-06 09:38:17 +08:00