feat: complete remaining PRD tasks — RBAC nodes and staff split, schedule month view, auto-generate attendance from schedules, plus fix TypeORM name

This commit is contained in:
2026-07-06 18:10:14 +08:00
parent 67952af52e
commit 693ba5d3b8
12 changed files with 447 additions and 48 deletions

View File

@@ -442,8 +442,8 @@ ${this.buildLearningAndResult(learnings, result, now)}
const sortedExams = [...cultureExams].filter((e) => e.score != null);
let improvement = '—';
if (sortedExams.length >= 2) {
const first = sortedExams[0].score!;
const last = sortedExams[sortedExams.length - 1].score!;
const first = sortedExams[0].score;
const last = sortedExams[sortedExams.length - 1].score;
improvement = (last - first).toFixed(1);
}
@@ -538,7 +538,7 @@ ${this.buildLearningAndResult(learnings, result, now)}
const cultureExams = exams.filter((e) => e.score != null);
if (cultureExams.length === 0) return '';
const scores = cultureExams.map((e) => e.score!);
const scores = cultureExams.map((e) => e.score);
const labels = cultureExams.map((e) => {
const d = e.examDate || '-';
return d.length > 7 ? d.slice(5) : d;