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

update

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