提交 6ef0a653 authored 作者: yujiejie's avatar yujiejie

10091641

上级 c241f739
......@@ -999,7 +999,7 @@ function switchPage(pageId){
var flowStepPages = ['student-bridge-preview','student-deploy-preview','student-preview',
'student-bridge-quiz','student-deploy-quiz','student-quiz',
'student-bridge-quiz-result','student-deploy-quiz-result','student-quiz-result',
'student-autodl','student-practice','student-deploy-submit','student-deploy-result','student-projects','student-defense'];
'student-autodl','student-practice','student-deploy-submit','student-projects','student-defense'];
if (flowStepPages.indexOf(pageId) !== -1 && typeof isPageInCurrentFlow === 'function' && !isPageInCurrentFlow(pageId)) {
currentPage = 'student-dashboard';
renderContent();
......
......@@ -12,7 +12,8 @@ var epcState = {
activeSection: 0, // 左栏当前定位的大题序号
scoreOpen: false, // 「试卷设置分数」弹窗
settingOpen: false, // 「试卷设置」弹窗
previewOpen: false // 「预览」弹窗
previewOpen: false, // 「预览」弹窗
editId: 0 // 编辑模式下的试卷 id(0 表示新建)
};
function epcTypes() {
......@@ -251,13 +252,25 @@ function epcSave() {
if (!(d.sections || []).length) { alert('请至少创建一个大题'); return; }
d.name = String(d.name).trim();
epcNormalizeSections(d);
d.id = (typeof epNextPaperId === 'function') ? epNextPaperId() : Date.now();
d.creator = '管理员';
d.createdAt = epcNow();
d.mode = d.mode || 'objective-ai';
d.status = d.status || '草稿';
adminPapers.unshift(JSON.parse(JSON.stringify(d)));
alert('试卷已保存:' + d.name);
if (epcState.editId) {
for (var i = 0; i < adminPapers.length; i++) {
if (adminPapers[i].id === epcState.editId) {
var orig = adminPapers[i];
d.id = orig.id; d.creator = orig.creator; d.createdAt = orig.createdAt;
adminPapers[i] = JSON.parse(JSON.stringify(d));
break;
}
}
alert('试卷已更新:' + d.name);
} else {
d.id = (typeof epNextPaperId === 'function') ? epNextPaperId() : Date.now();
d.creator = '管理员';
d.createdAt = epcNow();
d.mode = d.mode || 'objective-ai';
d.status = d.status || '草稿';
adminPapers.unshift(JSON.parse(JSON.stringify(d)));
alert('试卷已保存:' + d.name);
}
epcExitToList();
}
function epcCancel() {
......@@ -277,6 +290,7 @@ function epcExitToList() {
epcState.scoreOpen = false;
epcState.settingOpen = false;
epcState.previewOpen = false;
epcState.editId = 0;
switchPage('admin-exam-paper');
}
......@@ -287,7 +301,7 @@ function epcBuildHeaderHtml(d) {
'<div class="flex items-center gap-3">' +
'<button class="p-1.5 rounded hover:bg-[#F2F3F5] text-[#4E5969]" title="返回试卷列表" onclick="epcCancel()">' +
'<svg class="w-5 h-5" data-lucide="arrow-left"></svg></button>' +
'<h1 class="text-xl font-bold text-[#1D2129]">创建试卷</h1>' +
'<h1 class="text-xl font-bold text-[#1D2129]">' + (epcState.editId ? '编辑试卷' : '创建试卷') + '</h1>' +
'<span class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded text-xs bg-[#FFF7E6] text-[#FF7D00] border border-[#FF7D00]/25">' +
'<svg class="w-3.5 h-3.5" data-lucide="gift"></svg>主观题 AI 问答免费体验啦!' +
'</span>' +
......
......@@ -25,15 +25,6 @@ function epPaperTypeBreakdown(p) {
});
return map;
}
function epPaperTypeBar(p) {
var bd = epPaperTypeBreakdown(p);
var total = epPaperQuestionCount(p);
if (!total) return '';
var segs = Object.keys(bd).map(function(t) {
return '<span title="' + t + ' ' + bd[t].count + '题 / ' + bd[t].score + '分" style="width:' + Math.max(6, Math.round(bd[t].count / total * 100)) + '%;background:' + (EP_TYPE_COLOR[t] || '#C9CDD4') + '"></span>';
}).join('');
return '<div class="mt-1 flex h-1.5 rounded-full overflow-hidden bg-[#F2F3F5] w-24">' + segs + '</div>';
}
function epPaperPreviewSummary(p) {
var bd = epPaperTypeBreakdown(p);
var keys = Object.keys(bd);
......@@ -360,17 +351,24 @@ function epOpenCreatePaper() {
epcState.scoreOpen = false;
epcState.settingOpen = false;
epcState.previewOpen = false;
epcState.editId = 0;
}
switchPage('admin-exam-paper-create');
}
function epOpenPaperDrawer(id) {
function epEditPaper(id) {
var p = null;
for (var i = 0; i < adminPapers.length; i++) if (adminPapers[i].id === id) p = adminPapers[i];
if (!p) return;
epState.drawer = { mode: 'edit', id: id };
epState.draft = JSON.parse(JSON.stringify(p));
epState.picker = null;
renderContent();
if (typeof epcState !== 'undefined') {
epcState.editId = id;
epcState.activeSection = 0;
epcState.scoreOpen = false;
epcState.settingOpen = false;
epcState.previewOpen = false;
}
switchPage('admin-exam-paper-create');
}
function epClosePaperDrawer() { epState.drawer = null; epState.draft = null; epState.picker = null; renderContent(); }
function epSetDraft(field, v) { if (epState.draft) epState.draft[field] = v; }
......@@ -836,7 +834,6 @@ function epBuildTableHtml() {
var allChecked = list.length && list.every(function(p) { return epState.selectedIds.indexOf(p.id) !== -1; });
var rows = list.map(function(p) {
var sel = epState.selectedIds.indexOf(p.id) !== -1;
var mode = epModeMeta(p.mode);
var statusCls = p.status === '已发布' ? 'bg-emerald-100 text-emerald-700' : 'bg-gray-100 text-gray-500';
var antiCount = EP_ANTI_CHEAT_ITEMS.filter(function(it) { return p.antiCheat && p.antiCheat[it.key]; }).length + ((p.antiCheat && p.antiCheat.tabSwitch > 0) ? 1 : 0);
return '<tr class="border-b border-[#E5E6EB] hover:bg-[#F7F8FA]">' +
......@@ -844,8 +841,9 @@ function epBuildTableHtml() {
'<td class="px-4 py-3"><div class="font-medium text-[#1D2129] cursor-pointer hover:text-[#165DFF]" onclick="epPreviewPaper(' + p.id + ')">' + epEsc(p.name) + '</div>' +
'<div class="text-xs text-[#86909C] mt-0.5">' + epEsc(epCategoryName(p.categoryId)) + ' · 大题 ' + (p.sections || []).length + ' 道</div>' +
adminAuthBadgeHtml('exam-paper', p.id, p.categoryId) + '</td>' +
'<td class="px-4 py-3"><span class="badge ' + mode.cls + '">' + mode.label + '</span></td>' +
'<td class="px-4 py-3"><div class="font-medium">' + epPaperQuestionCount(p) + ' 题</div>' + epPaperTypeBar(p) + '</td>' +
'<td class="px-4 py-3 text-sm text-[#4E5969]">' + p.duration + ' 分钟</td>' +
'<td class="px-4 py-3 text-sm text-[#4E5969]">' + p.passScore + ' 分</td>' +
'<td class="px-4 py-3 text-sm text-[#4E5969]">可考 ' + p.attempts + ' 次</td>' +
'<td class="px-4 py-3">' + epPaperTotalScore(p) + '</td>' +
'<td class="px-4 py-3 text-sm text-[#4E5969]">' + p.creator + '</td>' +
'<td class="px-4 py-3 text-xs text-[#86909C]">' + p.createdAt + '</td>' +
......@@ -853,7 +851,7 @@ function epBuildTableHtml() {
'<td class="px-4 py-3 relative"><div class="flex items-center gap-2 text-xs whitespace-nowrap">' +
'<button class="text-[#165DFF] hover:underline" onclick="epOpenPaperAuth(' + p.id + ')">授权</button>' +
'<button class="text-[#165DFF] hover:underline" onclick="epPreviewPaper(' + p.id + ')">预览</button>' +
'<button class="text-[#165DFF] hover:underline" onclick="epOpenPaperDrawer(' + p.id + ')">编辑</button>' +
'<button class="text-[#165DFF] hover:underline" onclick="epEditPaper(' + p.id + ')">编辑</button>' +
'<button class="p-1 rounded text-[#86909C] hover:bg-[#F2F3F5] hover:text-[#165DFF]" title="更多操作" onclick="event.stopPropagation();epToggleMenu(' + p.id + ')">' +
'<svg class="w-3.5 h-3.5" data-lucide="more-horizontal"></svg></button>' +
(epState.menuId === p.id
......@@ -872,7 +870,7 @@ function epBuildTableHtml() {
batchBar +
'<table class="table-base"><thead><tr>' +
'<th class="w-10"><input type="checkbox" ' + (allChecked ? 'checked' : '') + ' onchange="epToggleSelectAll(this.checked)"></th>' +
'<th class="w-52">试卷名称</th><th class="w-28">使用模式</th><th class="w-20 cursor-pointer select-none hover:text-[#165DFF]" onclick="epSetSort(\'questionCount\')">题目数量 ' + epSortIcon('questionCount') + '</th><th class="w-16 cursor-pointer select-none hover:text-[#165DFF]" onclick="epSetSort(\'totalScore\')">总分 ' + epSortIcon('totalScore') + '</th><th class="w-20">创建人</th><th class="w-24 cursor-pointer select-none hover:text-[#165DFF]" onclick="epSetSort(\'createdAt\')">创建时间 ' + epSortIcon('createdAt') + '</th><th class="w-24">状态</th><th class="w-36">操作</th>' +
'<th class="w-52">试卷名称</th><th class="w-20">考试时长</th><th class="w-20">及格分</th><th class="w-20">可考次数</th><th class="w-16 cursor-pointer select-none hover:text-[#165DFF]" onclick="epSetSort(\'totalScore\')">总分 ' + epSortIcon('totalScore') + '</th><th class="w-20">创建人</th><th class="w-24 cursor-pointer select-none hover:text-[#165DFF]" onclick="epSetSort(\'createdAt\')">创建时间 ' + epSortIcon('createdAt') + '</th><th class="w-24">状态</th><th class="w-36">操作</th>' +
'</tr></thead><tbody>' + rows + '</tbody></table>' +
'<div class="px-4 py-3 text-xs text-[#86909C]">共 ' + list.length + ' 份试卷(点击试卷名称可预览)</div>' +
'</div>';
......
......@@ -75,10 +75,13 @@ pageRenderers["student-dashboard"] = function() {
var statusText = flowDone ? '已通过' : (isCurrent ? '进行中' : '未开放');
var stepCount = (f.steps || []).filter(function(s) { return s.enabled; }).length;
return `
<div class="aspect-square ` + box + ring + ` border rounded-lg p-2 cursor-pointer hover:shadow-md transition-all flex flex-col items-center justify-center text-center" onclick="selectDashboardFlow(` + no + `)">
<div class="w-10 h-10 rounded-full ` + iconBg + ` flex items-center justify-center text-sm font-bold flex-shrink-0">` + (flowDone ? '<svg class="w-5 h-5" data-lucide="check"></svg>' : no) + `</div>
<div class="text-sm font-medium ` + textClass + ` mt-2 truncate w-full px-1">` + f.name + `</div>
<div class="text-[11px] mt-1 ` + (isCurrent ? 'text-[#86909C]' : 'text-[#C9CDD4]') + ` truncate w-full px-1">` + statusText + ` · ` + stepCount + ` 个环节</div>
<div class="min-h-[76px] ` + box + ring + ` border rounded-lg p-3 cursor-pointer hover:shadow-md transition-all flex items-center gap-3" onclick="selectDashboardFlow(` + no + `)">
<div class="w-9 h-9 rounded-full ` + iconBg + ` flex items-center justify-center text-sm font-bold flex-shrink-0">` + (flowDone ? '<svg class="w-4 h-4" data-lucide="check"></svg>' : no) + `</div>
<div class="min-w-0 flex-1">
<div class="text-sm font-medium ` + textClass + ` truncate">` + f.name + `</div>
<div class="text-[11px] mt-0.5 ` + (isCurrent ? 'text-[#86909C]' : 'text-[#C9CDD4]') + ` truncate">` + statusText + ` · ` + stepCount + ` 个环节</div>
</div>
` + (isSelected ? '<svg class="w-4 h-4 text-[#165DFF] flex-shrink-0" data-lucide="chevron-right"></svg>' : '') + `
</div>`;
}).join('');
......@@ -177,15 +180,23 @@ pageRenderers["student-dashboard"] = function() {
</div>
</div>
` + (isSingleFlow ? '' : `
` + ((isSingleFlow && !noFlow) ? '' : `
<div class="bg-white rounded-lg shadow-sm border border-[#E5E6EB] p-6 mb-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-[#1D2129]">培养路径<span class="text-xs font-normal text-[#86909C] ml-2">点击流程卡片查看该流程的环节安排</span></h3>
<span class="text-sm font-medium text-[#165DFF]">` + (trainingCompleted ? ('全部 ' + flowCount + ' 个流程已完成') : ('第 ' + currentFlowIdx + ' / ' + flowCount + ' 个流程')) + `</span>
<h3 class="font-semibold text-[#1D2129]">培养路径` + (noFlow ? '' : '<span class="text-xs font-normal text-[#86909C] ml-2">点击流程卡片查看该流程的环节安排</span>') + `</h3>
<span class="text-sm font-medium ` + (noFlow ? 'text-[#C9CDD4]' : 'text-[#165DFF]') + `">` + (noFlow
? '暂无流程'
: (trainingCompleted ? ('全部 ' + flowCount + ' 个流程已完成') : ('第 ' + currentFlowIdx + ' / ' + flowCount + ' 个流程'))) + `</span>
</div>
` + (noFlow
? '<div class="text-sm text-[#86909C] text-center py-6">导师还未为你安排培养流程,请联系导师进行配置。</div>'
: '<div class="grid gap-3 grid-cols-[repeat(auto-fill,minmax(124px,1fr))]">' + pathBarHtml + '</div>') + `
? '<div class="flex flex-col items-center justify-center py-10">' +
'<div class="w-16 h-16 rounded-full bg-[#F2F3F5] flex items-center justify-center mb-4">' +
'<svg class="w-8 h-8 text-[#C9CDD4]" data-lucide="calendar-x"></svg>' +
'</div>' +
'<div class="text-sm font-medium text-[#4E5969] mb-1">导师还未为你安排培养流程</div>' +
'<div class="text-xs text-[#86909C] text-center max-w-sm leading-relaxed">配置完成后,这里会展示你的完整培养路径:包含哪些培养流程、每个流程安排了哪些环节。</div>' +
'</div>'
: '<div class="grid gap-3 grid-cols-[repeat(auto-fit,minmax(180px,1fr))]">' + pathBarHtml + '</div>') + `
</div>`) + `
......
......@@ -88,7 +88,7 @@ pageRenderers["student-deploy-result"] = function() {
<button class="btn-ghost p-2" onclick="switchPage('student-dashboard')"><svg class="w-5 h-5" data-lucide="arrow-left"></svg></button>
<div>
<h1 class="text-xl font-bold text-[#1D2129]">查看作业详情</h1>
<p class="text-sm text-[#86909C]">作业信息 · 作业状态 · 验收结果 · 评分结果 · 导师评语 · 验收历史</p>
<p class="text-sm text-[#86909C]">作业信息 · 作业状态 · 评分结果 · 导师评语 · 验收历史</p>
</div>
</div>
<div class="flex items-center gap-3 flex-shrink-0">
......@@ -120,46 +120,28 @@ pageRenderers["student-deploy-result"] = function() {
</div>
</div>
<div class="bg-white rounded-lg border border-[#E5E6EB] shadow-sm p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-[#1D2129]">验收结果</h3>
<div class="flex items-center justify-between mb-3">
<h3 class="font-semibold text-[#1D2129]">评分结果</h3>
<span class="text-xs px-2 py-1 rounded bg-[#F7F8FA] text-[#4E5969]">第 ` + reviewRound + ` 轮</span>
</div>
<div class="grid grid-cols-2 gap-3 mb-3">
<div class="p-4 rounded-lg bg-[#F7F8FA]"><div class="text-xs text-[#86909C]">部署产物</div><div class="text-sm font-semibold mt-1 text-[#1D2129]">` + escapeAutodlHtml(artifactStatus || '待验收') + `</div></div>
<div class="p-4 rounded-lg bg-[#F7F8FA]"><div class="text-xs text-[#86909C]">实操报告</div><div class="text-sm font-semibold mt-1 text-[#1D2129]">` + escapeAutodlHtml(reportStatus || '待验收') + `</div></div>
</div>
<div class="p-4 rounded-lg bg-[#F7F8FA] mb-3">
<div class="text-xs text-[#86909C]">总分</div>
<div class="text-2xl font-bold text-[#165DFF] mt-1">` + (studentState.deployReviewScore && studentState.deployReviewScore.total ? studentState.deployReviewScore.total : '—') + `/100 分</div>
</div>
<div class="mt-4 text-sm text-[#4E5969] leading-relaxed whitespace-pre-wrap">` + escapeAutodlHtml(studentState.deployReviewComment || (passed ? '验收已通过。' : (rejected ? '请修改后重新提交。' : (supplement ? '请按补充要求修改后再次提交。' : '导师尚未完成验收。')))) + `</div>
</div>
<div class="bg-white rounded-lg border border-[#E5E6EB] shadow-sm p-6">
<div class="flex items-center justify-between mb-3">
<h3 class="font-semibold text-[#1D2129]">评分结果</h3>
<span class="text-xs px-2 py-1 rounded bg-[#F7F8FA] text-[#4E5969]">第 ` + reviewRound + ` 轮</span>
</div>
` + scoreRowsHtml + `
<div class="mt-3 p-4 rounded-lg bg-[#F7F8FA] flex items-center justify-between">
<span class="text-sm text-[#4E5969]">总分</span>
<span class="text-xl font-bold text-[#165DFF]">` + (score.total ? score.total : '—') + ` / 100 分</span>
</div>
<div class="mt-4 pt-4 border-t border-[#E5E6EB]">
<div class="text-xs text-[#86909C] mb-1">导师评语</div>
<div class="text-sm text-[#4E5969] leading-relaxed whitespace-pre-wrap">` + escapeAutodlHtml(studentState.deployReviewComment || (passed ? '验收已通过。' : (rejected ? '请修改后重新提交。' : (supplement ? '请按补充要求修改后再次提交。' : '导师尚未完成验收。')))) + `</div>
</div>
</div>
<div class="bg-white rounded-lg border border-[#E5E6EB] shadow-sm p-6">
<h3 class="font-semibold text-[#1D2129] mb-2">验收历史</h3>
` + historyHtml + `
</div>
` + (getSubmitMode() === 'deploy' ? `
<div class="bg-white rounded-lg border border-[#E5E6EB] shadow-sm p-6">
<h3 class="font-semibold text-[#1D2129] mb-4">AI 五段分析</h3>
<div class="space-y-3 text-sm text-[#4E5969]">
<div><b class="text-[#1D2129]">1. 环境:</b>CUDA 与依赖版本匹配。</div>
<div><b class="text-[#1D2129]">2. 启动:</b>模型权重加载完整,服务监听正常。</div>
<div><b class="text-[#1D2129]">3. 性能:</b>` + (passed ? '接口探测已通过,首包延迟处于合理区间。' : '首包延迟处于合理区间(待导师确认)。') + `</div>
<div><b class="text-[#1D2129]">4. 风险:</b>建议补充并发压测与进程守护。</div>
<div><b class="text-[#1D2129]">5. 结论:</b>` + (passed ? '部署产物已通过验收,可继续推进后续任务。' : (rejected ? '验收未通过,请按评语修改后重提。' : (supplement ? '请按补充要求修改后重新提交。' : '当前保存内容具备人工验收条件。'))) + `</div>
</div>
</div>` : '') + `
</div>
<div class="space-y-5">
<div class="bg-white rounded-lg border border-[#E5E6EB] shadow-sm p-5">
......@@ -174,10 +156,6 @@ pageRenderers["student-deploy-result"] = function() {
<p>模型:<b class="text-[#1D2129]">` + escapeAutodlHtml(modelLabel) + `</b></p>
</div>
</div>
<div class="bg-white rounded-lg border border-[#E5E6EB] shadow-sm p-5">
<h3 class="font-semibold text-[#1D2129] mb-3">通知</h3>
<p class="text-sm text-[#4E5969] leading-relaxed">` + escapeAutodlHtml((studentState.notifications && studentState.notifications[0] && studentState.notifications[0].message) || (passed ? '验收已通过。' : (rejected ? '请修改后重新提交。' : (supplement ? '请按补充要求修改后重新提交。' : '导师尚未完成验收。')))) + `</p>
</div>
` + ((bothSubmitted && !studentState.reportReviewed && !passed) ? `
<div class="bg-white rounded-lg border border-dashed border-[#E5E6EB] p-4">
<div class="text-xs text-[#86909C] mb-2">原型演示(后续可撤)</div>
......
......@@ -80,13 +80,13 @@ pageRenderers["student-resume"] = function() {
<svg class="w-5 h-5 text-white" data-lucide="file-text"></svg>
</div>
<div>
<h1 class="text-2xl font-bold text-[#1D2129]">上传简历</h1>
<p class="text-sm text-[#86909C]">阶段一 · AI 解析能力画像,生成衔接学习内容(不展示推荐项目)</p>
<h1 class="text-2xl font-bold text-[#1D2129]">简历分析</h1>
<p class="text-sm text-[#86909C]">阶段一 · AI 解析能力画像</p>
</div>
</div>
<div class="bg-[#E8F3FF] border border-[#165DFF]/20 rounded-lg p-4 mb-6 text-sm text-[#4E5969]">
上传后 AI 会提取能力特征、项目经验,并结合六段培养路径给出提升建议。本页只用于阶段一衔接,不会进入项目大厅。
上传后 AI 会提取能力特征、项目经验,并结合培养路径给出提升建议。
</div>
` + (analyzing ? `
......
......@@ -3,12 +3,12 @@
// PRD 模块一:阶段一衔接 + 阶段二模型部署 从首页分流(旧选题/旧提交页不覆盖)
var PRD_STAGES = [
{ id: 1, name: '衔接', desc: '预习 + 测验,无实操', duration: '约 3–5 天' },
{ id: 2, name: '模型部署', desc: '系统下发任务,不选题', duration: '约 1–2 周' },
{ id: 3, name: 'RAG', desc: '推荐选题 + 项目实训', duration: '约 1–2 周' },
{ id: 4, name: 'Agent', desc: '推荐选题 + 项目实训', duration: '约 1–2 周' },
{ id: 5, name: '微调', desc: '推荐选题 + 项目实训', duration: '约 1–2 周' },
{ id: 6, name: '入项', desc: '意向审核 + 主管终审', duration: '完成阶段五后开放' }
{ id: 1, name: '衔接', desc: '预习 + 测验,无实操' },
{ id: 2, name: '模型部署', desc: '系统下发任务,不选题' },
{ id: 3, name: 'RAG', desc: '推荐选题 + 项目实训' },
{ id: 4, name: 'Agent', desc: '推荐选题 + 项目实训' },
{ id: 5, name: '微调', desc: '推荐选题 + 项目实训', },
{ id: 6, name: '入项', desc: '意向审核 + 主管终审', }
];
function hasStudentResume() {
......@@ -441,7 +441,7 @@ function getDashboardFlowSteps() {
// 衔接类流程的前置:先上传简历(不属于四个环节,但必须先完成)
if (flow && flow.taskType === 'bridge' && !hasStudentResume()) {
return [{
key: 'resume', name: '上传简历', desc: 'AI 据此生成本轮衔接知识点', icon: 'file-text',
key: 'resume', name: '简历分析', desc: '', icon: 'file-text',
page: 'student-resume', condition: true, locked: false, done: false
}].concat(steps.map(function(s) {
return { key: s.key, name: s.name, desc: s.desc, icon: s.icon, page: s.page, condition: false, locked: true, done: false };
......@@ -457,7 +457,7 @@ function getDashboardFlowStepsLegacy() {
if (current === 1 || !bridgePassed) {
return [
{ name: '上传简历', desc: hasResume ? '已完成能力分析' : 'AI 生成衔接知识点', icon: 'file-text', page: 'student-resume', condition: !hasResume, locked: false },
{ name: '简历分析', desc: hasResume ? '已完成能力分析' : '', icon: 'file-text', page: 'student-resume', condition: !hasResume, locked: false },
{ name: '衔接预习', desc: 'Linux / AI 基础 / 部署前置', icon: 'book-open', page: 'student-bridge-preview', condition: hasResume && !bridgePassed, locked: !hasResume },
{ name: '衔接测验', desc: '及格线 70 分', icon: 'clipboard-check', page: 'student-bridge-quiz', condition: hasResume && !bridgePassed, locked: !hasResume }
];
......@@ -644,7 +644,6 @@ function isPageInCurrentFlow(pageId) {
'student-deploy-quiz-result': 'exam',
'student-quiz-result': 'exam',
'student-deploy-submit': 'practice',
'student-deploy-result': 'practice',
'student-projects': 'practice'
};
if (alias[pageId]) return isStepEnabled(idx, alias[pageId]);
......@@ -670,7 +669,7 @@ function getStageFlowSteps(stageId) {
if (flow && flow.taskType === 'bridge') {
var hasResume = hasStudentResume();
steps = [{
key: 'resume', name: '上传简历', desc: hasResume ? '已完成能力分析' : 'AI 据此生成本轮知识点', icon: 'file-text',
key: 'resume', name: '简历分析', desc: hasResume ? '已完成能力分析' : 'AI 据此生成本轮知识点', icon: 'file-text',
page: 'student-resume', condition: !hasResume, locked: false, done: hasResume
}].concat(steps.map(function(st) {
return { key: st.key, name: st.name, desc: st.desc, icon: st.icon, page: st.page, condition: hasResume && st.condition, locked: st.locked || !hasResume, done: st.done };
......@@ -785,7 +784,7 @@ function onDashboardStepCardClick(flowNo, stepKey) {
function stepKeyName(key) {
var meta = (typeof STEP_META !== 'undefined' && STEP_META[key]) ? STEP_META[key] : null;
var map = { preview: '知识点预习', exam: '考试', practice: '实操', defense: '答辩', resume: '上传简历', entry: '入项申请' };
var map = { preview: '知识点预习', exam: '考试', practice: '实操', defense: '答辩', resume: '简历分析', entry: '入项申请' };
return map[key] || (meta ? '' : key) || key;
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论