Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
studyweb_Prototype
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
yujiejie
studyweb_Prototype
Commits
8be9d301
提交
8be9d301
authored
8月 23, 2026
作者:
yujiejie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
821步骤三完成
上级
2147d675
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
38 行增加
和
0 行删除
+38
-0
pages-mentor.js
pages-mentor.js
+38
-0
没有找到文件。
pages-mentor.js
浏览文件 @
8be9d301
...
@@ -2664,6 +2664,43 @@ function submitMentorDeployReview() {
...
@@ -2664,6 +2664,43 @@ function submitMentorDeployReview() {
renderContent
();
renderContent
();
}
}
function
getMentorDeployTaskStatusIcon
(
status
)
{
if
(
status
===
'已通过'
)
return
'check'
;
if
(
status
===
'待验收'
)
return
'clock'
;
if
(
status
===
'已驳回'
||
status
===
'待补充'
)
return
'x'
;
if
(
status
===
'验收中'
)
return
'loader'
;
return
'minus'
;
}
function
buildMentorDeployTaskTabs
(
selectedId
)
{
var
activeKey
=
getMentorDeployTaskKey
(
selectedId
);
return
Object
.
keys
(
MENTOR_DEPLOY_TASKS
).
map
(
function
(
key
)
{
var
def
=
MENTOR_DEPLOY_TASKS
[
key
];
var
status
=
getMentorDeployStudentStatus
(
selectedId
,
key
);
var
isActive
=
key
===
activeKey
;
var
tabCls
=
isActive
?
'bg-[#165DFF] text-white border-[#165DFF] shadow-sm'
:
'bg-white text-[#4E5969] border-[#E5E6EB] hover:border-[#165DFF] hover:text-[#165DFF]'
;
return
'<button type="button" class="flex items-center gap-2 px-5 py-2.5 rounded-lg border text-sm font-medium transition-all '
+
tabCls
+
'" onclick="switchMentorDeployTask(
\'
'
+
key
+
'
\'
)">'
+
'<span class="font-semibold">'
+
def
.
tabName
+
'</span>'
+
'<span class="text-xs '
+
(
isActive
?
'text-[#B3C8FF]'
:
'text-[#86909C]'
)
+
'">'
+
def
.
shortName
+
'</span>'
+
'<span class="flex items-center gap-1 px-2 py-0.5 rounded text-xs '
+
getMentorDeployStatusBadge
(
status
)
+
'">'
+
'<svg class="w-3 h-3" data-lucide="'
+
getMentorDeployTaskStatusIcon
(
status
)
+
'"></svg>'
+
status
+
'</span>'
+
'</button>'
;
}).
join
(
''
);
}
function
switchMentorDeployTask
(
taskKey
)
{
if
(
!
MENTOR_DEPLOY_TASKS
[
taskKey
])
return
;
if
(
mentorDeployReviewState
.
activeTask
===
taskKey
)
return
;
// 切换任务时清理图像任务轮询定时器(步骤 10 接入轮询后生效)
if
(
typeof
stopMentorDeployGenPolling
===
'function'
)
stopMentorDeployGenPolling
();
mentorDeployReviewState
.
activeTask
=
taskKey
;
mentorDeployReviewState
.
contentTab
=
'artifact'
;
renderContent
();
}
pageRenderers
[
"mentor-deploy-review"
]
=
function
()
{
pageRenderers
[
"mentor-deploy-review"
]
=
function
()
{
var
students
=
mentorState
.
students
||
[];
var
students
=
mentorState
.
students
||
[];
var
selectedId
=
Number
(
mentorState
.
deployReviewStudentId
||
(
students
[
0
]
&&
students
[
0
].
id
));
var
selectedId
=
Number
(
mentorState
.
deployReviewStudentId
||
(
students
[
0
]
&&
students
[
0
].
id
));
...
@@ -2702,6 +2739,7 @@ pageRenderers["mentor-deploy-review"] = function() {
...
@@ -2702,6 +2739,7 @@ pageRenderers["mentor-deploy-review"] = function() {
'<span class="px-3 py-1.5 rounded-lg text-sm font-medium '
+
statusClass
+
'">'
+
status
+
'</span>'
+
'<span class="px-3 py-1.5 rounded-lg text-sm font-medium '
+
statusClass
+
'">'
+
status
+
'</span>'
+
'</div>'
+
'</div>'
+
'</div>'
+
'</div>'
+
'<div class="flex items-center gap-3 mb-6">'
+
buildMentorDeployTaskTabs
(
selectedId
)
+
'</div>'
+
'<div class="grid grid-cols-12 gap-6">'
+
'<div class="grid grid-cols-12 gap-6">'
+
'<div class="col-span-3 bg-white rounded-lg border border-[#E5E6EB] p-4 self-start">'
+
'<div class="col-span-3 bg-white rounded-lg border border-[#E5E6EB] p-4 self-start">'
+
'<div class="flex items-center justify-between mb-3"><h3 class="font-semibold text-[#1D2129]">我的学生</h3><span class="text-xs px-2 py-0.5 rounded bg-[#F2F3F5] text-[#86909C]">'
+
students
.
length
+
' 人</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-0.5 rounded bg-[#F2F3F5] text-[#86909C]">'
+
students
.
length
+
' 人</span></div>'
+
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论