feat(优化):1.人事课孙凯发布月培训选我刘义亮参加培训如图一所示,但我的培训中却线上”我主讲“?请核实!
deploy-hxtesting / build-and-deploy (push) Successful in 1m8s
deploy-hxtesting / build-and-deploy (push) Successful in 1m8s
2.培训中心增加2个统计”我主讲X门“、”我参加X门“如图二所示 3.如图三培训详情页面右上角增加一个【培训签到】按钮,点击自动跳转到如图四”培训签到“页面自动打开该课程签到详情, 4.如图四所示增加一个【培训详情】块,点击自动返回如图三该培训详情页面! 请在本地修改代码!
This commit is contained in:
1 parent
11450bdb96
commit
ea0524c445
3 files changed
+69
-2
No files matched your search
@@ -13,6 +13,10 @@
|
||||
</t-tag>
|
||||
<h2 class="detail-name">{{ course?.name || '课程详情' }}</h2>
|
||||
<t-tag v-if="course" theme="default" variant="outline" size="small">{{ typeText }}</t-tag>
|
||||
<!-- 培训签到:跳「培训签到」页并自动定位本课程场次(SignPanel 读取 courseId 查询参数) -->
|
||||
<t-button v-if="course" variant="outline" theme="primary" size="small" class="detail-signin" @click="goSignin">
|
||||
培训签到
|
||||
</t-button>
|
||||
</div>
|
||||
<div class="detail-meta">
|
||||
<span v-if="course">学时 {{ course.hours }}<template v-if="course.credits"> · 学分 {{ course.credits }}</template></span>
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user