Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-lab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-lab
Commits
27e703f5
提交
27e703f5
authored
4月 27, 2025
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复考试不回显的问题
上级
58f1ef51
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
39 行增加
和
19 行删除
+39
-19
DragPanel.vue
src/components/DragPanel.vue
+1
-1
Exam.vue
src/modules/student/lab/components/Exam.vue
+14
-5
Index.vue
src/modules/student/lab/views/Index.vue
+24
-13
没有找到文件。
src/components/DragPanel.vue
浏览文件 @
27e703f5
...
@@ -42,7 +42,7 @@ onMounted(() => {
...
@@ -42,7 +42,7 @@ onMounted(() => {
<
template
>
<
template
>
<section
class=
"drag-panel"
>
<section
class=
"drag-panel"
>
<div
v-
show
=
"!isLeftShow"
class=
"drag-panel-left"
:class=
"
{ 'is-hidden': !leftPanelVisible }">
<div
v-
if
=
"!isLeftShow"
class=
"drag-panel-left"
:class=
"
{ 'is-hidden': !leftPanelVisible }">
<div
class=
"drag-cover"
v-if=
"dragFlag"
></div>
<div
class=
"drag-cover"
v-if=
"dragFlag"
></div>
<slot
name=
"left"
></slot>
<slot
name=
"left"
></slot>
<div
class=
"panel-resize"
id=
"panel-resize"
></div>
<div
class=
"panel-resize"
id=
"panel-resize"
></div>
...
...
src/modules/student/lab/components/Exam.vue
浏览文件 @
27e703f5
...
@@ -7,8 +7,13 @@ const appConfig = useAppConfig()
...
@@ -7,8 +7,13 @@ const appConfig = useAppConfig()
interface
Props
{
interface
Props
{
experiment_id
:
string
experiment_id
:
string
examStatus
?:
number
examStatus
?:
number
showInfo
?:
boolean
showIframe
?:
boolean
}
}
const
props
=
defineProps
<
Props
>
()
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
showInfo
:
true
,
showIframe
:
false
,
})
const
model
=
defineModel
()
const
model
=
defineModel
()
const
emits
=
defineEmits
([
'empty'
])
const
emits
=
defineEmits
([
'empty'
])
...
@@ -50,15 +55,19 @@ watchEffect(() => {
...
@@ -50,15 +55,19 @@ watchEffect(() => {
<
template
>
<
template
>
<template
v-if=
"currentExam"
>
<template
v-if=
"currentExam"
>
<el-form
label-suffix=
":"
label-position=
"top"
v-if=
"
appConfig.system !== 'x'
"
>
<el-form
label-suffix=
":"
label-position=
"top"
v-if=
"
showInfo
"
>
<el-form-item
label=
"考试名称"
>
{{
currentExam
.
exam_info
.
name
}}
</el-form-item>
<el-form-item
label=
"考试名称"
>
{{
currentExam
.
exam_info
.
name
}}
</el-form-item>
<el-form-item
label=
"考试时间"
<el-form-item
label=
"考试时间"
>
{{
currentExam
.
exam_info
.
start_time
}}
~
{{
currentExam
.
exam_info
.
end_time
}}
</el-form-item
>
{{
currentExam
.
exam_info
.
start_time
}}
~
{{
currentExam
.
exam_info
.
end_time
}}
</el-form-item
>
>
</el-form>
</el-form>
<div
style=
"width: 100%; height: 100%"
>
<iframe
<iframe
style=
"width: 100%; height: 100%"
allowfullscreen
class=
"iframe"
:src=
"examURL"
frameborder=
"0"
></iframe>
style=
"width: 100%; height: 100%"
</div>
allowfullscreen
class=
"iframe"
:src=
"examURL"
frameborder=
"0"
v-if=
"showIframe"
></iframe>
</
template
>
</
template
>
<el-empty
description=
"暂无数据"
v-else
/>
<el-empty
description=
"暂无数据"
v-else
/>
</template>
</template>
src/modules/student/lab/views/Index.vue
浏览文件 @
27e703f5
...
@@ -354,19 +354,30 @@ function handleEmpty(name: string) {
...
@@ -354,19 +354,30 @@ function handleEmpty(name: string) {
style=
"flex: 1"
style=
"flex: 1"
v-if=
"submitted"
/>
v-if=
"submitted"
/>
<template
v-else
>
<template
v-else
>
<iframe
<template
v-if=
"experimentInfo?.exam_status === 1 && tabActive === 'exam'"
>
allow=
"camera; microphone"
<Exam
allowfullscreen
v-model=
"examURL"
:src=
"LAB_URL"
:showInfo=
"false"
:key=
"iframeKey"
:showIframe=
"true"
frameborder=
"0"
:experiment_id=
"form.experiment_id"
class=
"iframe"
:examStatus=
"experimentInfo?.exam_status"
ref=
"iframeRef"
></iframe>
@
empty=
"handleEmpty('exam')"
></Exam>
<div
</
template
>
style=
"padding: 10px; background-color: #fff; max-width: 300px; min-width: 300px"
<
template
v-else
>
v-if=
"experimentInfo?.exam_status === 1 && tabActive === 'qa'"
>
<iframe
<Question
:experiment_id=
"form.experiment_id"
:exam_status=
"experimentInfo?.exam_status"
></Question>
allow=
"camera; microphone"
</div>
allowfullscreen
:src=
"LAB_URL"
:key=
"iframeKey"
frameborder=
"0"
class=
"iframe"
ref=
"iframeRef"
></iframe>
<div
style=
"padding: 10px; background-color: #fff; width: 300px"
v-if=
"experimentInfo?.exam_status === 1 && tabActive === 'qa'"
>
<Question
:experiment_id=
"form.experiment_id"
:exam_status=
"experimentInfo?.exam_status"
></Question>
</div>
</
template
>
</template>
</template>
</div>
</div>
</template>
</template>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论