diff --git a/frontend/src/api/training/index.ts b/frontend/src/api/training/index.ts index bbca06c..b8092f6 100644 --- a/frontend/src/api/training/index.ts +++ b/frontend/src/api/training/index.ts @@ -463,6 +463,8 @@ export interface TrainingLibraryCourse { perm_dept_ids?: string /** 课程权限-可见人员 id 列表(000163,逗号分隔 users.id) */ perm_user_ids?: string + /** 适合人员备注(000165,自由文本只做展示,不参与权限过滤;承接年/月培训计划的适合人员) */ + post_scope?: string /** 分类(配置中心 course_category_dict 可配,预设之外支持手动输入保存) */ category: string /** 类型:required 必修课 / elective 选修课 */ diff --git a/frontend/src/views/training/components/CoursePanel.vue b/frontend/src/views/training/components/CoursePanel.vue index 6a2f3f5..9c062ed 100644 --- a/frontend/src/views/training/components/CoursePanel.vue +++ b/frontend/src/views/training/components/CoursePanel.vue @@ -687,6 +687,8 @@ const ensureLibraryCourse = async (): Promise => { type: editForm.value.type === 'elective' ? 'elective' : 'required', hours: editForm.value.hours || 0, description: row.description || '', + // 适合人员备注(000165):计划参加人员名单同步为课程管理「适合人员」展示 + post_scope: (row.post_scope || '').slice(0, 500), })) as TrainingLibraryCourse | null if (!created) throw new Error('create library course failed') replaceLibraryCourse(created) diff --git a/frontend/src/views/training/components/LibraryPanel.vue b/frontend/src/views/training/components/LibraryPanel.vue index 713e844..f1e4580 100644 --- a/frontend/src/views/training/components/LibraryPanel.vue +++ b/frontend/src/views/training/components/LibraryPanel.vue @@ -60,6 +60,13 @@ - + +