diff --git a/frontend/src/views/training/CourseDetail.vue b/frontend/src/views/training/CourseDetail.vue
index 6a6b67a..176800e 100644
--- a/frontend/src/views/training/CourseDetail.vue
+++ b/frontend/src/views/training/CourseDetail.vue
@@ -13,6 +13,10 @@
{{ course?.name || '课程详情' }}
{{ typeText }}
+
+
+ 培训签到
+
学时 {{ course.hours }} · 学分 {{ course.credits }}
@@ -348,6 +352,12 @@ const goBack = () => {
else router.push('/platform/training/dashboard')
}
+// 培训签到:携 courseId 跳「培训签到」页,SignPanel.applyRouteCourse 自动选中
+// 该课程的进行中/最近场次(与「月培训计划-记录」跳转同一查询参数口径)。
+const goSignin = () => {
+ router.push({ path: '/platform/training/sign', query: { courseId } })
+}
+
const loadAll = async () => {
loading.value = true
try {
@@ -404,6 +414,12 @@ onMounted(loadAll)
flex-shrink: 0;
}
+// 培训签到入口:页头行右对齐(2026-11 需求)
+.detail-signin {
+ margin-left: auto;
+ flex-shrink: 0;
+}
+
.detail-name {
margin: 0;
font-size: var(--app-text-xl, 20px);
diff --git a/frontend/src/views/training/components/CourseCatalog.vue b/frontend/src/views/training/components/CourseCatalog.vue
index 3d06962..42ef0fd 100644
--- a/frontend/src/views/training/components/CourseCatalog.vue
+++ b/frontend/src/views/training/components/CourseCatalog.vue
@@ -30,6 +30,9 @@
待维护 {{ maintainCount }} 门
待开始 {{ pendingStartCount }} 门
+
+ 我主讲 {{ teachingCount }} 门
+ 我参加 {{ attendCount }} 门
@@ -354,6 +357,13 @@ const myCoursesSource = computed(() => {
// 待维护 = 我主讲且「草稿」状态的课程(2026-11 需求:待审/已发布缺课件不再计入统计)
const maintainCount = computed(() => myTeachingCourses.value.filter((c) => c.status === 'draft').length)
+// 我主讲/我参加统计(2026-11 需求):我主讲含未发布(与「我的培训」页签同源);
+// 我参加 = 我在名单中的已发布课程数(纯参加口径,主讲不计,与「我参加」角标一致)
+const teachingCount = computed(() => myTeachingCourses.value.length)
+const attendCount = computed(() =>
+ publishedCourses.value.filter((c) => myEnrolledCourseIds.value.has(c.id) && !isMyTeaching(c)).length,
+)
+
// 置顶排序/维护按钮仍关注未发布(草稿/待审)或已发布但未上传课件的课程
const needsMaintain = (c: TrainingCourse) => c.status !== 'published' || !c.material_ids?.length
@@ -491,7 +501,9 @@ const visibleCards = computed(() => {
}
return list
.map((c) => {
- const head = [c.post_scope, typeText(c), `${c.hours} 学时`, c.exam_enabled ? '随堂考试' : ''].filter(Boolean).join(' · ')
+ // meta 首段为参加人员文案(post_scope),加「参加:」前缀——裸名字会被误读成讲师名
+ // (讲师身份以「我主讲」角标为准,角标判定口径见 isMyTeaching)。
+ const head = [c.post_scope ? `参加:${c.post_scope}` : '', typeText(c), `${c.hours} 学时`, c.exam_enabled ? '随堂考试' : ''].filter(Boolean).join(' · ')
const maintainable = isMyTeaching(c) && canMaintainCourses.value
const unpublished = c.status !== 'published'
// 「我的培训」角色标记:我主讲(优先) / 我参加,其余视图不标记
@@ -671,6 +683,26 @@ onMounted(loadAll)
font-weight: 600;
}
}
+
+ // 我主讲统计:与「我主讲」角标同色(warning 橙)
+ &__teach {
+ margin-left: 6px;
+
+ &.is-teach {
+ color: var(--td-warning-color);
+ font-weight: 600;
+ }
+ }
+
+ // 我参加统计:与「我参加」角标同色(primary 蓝)
+ &__attend {
+ margin-left: 6px;
+
+ &.is-attend {
+ color: var(--td-brand-color);
+ font-weight: 600;
+ }
+ }
}
.catalog-grid-wrap {
diff --git a/frontend/src/views/training/components/SignPanel.vue b/frontend/src/views/training/components/SignPanel.vue
index a22820b..d3a19f5 100644
--- a/frontend/src/views/training/components/SignPanel.vue
+++ b/frontend/src/views/training/components/SignPanel.vue
@@ -59,6 +59,15 @@
{{ uploading ? '上传中…' : '课程实录留证 · 每个 ≤ ' + VIDEO_MAX_MB + 'MB' }}
+
+
+
培训详情
+
+
+
{{ courseName(selectedCourseId) }}
+
+
查看课程课件 / 随堂考试详情
+
@@ -151,7 +160,7 @@