提交 7c6cd020 authored 作者: yujiejie's avatar yujiejie

学生端驳回通知链接一半没有完善

上级 716fbe6c
......@@ -306,8 +306,17 @@
<div id="studentLayout" class="flex flex-col h-screen" style="display:none">
<div class="student-header">
<div class="flex items-center gap-3"><div class="w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-500 to-violet-600 flex items-center justify-center text-white text-xs font-bold">T</div><span class="font-bold text-sm">实习生训练平台</span></div>
<div class="relative" id="stuAvatarMenu"><div class="w-8 h-8 rounded-full bg-indigo-100 text-indigo-600 flex items-center justify-center font-bold text-sm cursor-pointer" onclick="toggleMenu('stuAvatarMenu')">张</div>
<div class="avatar-menu"><a onclick="switchPage('profile')">个人中心</a><div class="divider"></div><a onclick="doLogout()" style="color:#EF4444">退出登录</a></div></div>
<div class="flex items-center gap-4">
<div class="relative" id="stuNtfMenu">
<button class="relative p-1.5 rounded-lg hover:bg-black/5 transition-colors" onclick="toggleStudentNotifications()">
<svg class="w-5 h-5 text-gray-500" data-lucide="bell"></svg>
<span id="stuNtfBadge" class="absolute -top-0.5 -right-0.5 w-4 h-4 bg-red-500 text-white text-[9px] rounded-full items-center justify-center font-medium hidden">0</span>
</button>
<div class="notif-menu" id="stuNtfList" onclick="event.stopPropagation()"></div>
</div>
<div class="relative" id="stuAvatarMenu"><div class="w-8 h-8 rounded-full bg-indigo-100 text-indigo-600 flex items-center justify-center font-bold text-sm cursor-pointer" onclick="toggleMenu('stuAvatarMenu')">张</div>
<div class="avatar-menu"><a onclick="switchPage('profile')">个人中心</a><div class="divider"></div><a onclick="doLogout()" style="color:#EF4444">退出登录</a></div></div>
</div>
</div>
<div class="flex-1 overflow-y-auto p-6" id="studentContent"></div>
</div>
......@@ -342,6 +351,8 @@ function renderContent() {
}
// Re-initialize Lucide icons for new content
if (window.lucide) lucide.createIcons();
// 更新学生通知铃铛角标
if (typeof updateStudentNotificationBadge === 'function') updateStudentNotificationBadge();
// 初始化雷达图
setTimeout(initRadarChart, 150);
}
......@@ -501,13 +512,19 @@ var studentState = {
deployPassed: false,
deployReviewStatus: '待提交',
deployReviewComment: '',
deployReviewScore: null, // { api, deployment, logs, report, reflection, total }
deployReviewUpdatedAt: '', // 导师验收提交时间
deployReviewRound: 1, // 导师验收轮次
deployReviewNotifiedAt: '', // 导师验收通知时间
deployReviewRound: 1, // 当前验收轮次
deployReviewNotifiedAt: '', // 导师验收通知时间
deployLogName: '',
deployLogContent: '',
deployApiUrl: '',
deployApiPath: '',
deployApiPort: '',
deployRejected: false,
deployReviewComment: '',
notifications: [], // 通知列表(含部署验收通知),未读展示在学生端首页
deployArtifact: { fileName: '', apiUrl: '', apiPath: '', port: '', modelName: '', apiKey: '' },
deployArtifactSaved: false,
deployArtifactSubmitted: false,
......
差异被折叠。
差异被折叠。
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论