提交 dcdfbe32 authored 作者: lhh's avatar lhh

update

上级 44b0239f
......@@ -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>
......
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论