Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
ef3c8858
提交
ef3c8858
authored
2月 22, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into ciis
上级
36635e3c
688dd8f8
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
6 行删除
+8
-6
courseExam.vue
src/modules/viewer/components/work/courseExam.vue
+7
-5
zh-CN.js
src/modules/viewer/languages/zh-CN.js
+1
-1
没有找到文件。
src/modules/viewer/components/work/courseExam.vue
浏览文件 @
ef3c8858
...
...
@@ -11,6 +11,9 @@
</template>
<div
class=
"exam"
>
<
template
v-if=
"status.examination_status === '00'"
>
<div
style=
"text-align: center; margin-top: 40px; margin-bottom: -60px"
>
{{
$t
(
'viewerWork.examTime'
)
}}
:
{{
status
.
start_time
}}
~
{{
status
.
terminate_time
}}
</div>
<div
class=
"no-exam"
>
{{
$t
(
'viewerWork.examEmpty'
)
}}
</div>
</
template
>
<
template
v-else-if=
"isSubmited && !isCompleted && !isMultipleExams"
>
...
...
@@ -46,7 +49,7 @@
<
template
v-if=
"isMultipleExams"
>
<el-button
type=
"primary"
@
click=
"handlePrev"
v-if=
"hasPrev"
>
{{
$t
(
'viewerWork.prevPapers'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleNext"
v-if=
"hasNext"
>
{{
$t
(
'viewerWork.nextPapers'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"handleNewExam"
v-if=
"hasResubmit"
>
<el-button
type=
"primary"
@
click=
"handleNewExam"
v-if=
"hasResubmit
&& isExamTime
"
>
{{
$t
(
'viewerWork.anotherSubmitText'
)
}}
</el-button>
</
template
>
...
...
@@ -191,7 +194,7 @@ export default {
},
// 是否有倒计时
hasCountdown
()
{
return
!!
this
.
status
.
duration
&&
!
this
.
isSubmited
return
!!
this
.
status
.
duration
&&
this
.
canEditable
},
// 倒计时文字
countdownDurationText
()
{
...
...
@@ -234,7 +237,7 @@ export default {
// 获取试题状态
await
this
.
getExamStatus
()
this
.
checkStatusTimer
&&
clearInterval
(
this
.
checkStatusTimer
)
this
.
checkStatusTimer
=
setInterval
(
this
.
getExamStatus
,
5
000
)
this
.
checkStatusTimer
=
setInterval
(
this
.
getExamStatus
,
1
000
)
},
// 获取试题
getExam
()
{
...
...
@@ -414,8 +417,7 @@ export default {
this
.
countdownTimer
=
setInterval
(()
=>
{
this
.
countdownDuration
--
if
(
this
.
countdownDuration
<=
0
)
{
this
.
getExam
()
this
.
clearTimer
()
this
.
countdownTimer
&&
clearInterval
(
this
.
countdownTimer
)
}
},
1000
)
}
...
...
src/modules/viewer/languages/zh-CN.js
浏览文件 @
ef3c8858
...
...
@@ -27,7 +27,7 @@ export default {
submitedText
:
'已提交'
,
fraction
:
'分数'
,
fractionUnit
:
'分'
,
examEmpty
:
'
暂无考试
'
,
examEmpty
:
'
考试暂未开始
'
,
examTime
:
'考试有效时间'
,
examDeadline
:
'考试截止时间'
,
examSubmitedTips
:
'试卷批改中,请耐心等待'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论