Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-lab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-lab
Commits
b0579751
提交
b0579751
authored
2月 26, 2025
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 实验可以重复提交
上级
4e4b5b62
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
1 行删除
+7
-1
types.ts
src/modules/student/lab/types.ts
+1
-0
Index.vue
src/modules/student/lab/views/Index.vue
+6
-1
没有找到文件。
src/modules/student/lab/types.ts
浏览文件 @
b0579751
...
@@ -141,6 +141,7 @@ export interface ExperimentInfo {
...
@@ -141,6 +141,7 @@ export interface ExperimentInfo {
is_commit_report
:
boolean
is_commit_report
:
boolean
is_commit
:
boolean
is_commit
:
boolean
exam_status
:
number
exam_status
:
number
can_repeat_commit
:
0
|
1
}
}
interface
IdName
{
interface
IdName
{
...
...
src/modules/student/lab/views/Index.vue
浏览文件 @
b0579751
...
@@ -123,7 +123,12 @@ function handleBackHome() {
...
@@ -123,7 +123,12 @@ function handleBackHome() {
const
reportDialogVisible
=
$ref
(
false
)
const
reportDialogVisible
=
$ref
(
false
)
// 是否已经提交
// 是否已经提交
const
submitted
=
$computed
(()
=>
{
const
submitted
=
$computed
(()
=>
{
return
detail
?
detail
.
status
!==
0
:
false
// status: 0 缓存 1 已提交 2 已评分
// 已提交
if
(
detail
?.
status
===
1
)
return
true
// 已评分并且可以重复提交
if
(
detail
?.
status
===
2
&&
experimentInfo
?.
can_repeat_commit
!==
1
)
return
true
return
false
})
})
// 是否禁用
// 是否禁用
const
disabled
=
$computed
(()
=>
{
const
disabled
=
$computed
(()
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论