Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
studyweb_Prototype
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
yujiejie
studyweb_Prototype
Commits
716fbe6c
提交
716fbe6c
authored
8月 20, 2026
作者:
yujiejie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
导师端通知学生
上级
6f5f0c34
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
55 行增加
和
14 行删除
+55
-14
pages-mentor.js
pages-mentor.js
+55
-14
没有找到文件。
pages-mentor.js
浏览文件 @
716fbe6c
...
@@ -2174,13 +2174,18 @@ function setMentorDeployReviewComment(value) {
...
@@ -2174,13 +2174,18 @@ function setMentorDeployReviewComment(value) {
function
buildMentorDeployConclusionPanel
(
sid
)
{
function
buildMentorDeployConclusionPanel
(
sid
)
{
var
comment
=
getMentorDeployReviewComment
(
sid
);
var
comment
=
getMentorDeployReviewComment
(
sid
);
return
'<div class="bg-white rounded-lg border border-[#E5E6EB] p-4">'
+
return
'<div class="bg-white rounded-lg border border-[#E5E6EB] p-4">'
+
'<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-[#F2F3F5] text-[#86909C]">
下一步接入
</span></div>'
+
'<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-[#F2F3F5] text-[#86909C]">
提交后本轮只读
</span></div>'
+
'<div class="mb-4">'
+
'<div class="mb-4">'
+
'<label class="text-xs font-medium text-[#4E5969] block mb-1">导师评语</label>'
+
'<label class="text-xs font-medium text-[#4E5969] block mb-1">导师评语</label>'
+
'<textarea id="deployReviewComment" class="input-field text-sm min-h-[110px] resize-none" placeholder="请填写验收结论、发现的问题、修改建议、补充材料要求或后续学习建议…" oninput="setMentorDeployReviewComment(this.value)">'
+
mentorDeployReviewEsc
(
comment
)
+
'</textarea>'
+
'<textarea id="deployReviewComment" class="input-field text-sm min-h-[110px] resize-none" placeholder="请填写验收结论、发现的问题、修改建议、补充材料要求或后续学习建议…" oninput="setMentorDeployReviewComment(this.value)">'
+
mentorDeployReviewEsc
(
comment
)
+
'</textarea>'
+
'<p class="text-xs text-[#86909C] mt-1">通过时建议填写评语;驳回 / 要求补充材料时必填。</p>'
+
'<p class="text-xs text-[#86909C] mt-1">通过时建议填写评语;驳回 / 要求补充材料时必填。</p>'
+
'</div>'
+
'</div>'
+
'<div class="rounded-lg bg-[#F7F8FA] p-4 text-center text-sm text-[#86909C]">「通过 / 驳回 / 要求补充材料」按钮将在下一步接入。</div>'
+
'<div class="space-y-2.5">'
+
'<button class="w-full py-2.5 text-sm font-medium rounded-lg bg-emerald-600 hover:bg-emerald-500 text-white transition-all" onclick="submitMentorDeployReview(
\'
pass
\'
)">通过并通知学生</button>'
+
'<button class="w-full py-2.5 text-sm font-medium rounded-lg bg-rose-600 hover:bg-rose-500 text-white transition-all" onclick="submitMentorDeployReview(
\'
reject
\'
)">驳回并通知学生</button>'
+
'<button class="w-full py-2.5 text-sm font-medium rounded-lg bg-amber-500 hover:bg-amber-400 text-white transition-all" onclick="submitMentorDeployReview(
\'
supplement
\'
)">要求补充材料并通知学生</button>'
+
'</div>'
+
'<p class="text-xs text-[#86909C] mt-3 leading-relaxed">「通过」需先完成关键 API 测试且全部通过;「驳回 / 要求补充材料」需填写评语。</p>'
+
'</div>'
;
'</div>'
;
}
}
...
@@ -2193,30 +2198,66 @@ function buildMentorDeployReviewPanel(student) {
...
@@ -2193,30 +2198,66 @@ function buildMentorDeployReviewPanel(student) {
return
buildMentorDeployParamsPanel
(
sid
)
+
itemsHtml
+
buildMentorDeployScoreCard
(
sid
)
+
buildMentorDeployConclusionPanel
(
sid
);
return
buildMentorDeployParamsPanel
(
sid
)
+
itemsHtml
+
buildMentorDeployScoreCard
(
sid
)
+
buildMentorDeployConclusionPanel
(
sid
);
}
}
function
reviewDeployArtifact
(
passed
)
{
function
getMentorDeployMissingApiTests
(
sid
)
{
var
comment
=
document
.
getElementById
(
'deployReviewComment'
);
var
sub
=
getMentorDeploySubmission
(
sid
);
var
text
=
comment
?
comment
.
value
.
trim
()
:
''
;
var
tests
=
mentorDeployReviewState
.
tests
[
sid
]
||
{};
if
(
!
passed
&&
!
text
)
{
var
config
=
(
sub
&&
sub
.
taskType
===
'image-gen'
)
showStudentFlowModal
(
'请填写驳回原因'
,
'驳回部署产物时,导师评语为必填项。'
);
?
[{
k
:
'models'
,
label
:
'图像模型列表'
},
{
k
:
'genSubmit'
,
label
:
'提交生成任务'
},
{
k
:
'genStatus'
,
label
:
'查询生成任务'
}]
return
;
:
[{
k
:
'models'
,
label
:
'模型列表'
},
{
k
:
'chat'
,
label
:
'聊天补全'
}];
}
var
missing
=
[];
config
.
forEach
(
function
(
item
)
{
if
(
!
tests
[
item
.
k
]
||
tests
[
item
.
k
].
status
!==
'pass'
)
missing
.
push
(
item
.
label
);
});
return
missing
;
}
function
submitMentorDeployReview
(
action
)
{
var
sid
=
Number
(
mentorState
.
deployReviewStudentId
);
var
sid
=
Number
(
mentorState
.
deployReviewStudentId
);
var
sub
=
getMentorDeploySubmission
(
sid
);
var
sub
=
getMentorDeploySubmission
(
sid
);
if
(
!
sub
)
{
if
(
!
sub
)
{
showStudentFlowModal
(
'无法验收'
,
'该学生暂无提交内容。'
);
showStudentFlowModal
(
'无法验收'
,
'该学生暂无提交内容。'
);
return
;
return
;
}
}
var
comment
=
getMentorDeployReviewComment
(
sid
).
trim
();
var
scores
=
getMentorDeployReviewScores
(
sid
);
var
statusMap
=
{
pass
:
'已通过'
,
reject
:
'已驳回'
,
supplement
:
'待补充'
};
var
titleMap
=
{
pass
:
'已通过验收'
,
reject
:
'已驳回'
,
supplement
:
'已要求补充材料'
};
if
(
action
===
'pass'
)
{
if
(
!
sub
.
artifactSubmitted
||
!
sub
.
reportSubmitted
)
{
showStudentFlowModal
(
'暂不能通过验收'
,
'该学生提交材料不完整(缺少部署产物或实操报告)。请选择「驳回」或「要求补充材料」。'
);
return
;
}
var
missing
=
getMentorDeployMissingApiTests
(
sid
);
if
(
missing
.
length
)
{
showStudentFlowModal
(
'请先完成关键 API 测试'
,
'通过前必须完成并全部通过以下关键验收项:'
+
missing
.
join
(
'、'
)
+
'。'
);
return
;
}
}
else
if
(
!
comment
)
{
var
t
=
action
===
'reject'
?
'请填写驳回原因'
:
'请填写补充材料要求'
;
var
m
=
action
===
'reject'
?
'驳回必须填写原因,说明存在的问题与修改建议。'
:
'要求补充材料必须明确指出缺少的内容。'
;
showStudentFlowModal
(
t
,
m
);
return
;
}
if
(
!
sub
.
review
)
sub
.
review
=
{};
if
(
!
sub
.
review
)
sub
.
review
=
{};
sub
.
review
.
status
=
passed
?
'已通过'
:
'已驳回'
;
sub
.
review
.
status
=
statusMap
[
action
];
sub
.
review
.
comment
=
text
||
'服务探测成功,日志完整,部署产物符合验收要求。'
;
sub
.
review
.
comment
=
comment
;
sub
.
review
.
score
=
scores
;
sub
.
review
.
reviewedAt
=
getMentorDeployNowTimestamp
();
sub
.
review
.
reviewedAt
=
getMentorDeployNowTimestamp
();
if
(
!
passed
)
{
if
(
action
!==
'pass'
)
{
sub
.
artifactSubmitted
=
false
;
sub
.
artifactSubmitted
=
false
;
sub
.
reportSubmitted
=
false
;
sub
.
reportSubmitted
=
false
;
}
}
delete
mentorDeployReviewState
.
scores
[
sid
];
delete
mentorDeployReviewState
.
comments
[
sid
];
renderContent
();
renderContent
();
showStudentFlowModal
(
'API 验收台功能待接入'
,
'「通过」按钮将在下一步接入。'
);
var
msg
=
action
===
'pass'
return
;
?
'已通知学生查看验收结果,本次评分 '
+
scores
.
total
+
'/100 分。'
:
(
action
===
'reject'
?
'已通知学生根据驳回评语修改后重新提交。'
:
'已通知学生按补充要求补交材料后重新提交。'
);
showStudentFlowModal
(
titleMap
[
action
],
msg
);
}
}
pageRenderers
[
"mentor-deploy-review"
]
=
function
()
{
pageRenderers
[
"mentor-deploy-review"
]
=
function
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论