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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user