feat(training): 新增精益培训周任务视频推送与定向提醒闭环
- 后端:新增周任务视频推送服务与定时任务,新增模型迁移 fb26bc033d27 - 配置:WECOM_NOTIFY_EVENTS 追加 training_lean_video_push 事件(dev/test/prod/shared 同步) - 管理端:培训配置页新增定向目标弹窗 LeanTargetModal - 工作台:完成看板提醒按钮按 sent/failed 实发统计如实提示(部分成功/失败/未发送),避免企微发送失败误报成功 - 文档:更新功能清单与技术架构,新增精益管理周任务规则手册;四语言 i18n 同步补齐
This commit is contained in:
1 parent
a0e4351e9a
commit
7927556ee2
34 files changed
+2039
-254
No files matched your search
@@ -140,6 +140,22 @@ export interface TrainingStats {
|
||||
averageScore: number;
|
||||
}
|
||||
|
||||
export interface LeanTrainingVideo {
|
||||
id: number;
|
||||
name: string;
|
||||
/** MinIO 公开播放地址,供缩略图首帧与弹窗播放使用 */
|
||||
fileUrl?: string | null;
|
||||
}
|
||||
|
||||
/** 学员视角任务状态:in_progress=进行中;overdue=已延期(过截止未完成);completed=已完成 */
|
||||
export type LeanTrainingTaskStatus = 'in_progress' | 'overdue' | 'completed';
|
||||
|
||||
export interface LeanTrainingCompletionBrief {
|
||||
summaryText: string;
|
||||
watchedAt: Record<string, string>;
|
||||
completedAt: string | null;
|
||||
}
|
||||
|
||||
export interface LeanTrainingWeeklyTask {
|
||||
id: number;
|
||||
weekKey: string;
|
||||
@@ -147,9 +163,21 @@ export interface LeanTrainingWeeklyTask {
|
||||
videoResourceIds: number[];
|
||||
targetRoles: string[];
|
||||
targetUserIds: number[];
|
||||
videos: Array<{ id: number; name: string }>;
|
||||
videos: LeanTrainingVideo[];
|
||||
status: string;
|
||||
minSummaryLength: number;
|
||||
weeklyCount?: number;
|
||||
pushedVideoCount?: number;
|
||||
/** 任务周周日(ISO 日期),供前端拼装"第N周 MM-DD至MM-DD"周次区间标签。 */
|
||||
weekEnd?: string | null;
|
||||
/** 期号:按周次升序编号,最早一周为第 1 期,与管理端口径一致。 */
|
||||
weekIndex?: number;
|
||||
}
|
||||
|
||||
/** 学员端时间树任务项:周任务 + 任务状态 + 完成信息 */
|
||||
export interface LeanTrainingMyTask extends LeanTrainingWeeklyTask {
|
||||
taskStatus: LeanTrainingTaskStatus;
|
||||
completion: LeanTrainingCompletionBrief | null;
|
||||
}
|
||||
|
||||
export interface LeanTrainingDashboardRow {
|
||||
@@ -160,12 +188,21 @@ export interface LeanTrainingDashboardRow {
|
||||
department?: string | null;
|
||||
videos: Array<{ name: string; watchedAt?: string | null }>;
|
||||
summaryText?: string | null;
|
||||
status: 'completed' | 'incomplete';
|
||||
/** 管理端三态:completed=已完成(感悟已提交);in_progress=进行中;overdue=已延期(过截止未完成),由后端序列化层归一 */
|
||||
status: 'completed' | 'in_progress' | 'overdue';
|
||||
completedAt?: string | null;
|
||||
}
|
||||
|
||||
/** 精益看板期次摘要:index 为期号(按周次升序,最早为第 1 期),供管理端下拉区分第几期任务。 */
|
||||
export interface LeanTrainingPeriod {
|
||||
id: number;
|
||||
weekKey: string;
|
||||
index: number;
|
||||
}
|
||||
|
||||
export interface LeanTrainingDashboard {
|
||||
task: LeanTrainingWeeklyTask | null;
|
||||
completed: LeanTrainingDashboardRow[];
|
||||
incomplete: LeanTrainingDashboardRow[];
|
||||
periods: LeanTrainingPeriod[];
|
||||
}
|
||||
Reference in new issue
Block a user