Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-fdc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-fdc
Commits
fba9a89f
提交
fba9a89f
authored
5月 10, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
8905d3ee
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
97 行增加
和
108 行删除
+97
-108
Index.vue
src/modules/course/learn/views/Index.vue
+2
-1
Index.vue
src/modules/exam/exam/views/Index.vue
+92
-89
Result.vue
src/modules/exam/exam/views/Result.vue
+3
-18
没有找到文件。
src/modules/course/learn/views/Index.vue
浏览文件 @
fba9a89f
...
...
@@ -23,8 +23,9 @@ export default {
this
.
$message
.
error
(
'暂无权限'
)
return
}
if
(
new
Date
(
this
.
$store
.
state
.
user
.
student_info
.
expiration_time
).
getTime
()
<
new
Date
().
getTime
())
{
if
(
new
Date
(
this
.
$store
.
state
.
user
.
student_info
.
expiration_time
).
getTime
()
<
=
new
Date
().
getTime
())
{
this
.
$message
.
warning
(
'您的课程已到期,请完成续费后再学习和考试'
)
return
false
}
else
{
this
.
$router
.
push
({
name
:
'courseLearnItem'
,
query
:
{
id
:
data
.
course_id
}
})
}
...
...
src/modules/exam/exam/views/Index.vue
浏览文件 @
fba9a89f
...
...
@@ -132,108 +132,111 @@ export default {
},
// 重新考试
reStartExam
(
data
)
{
if
(
new
Date
(
this
.
$store
.
state
.
user
.
student_info
.
expiration_time
).
getTime
()
<
new
Date
().
getTime
())
{
if
(
new
Date
(
this
.
$store
.
state
.
user
.
student_info
.
expiration_time
).
getTime
()
<
=
new
Date
().
getTime
())
{
this
.
$message
.
warning
(
'您的课程已到期,请完成续费后再学习和考试'
)
return
return
false
}
else
{
this
.
dialogVisible
=
true
this
.
curExamId
=
data
.
id
this
.
curExamTitle
=
data
.
paper_title
}
this
.
dialogVisible
=
true
this
.
curExamId
=
data
.
id
this
.
curExamTitle
=
data
.
paper_title
},
startExam
(
data
)
{
if
(
new
Date
(
this
.
$store
.
state
.
user
.
student_info
.
expiration_time
).
getTime
()
<
new
Date
().
getTime
())
{
if
(
new
Date
(
this
.
$store
.
state
.
user
.
student_info
.
expiration_time
).
getTime
()
<
=
new
Date
().
getTime
())
{
this
.
$message
.
warning
(
'您的课程已到期,请完成续费后再学习和考试'
)
return
}
const
num
=
parseInt
(
data
.
status
)
const
leaveTimes
=
data
.
leave_times
||
0
if
(
leaveTimes
>=
4
)
{
this
.
$alert
(
'离开考试页面已超过限定次数,考试结束'
,
{
confirmButtonText
:
'查看结果'
,
callback
:
action
=>
{
if
(
action
===
'confirm'
)
{
this
.
$router
.
push
({
path
:
'/exam/exam/result'
,
query
:
{
exam_id
:
data
.
id
,
title
:
data
.
paper_title
,
is_create
:
1
}
})
}
}
})
return
false
}
switch
(
num
)
{
case
100
:
this
.
$message
({
message
:
'请完成视频课程学习后再参加考试'
})
break
case
101
:
this
.
dialogVisible
=
true
this
.
curExamId
=
data
.
id
this
.
curExamTitle
=
data
.
paper_title
break
case
102
:
api
.
getExamList
().
then
(
res
=>
{
const
findTimes
=
res
.
data
.
find
(
id
=>
id
.
id
===
data
.
id
).
remaining_times_s
if
(
findTimes
<
5
)
{
this
.
$alert
(
'考试时间已到,系统已自动提交试卷'
,
{
confirmButtonText
:
'查看结果'
,
callback
:
action
=>
{
if
(
action
===
'confirm'
)
{
this
.
$router
.
push
({
path
:
'/exam/exam/result'
,
query
:
{
exam_id
:
data
.
id
,
title
:
data
.
paper_title
,
is_create
:
1
}
})
}
}
})
}
else
{
this
.
$router
.
push
({
path
:
'/exam/exam/exam'
,
query
:
{
id
:
data
.
id
,
is_create
:
1
,
title
:
data
.
paper_title
}
})
}
})
break
case
103
:
this
.
$router
.
push
({
path
:
'/exam/exam/result'
,
query
:
{
exam_id
:
data
.
id
,
title
:
data
.
paper_title
}
})
break
case
104
:
this
.
$alert
(
'重考申请还未通过,无法进行考试'
,
{
confirmButtonText
:
'重新提交申请'
,
}
else
{
const
num
=
parseInt
(
data
.
status
)
const
leaveTimes
=
data
.
leave_times
||
0
if
(
leaveTimes
>=
4
)
{
this
.
$alert
(
'离开考试页面已超过限定次数,考试结束'
,
{
confirmButtonText
:
'查看结果'
,
callback
:
action
=>
{
console
.
log
(
action
,
'action'
)
if
(
action
===
'confirm'
)
{
api
.
sbumitRetake
({
examination_id
:
data
.
id
}).
then
(
response
=>
{
if
(
response
.
code
===
0
)
{
this
.
$message
(
{
type
:
'success'
,
message
:
'提交成功'
})
this
.
$router
.
push
(
{
path
:
'/exam/exam/result'
,
query
:
{
exam_id
:
data
.
id
,
title
:
data
.
paper_title
,
is_create
:
1
}
})
}
}
})
break
return
false
}
switch
(
num
)
{
case
100
:
this
.
$message
({
message
:
'请完成视频课程学习后再参加考试'
})
break
case
101
:
this
.
dialogVisible
=
true
this
.
curExamId
=
data
.
id
this
.
curExamTitle
=
data
.
paper_title
break
case
102
:
api
.
getExamList
().
then
(
res
=>
{
const
findTimes
=
res
.
data
.
find
(
id
=>
id
.
id
===
data
.
id
).
remaining_times_s
if
(
findTimes
<
5
)
{
this
.
$alert
(
'考试时间已到,系统已自动提交试卷'
,
{
confirmButtonText
:
'查看结果'
,
callback
:
action
=>
{
if
(
action
===
'confirm'
)
{
this
.
$router
.
push
({
path
:
'/exam/exam/result'
,
query
:
{
exam_id
:
data
.
id
,
title
:
data
.
paper_title
,
is_create
:
1
}
})
}
}
})
}
else
{
this
.
$router
.
push
({
path
:
'/exam/exam/exam'
,
query
:
{
id
:
data
.
id
,
is_create
:
1
,
title
:
data
.
paper_title
}
})
}
})
break
case
103
:
this
.
$router
.
push
({
path
:
'/exam/exam/result'
,
query
:
{
exam_id
:
data
.
id
,
title
:
data
.
paper_title
}
})
break
case
104
:
this
.
$alert
(
'重考申请还未通过,无法进行考试'
,
{
confirmButtonText
:
'重新提交申请'
,
callback
:
action
=>
{
console
.
log
(
action
,
'action'
)
if
(
action
===
'confirm'
)
{
api
.
sbumitRetake
({
examination_id
:
data
.
id
}).
then
(
response
=>
{
if
(
response
.
code
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
'提交成功'
})
}
})
}
}
})
break
}
}
}
},
...
...
src/modules/exam/exam/views/Result.vue
浏览文件 @
fba9a89f
...
...
@@ -7,23 +7,8 @@
{{
data
.
sheet
.
created_time
}}
</span>
</div>
<div
v-if=
"expirationMonth === 3"
style=
"position: relative"
>
<el-empty
description=
"您已考试通过,请扫描下方二维码获取证书"
></el-empty>
<img
src=
"https://webapp-pub.ezijing.com/project/fd/u171.png"
alt=
""
style=
"
position: absolute;
top: 350px;
left: 50%;
transform: translate(-50%, -50%);
width: 200px;
height: 200px;
"
/>
</div>
<div
class=
"chart-box"
>
<div
class=
"chart-item"
v-if=
"
expirationMonth === 12 &&
Object.keys(datas.data).length"
>
<div
class=
"chart-item"
v-if=
"Object.keys(datas.data).length"
>
<div
class=
"chart-title"
>
成绩
</div>
<chart
:accuracy=
"score"
:accuracScore=
"totalScore"
>
<template
v-slot:tips
>
...
...
@@ -32,7 +17,7 @@
</chart>
</div>
</div>
<p
class=
"new__text"
v-if=
"expirationMonth === 12"
>
{{ resultText }}
</p>
<p
class=
"new__text"
>
{{ resultText }}
</p>
</div>
</div>
</template>
...
...
@@ -64,7 +49,7 @@ export default {
computed
:
{
resultText
()
{
return
this
.
score
>=
80
?
'恭喜
考试通过,您已获得金融数据合规管理证书,请前往我的证书页面查看
'
?
'恭喜
您考试通过,申领证书请前往我的证书页面
'
:
this
.
datas
.
times
>
1
?
'系统将向管理员发送重考申请,您可同步开始课程重修,重修完成且审批通过后方可继续考试'
:
'考试未通过,请重新完成视频课程学习后再次参加考试'
},
examId
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论