Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-lab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-lab
Commits
0864fe5d
提交
0864fe5d
authored
7月 22, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 新增网络主播赛项选项,更新比赛页面的选项卡逻辑
上级
98b49f36
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
8 行删除
+16
-8
CompetitionRuleDialog.vue
...admin/lab/experiment/components/CompetitionRuleDialog.vue
+1
-0
useCompetition.ts
src/modules/student/lab/composables/useCompetition.ts
+3
-6
Competition.vue
src/modules/student/lab/views/Competition.vue
+12
-2
没有找到文件。
src/modules/admin/lab/experiment/components/CompetitionRuleDialog.vue
浏览文件 @
0864fe5d
...
...
@@ -54,6 +54,7 @@ const competitionOptions = ref([
{
label
:
'全媒体运营赛项'
,
value
:
'2'
},
{
label
:
'互联网营销师(直播销售)'
,
value
:
'3'
},
{
label
:
'全媒体运营师(网络编辑)'
,
value
:
'4'
},
{
label
:
'网络主播赛项(理论考试)'
,
value
:
'5'
},
])
async
function
fetchInfo
()
{
...
...
src/modules/student/lab/composables/useCompetition.ts
浏览文件 @
0864fe5d
...
...
@@ -29,7 +29,6 @@ export function useCompetition() {
return
`
${
urls
.
lab
}
&token=
${
cookies
.
get
(
'TGC'
)}
`
})
watchEffect
(()
=>
{
if
(
courses
.
value
.
length
)
{
courseId
.
value
=
courses
.
value
[
0
].
id
...
...
@@ -43,16 +42,15 @@ export function useCompetition() {
})
const
experimentInfo
=
ref
<
ExperimentType
>
()
const
fetchExperiment
=
async
()
=>
{
return
false
const
res
=
await
getExperiment
({
experiment_id
:
experimentId
.
value
})
experimentInfo
.
value
=
res
.
data
.
detail
if
(
res
.
data
.
detail
.
exam_status
==
1
)
{
fetchExamList
()
}
}
const
fetchExperimentCompetition
=
async
()
=>
{
const
res
=
await
getExperimentCompetition
({
experiment_id
:
experimentId
.
value
})
competition
.
value
=
res
.
data
.
detail
if
(
res
.
data
.
detail
.
competition
==
'4'
)
{
fetchExamList
()
}
}
watchEffect
(()
=>
{
if
(
experimentId
.
value
)
{
...
...
@@ -80,6 +78,5 @@ export function useCompetition() {
examList.value = res.data.items
}
return { competition, courseId, experimentId, experimentInfo, submit, fetchExamList, examURL, biURL }
}
src/modules/student/lab/views/Competition.vue
浏览文件 @
0864fe5d
...
...
@@ -64,7 +64,7 @@ const handleSubmit = async () => {
},
)
}
const
tabActive
=
ref
(
'
bi
'
)
const
tabActive
=
ref
(
'
exam
'
)
const
competitionConfig
=
computed
(()
=>
{
const
rawConfig
=
competition
.
value
?.
config
...
...
@@ -96,7 +96,7 @@ useEventListener(window, 'message', async (event) => {
})
</
script
>
<
template
>
<DragPanel
v-if=
"isEntry"
>
<DragPanel
:isLeftShow=
"!practicalQuestionHtml"
v-if=
"isEntry"
>
<template
#
left
>
<div
class=
"left-box"
>
<h2
class=
"left-box-title"
>
实操试题
</h2>
...
...
@@ -133,6 +133,16 @@ useEventListener(window, 'message', async (event) => {
v-show=
"tabActive === 'exam'"
></iframe>
</div>
</
template
>
<
template
v-else-if=
"competition?.competition == '5'"
>
<iframe
allow=
"camera; microphone"
allowfullscreen
:src=
"examURL"
frameborder=
"0"
class=
"iframe"
ref=
"iframeRef"
v-show=
"tabActive === 'exam'"
></iframe>
</
template
>
<
template
v-else
>
<AppCard
v-if=
"isFormalMode"
>
<div
class=
"competition-header"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论