Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
studyweb_Prototype
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
yujiejie
studyweb_Prototype
Commits
7fac704e
提交
7fac704e
authored
8月 18, 2026
作者:
yujiejie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
阶段二模型部署已完成闭环,涉及后续阶段的细节待修改
上级
d6a2634c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
16 行删除
+18
-16
pages-mentor.js
pages-mentor.js
+1
-1
pages-student.js
pages-student.js
+17
-15
没有找到文件。
pages-mentor.js
浏览文件 @
7fac704e
...
...
@@ -1286,7 +1286,7 @@ function reviewDeployArtifact(passed) {
studentState
.
deployReviewComment
=
text
||
'服务探测成功,日志完整,部署产物符合验收要求。'
;
if
(
!
passed
)
studentState
.
deploySubmitted
=
false
;
renderContent
();
showStudentFlowModal
(
passed
?
'部署验收已通过'
:
'已驳回并允许重提'
,
passed
?
'学生
端答辩已解锁
。'
:
'学生可根据导师评语修改后重新提交。'
);
showStudentFlowModal
(
passed
?
'部署验收已通过'
:
'已驳回并允许重提'
,
passed
?
'学生
可直接进入旧实操报告页面;报告评审通过后再申请答辩
。'
:
'学生可根据导师评语修改后重新提交。'
);
}
pageRenderers
[
"mentor-deploy-review"
]
=
function
()
{
...
...
pages-student.js
浏览文件 @
7fac704e
...
...
@@ -322,11 +322,12 @@ function getDashboardFlowSteps() {
return
[
{
name
:
'部署知识点'
,
desc
:
'已下发:Qwen2.5-7B 推理服务部署,无需选题'
,
icon
:
'book-open'
,
page
:
'student-deploy-preview'
,
condition
:
!
studentState
.
deployQuizPassed
,
locked
:
false
},
{
name
:
'部署小测'
,
desc
:
'及格线 80 分,通过后解锁
实操
'
,
icon
:
'clipboard-check'
,
page
:
'student-deploy-quiz'
,
condition
:
!
studentState
.
deployQuizPassed
,
locked
:
false
},
{
name
:
'部署小测'
,
desc
:
'及格线 80 分,通过后解锁
AutoDL
'
,
icon
:
'clipboard-check'
,
page
:
'student-deploy-quiz'
,
condition
:
!
studentState
.
deployQuizPassed
,
locked
:
false
},
{
name
:
'AutoDL / 沙箱'
,
desc
:
'导师下发配置,学生只读'
,
icon
:
'server'
,
page
:
'student-autodl'
,
condition
:
studentState
.
deployQuizPassed
&&
!
studentState
.
deploySubmitted
,
locked
:
!
studentState
.
deployQuizPassed
},
{
name
:
'提交部署产物'
,
desc
:
'日志包 + API 地址'
,
icon
:
'upload'
,
page
:
'student-deploy-submit'
,
condition
:
studentState
.
deployQuizPassed
&&
!
studentState
.
deploySubmitted
,
locked
:
!
studentState
.
deployQuizPassed
},
{
name
:
'撰写报告'
,
desc
:
'产物提交后继续写报告'
,
icon
:
'file-text'
,
page
:
'student-report'
,
condition
:
studentState
.
deploySubmitted
&&
!
studentState
.
reportSubmitted
,
locked
:
!
studentState
.
deploySubmitted
},
{
name
:
'申请答辩'
,
desc
:
studentState
.
deployPassed
?
'部署验收已通过'
:
'需等待部署验收通过'
,
icon
:
'mic'
,
page
:
'student-defense'
,
condition
:
studentState
.
deployPassed
&&
!
studentState
.
defenseCompleted
,
locked
:
!
studentState
.
deployPassed
}
{
name
:
'等待部署验收'
,
desc
:
studentState
.
deployPassed
?
'部署验收已通过'
:
'导师探测服务并验收产物'
,
icon
:
'clipboard-check'
,
page
:
'student-deploy-result'
,
condition
:
studentState
.
deploySubmitted
&&
!
studentState
.
deployPassed
,
locked
:
false
},
{
name
:
'撰写报告'
,
desc
:
studentState
.
deployPassed
?
'部署验收已通过,直接填写旧实操报告'
:
'需等待部署验收通过'
,
icon
:
'file-text'
,
page
:
'student-report'
,
condition
:
studentState
.
deployPassed
&&
!
studentState
.
reportSubmitted
,
locked
:
!
studentState
.
deployPassed
},
{
name
:
'申请答辩'
,
desc
:
studentState
.
reportPassed
?
'实操报告已通过'
:
'需先提交并通过实操报告'
,
icon
:
'mic'
,
page
:
'student-defense'
,
condition
:
studentState
.
reportPassed
&&
!
studentState
.
defenseCompleted
,
locked
:
!
studentState
.
reportPassed
}
];
}
...
...
@@ -3359,8 +3360,9 @@ function closeSubmitModal() {
// ===== STUDENT REPORT - 实操报告页面 =====
pageRenderers
[
"student-report"
]
=
function
()
{
var
projectName
=
studentState
.
selectedProject
?
studentState
.
selectedProject
.
name
:
'react-admin-dashboard'
;
var
practiceSubmitted
=
studentState
.
practiceSubmitted
;
var
isDeployStage
=
Number
(
studentState
.
currentStage
)
===
2
&&
isBridgePassed
();
var
projectName
=
isDeployStage
?
DEPLOY_TASK
.
name
:
(
studentState
.
selectedProject
?
studentState
.
selectedProject
.
name
:
'react-admin-dashboard'
);
var
practiceSubmitted
=
isDeployStage
?
studentState
.
deployPassed
:
studentState
.
practiceSubmitted
;
var
reportSubmitted
=
studentState
.
reportSubmitted
;
var
reportReviewed
=
studentState
.
reportReviewed
;
var
reportPassed
=
studentState
.
reportPassed
;
...
...
@@ -3391,23 +3393,23 @@ pageRenderers["student-report"] = function() {
<button class="btn-ghost p-1 mr-2" onclick="switchPage('student-dashboard')"><svg class="w-5 h-5" data-lucide="arrow-left"></svg></button>
<div>
<h2 class="text-xl font-bold">实操报告</h2>
<p class="text-sm text-[#86909C] mt-1">`
+
(
practiceSubmitted
?
'提交实操报告并查看评审结果'
:
'请先完成实操任务'
)
+
`</p>
<p class="text-sm text-[#86909C] mt-1">`
+
(
practiceSubmitted
?
(
isDeployStage
?
'部署验收已通过,请提交实操报告'
:
'提交实操报告并查看评审结果'
)
:
(
isDeployStage
?
'请先完成部署产物验收'
:
'请先完成实操任务'
)
)
+
`</p>
</div>
</div>
</div>
`
+
(
!
practiceSubmitted
?
`
<!--
Not submitted practice
yet -->
<!--
Required artifact has not passed
yet -->
<div class="feature-card p-8 text-center">
<div class="w-20 h-20 mx-auto mb-4 rounded-full bg-amber-100 flex items-center justify-center">
<svg class="w-10 h-10 text-amber-600" data-lucide="file-x"></svg>
</div>
<h3 class="text-xl font-bold text-[#1D2129] mb-2">
请先完成实操任务
</h3>
<p class="text-[#86909C] mb-6">
您需要先在实操工作台完成任务并提交产物后,才能撰写实操报告
</p>
<button class="btn-primary py-3 px-8" onclick="switchPage('
student-practice
')">
<h3 class="text-xl font-bold text-[#1D2129] mb-2">
`
+
(
isDeployStage
?
'请先通过部署验收'
:
'请先完成实操任务'
)
+
`
</h3>
<p class="text-[#86909C] mb-6">
`
+
(
isDeployStage
?
'阶段二无需进入实操工作台;部署产物通过导师验收后即可直接撰写本报告。'
:
'您需要先在实操工作台完成任务并提交产物后,才能撰写实操报告'
)
+
`
</p>
<button class="btn-primary py-3 px-8" onclick="switchPage('
`
+
(
isDeployStage
?
'student-deploy-result'
:
'student-practice'
)
+
`
')">
<span class="flex items-center justify-center gap-2">
<svg class="w-5 h-5" data-lucide="
code
"></svg>
前往实操工作台
<svg class="w-5 h-5" data-lucide="
`
+
(
isDeployStage
?
'clipboard-check'
:
'code'
)
+
`
"></svg>
`
+
(
isDeployStage
?
'查看部署验收'
:
'前往实操工作台'
)
+
`
</span>
</button>
</div>
...
...
@@ -3427,8 +3429,8 @@ pageRenderers["student-report"] = function() {
</div>
<div>
<label class="text-sm font-medium text-[#4E5969] mb-2 block">
产物仓库
</label>
<input id="reportRepoUrl" class="input-field bg-[#F7F8FA]" value="
${
studentState
.
practiceRepoUrl
||
''
}
" disabled>
<label class="text-sm font-medium text-[#4E5969] mb-2 block">
`
+
(
isDeployStage
?
'部署产物'
:
'产物仓库'
)
+
`
</label>
<input id="reportRepoUrl" class="input-field bg-[#F7F8FA]" value="
`
+
(
isDeployStage
?
((
studentState
.
deployArtifact
&&
(
studentState
.
deployArtifact
.
apiUrl
||
studentState
.
deployArtifact
.
apiPath
))
||
studentState
.
deployApiUrl
||
'部署产物已通过验收'
)
:
(
studentState
.
practiceRepoUrl
||
''
))
+
`
" disabled>
</div>
<div>
...
...
@@ -3550,7 +3552,7 @@ function handleReportSubmit() {
return
;
}
var
projectName
=
studentState
.
selectedProject
?
studentState
.
selectedProject
.
name
:
'react-admin-dashboard'
;
var
projectName
=
Number
(
studentState
.
currentStage
)
===
2
&&
isBridgePassed
()
?
DEPLOY_TASK
.
name
:
(
studentState
.
selectedProject
?
studentState
.
selectedProject
.
name
:
'react-admin-dashboard'
)
;
studentState
.
reportSubmitted
=
true
;
studentState
.
reportProcess
=
process
;
studentState
.
reportResult
=
result
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论