提交 b5133204 authored 作者: yujiejie's avatar yujiejie

821步骤四完成

上级 8be9d301
...@@ -1554,11 +1554,13 @@ function getMentorDeployNowTimestamp() { ...@@ -1554,11 +1554,13 @@ function getMentorDeployNowTimestamp() {
function buildMentorDeployStudentList(students, selectedId) { function buildMentorDeployStudentList(students, selectedId) {
return students.map(function(s) { return students.map(function(s) {
var active = Number(s.id) === selectedId; var sid = Number(s.id);
var status = getMentorDeployStudentStatus(s.id); var active = sid === selectedId;
var tk = getMentorDeployTaskKey(sid);
var status = getMentorDeployStudentStatus(sid, tk);
var statusClass = getMentorDeployStatusBadge(status); var statusClass = getMentorDeployStatusBadge(status);
var taskTypeLabel = getMentorDeployTaskTypeLabel(s.id); var taskDef = MENTOR_DEPLOY_TASKS[tk] || {};
var completeness = getMentorDeployCompletenessLabel(s.id); var completeness = getMentorDeployCompletenessLabel(sid, tk);
return '<button type="button" class="w-full text-left p-3 rounded-lg border mb-2 transition-all ' + return '<button type="button" class="w-full text-left p-3 rounded-lg border mb-2 transition-all ' +
(active ? 'border-[#165DFF] bg-[#E8F3FF] shadow-sm' : 'border-[#E5E6EB] bg-white hover:border-[#165DFF] hover:shadow-sm') + (active ? 'border-[#165DFF] bg-[#E8F3FF] shadow-sm' : 'border-[#E5E6EB] bg-white hover:border-[#165DFF] hover:shadow-sm') +
'" onclick="selectMentorDeployReviewStudent(' + s.id + ')">' + '" onclick="selectMentorDeployReviewStudent(' + s.id + ')">' +
...@@ -1569,7 +1571,7 @@ function buildMentorDeployStudentList(students, selectedId) { ...@@ -1569,7 +1571,7 @@ function buildMentorDeployStudentList(students, selectedId) {
'<span class="font-medium text-sm text-[#1D2129] truncate">' + mentorDeployReviewEsc(s.name) + '</span>' + '<span class="font-medium text-sm text-[#1D2129] truncate">' + mentorDeployReviewEsc(s.name) + '</span>' +
'<span class="text-[11px] px-1.5 py-0.5 rounded flex-shrink-0 ' + statusClass + '">' + status + '</span>' + '<span class="text-[11px] px-1.5 py-0.5 rounded flex-shrink-0 ' + statusClass + '">' + status + '</span>' +
'</div>' + '</div>' +
'<div class="text-xs text-[#86909C] mt-0.5 truncate">' + mentorDeployReviewEsc(s.businessLine || '—') + ' · ' + taskTypeLabel + '</div>' + '<div class="text-xs text-[#86909C] mt-0.5 truncate">' + mentorDeployReviewEsc(s.businessLine || '—') + ' · 当前任务:' + (taskDef.tabName || tk) + '</div>' +
'<div class="text-xs text-[#86909C] mt-0.5">' + completeness + '</div>' + '<div class="text-xs text-[#86909C] mt-0.5">' + completeness + '</div>' +
'</div>' + '</div>' +
'</div>' + '</div>' +
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论