feat(training): 新增精益培训视频与周任务管理
This commit is contained in:
1 parent
e5ede471fd
commit
a69814c409
32 files changed
+1619
-55
No files matched your search
@@ -139,3 +139,33 @@ export interface TrainingStats {
|
||||
passRate: number;
|
||||
averageScore: number;
|
||||
}
|
||||
|
||||
export interface LeanTrainingWeeklyTask {
|
||||
id: number;
|
||||
weekKey: string;
|
||||
dueAt: string;
|
||||
videoResourceIds: number[];
|
||||
targetRoles: string[];
|
||||
targetUserIds: number[];
|
||||
videos: Array<{ id: number; name: string }>;
|
||||
status: string;
|
||||
minSummaryLength: number;
|
||||
}
|
||||
|
||||
export interface LeanTrainingDashboardRow {
|
||||
id?: number;
|
||||
userId: number;
|
||||
employeeId?: string | null;
|
||||
name: string;
|
||||
department?: string | null;
|
||||
videos: Array<{ name: string; watchedAt?: string | null }>;
|
||||
summaryText?: string | null;
|
||||
status: 'completed' | 'incomplete';
|
||||
completedAt?: string | null;
|
||||
}
|
||||
|
||||
export interface LeanTrainingDashboard {
|
||||
task: LeanTrainingWeeklyTask | null;
|
||||
completed: LeanTrainingDashboardRow[];
|
||||
incomplete: LeanTrainingDashboardRow[];
|
||||
}
|
||||
Reference in new issue
Block a user