提交 2ca2a45b authored 作者: lihuihui's avatar lihuihui

update

上级 b8db9b6c
<template>
<div>
<exam-card
title="考试"
:title="$route.query.title || '考试'"
:hasMark="hasMark"
:status="status"
:data="data"
......
......@@ -84,6 +84,8 @@ export default {
})
},
startExam(data) {
// console.log(data, 'data')
window.localStorage.setItem('paperTitle', data.paper_title)
const num = parseInt(data.status)
switch (num) {
case 100:
......@@ -100,7 +102,8 @@ export default {
path: '/exam/exam/exam',
query: {
id: data.id,
is_create: 1
is_create: 1,
title: data.paper_title
}
})
break
......@@ -108,7 +111,8 @@ export default {
this.$router.push({
path: '/exam/exam/result',
query: {
exam_id: data.id
exam_id: data.id,
title: data.paper_title
}
})
break
......@@ -116,14 +120,17 @@ export default {
this.$alert('重考申请还未通过,无法进行考试', {
confirmButtonText: '重新提交申请',
callback: action => {
api.sbumitRetake({ examination_id: data.id }).then(response => {
if (response.code === 0) {
this.$message({
type: 'success',
message: '提交成功'
})
}
})
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
......
......@@ -46,7 +46,7 @@ export default {
computed: {
resultText() {
return this.score >= 80
? '恭喜考试通过,您已获得xxxx证书,请前往我的证书页面查看'
? '恭喜考试通过,您已获得金融数据合规管理证书,请前往我的证书页面查看'
: this.datas.times > 1 ? '系统将向管理员发送重考申请,您可同步开始课程重修,重修完成且审批通过后方可继续考试' : '考试未通过,请重新完成视频课程学习后再次参加考试'
},
examId() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论