Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-lab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-lab
Commits
dcdfbe32
提交
dcdfbe32
authored
4月 24, 2023
作者:
lhh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
44b0239f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
4 行删除
+6
-4
ListItem.vue
src/modules/admin/lab/case/components/ListItem.vue
+2
-1
ContestItem.vue
src/modules/student/contest/components/ContestItem.vue
+4
-3
没有找到文件。
src/modules/admin/lab/case/components/ListItem.vue
浏览文件 @
dcdfbe32
...
...
@@ -47,7 +47,8 @@ const sizeName = computed(() => {
<div
class=
"button icon-edit"
@
click=
"$emit('clickEdit', data)"
v-permission=
"'teacher-experiment-cases-update'"
></div>
v-permission=
"'teacher-experiment-cases-update'"
></div>
</el-tooltip>
</div>
</div>
...
...
src/modules/student/contest/components/ContestItem.vue
浏览文件 @
dcdfbe32
...
...
@@ -25,7 +25,8 @@ const canTrain = $computed(() => {
function
handleTrain
(
id
:
string
,
type
:
string
)
{
// 训练计数
updateTrainCount
({
competition_id
:
id
})
router
.
push
({
path
:
`/student/contest/lab/
${
id
}
`
,
query
:
{
type
:
type
}
})
window
.
open
(
`/student/contest/lab/
${
id
}
?type=
${
type
}
`
)
// router.push({ path: `/student/contest/lab/${id}`, query: { type: type } })
}
// 是否可以报名
const
canJoin
=
$computed
(()
=>
{
...
...
@@ -58,11 +59,11 @@ function formatDate(value: string) {
</ul>
<!--
{{
data
.
train_platform_configs
}}
-->
<!--
<el-button
v-if=
"data.train_platform_configs"
round
type=
"primary"
@
click=
"handleTrain"
v-if=
"canTrain"
>
我要训练
</el-button>
-->
<div
style=
"display: flex; flex-wrap: wrap"
>
<div
style=
"display: flex; flex-wrap: wrap
; justify-content: space-evenly
"
>
<template
v-for=
"item in data.train_platform_configs"
>
<el-button
v-if=
"item.is_show === '1' && canTrain"
style=
"margin-bottom: 10px"
style=
"margin-bottom: 10px
; margin-left: 0
"
:key=
"item"
round
type=
"primary"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论