|
|
|
@ -25,7 +25,7 @@ |
|
|
|
|
<span>{{ timeSum.seconds }}</span>秒 |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<template v-if="submited"> |
|
|
|
|
<template v-if="submited && !per"> |
|
|
|
|
<div class="score"> |
|
|
|
|
<span>暂得分</span> |
|
|
|
|
<div class="num">{{ score }}分</div> |
|
|
|
@ -252,6 +252,8 @@ export default { |
|
|
|
|
this.paperId ? this.getPracticePaper() : this.getCompetition(1) |
|
|
|
|
this.initOss() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
per && sessionStorage.removeItem('theorySubmit') |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 获取竞赛信息 |
|
|
|
@ -794,7 +796,9 @@ export default { |
|
|
|
|
window.opener && window.opener.location.reload() |
|
|
|
|
clearInterval(this.counterTimer) |
|
|
|
|
this.submiting = false |
|
|
|
|
if (res.reportId) { |
|
|
|
|
|
|
|
|
|
// 练习、考核提交后要缓存分数及reportId |
|
|
|
|
if (!per) { |
|
|
|
|
this.reportId = res.reportId |
|
|
|
|
this.score = res.score |
|
|
|
|
sessionStorage.setItem('theorySubmit', JSON.stringify({ |
|
|
|
@ -805,7 +809,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
this.submited = true |
|
|
|
|
|
|
|
|
|
per !== 2 && clearPracticeCache() |
|
|
|
|
per !== 2 && this.clearPracticeCache() |
|
|
|
|
|
|
|
|
|
// 如果是时间到了自动提交,则提交完不弹框,直接关闭页面 |
|
|
|
|
if (autoSubmit) { |
|
|
|
@ -834,7 +838,7 @@ export default { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
type: 'success', |
|
|
|
|
callback: () => { |
|
|
|
|
this.close() |
|
|
|
|
this.$router.push(`/ass`) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|