提交 e46caf1a authored 作者: 王鹏飞's avatar 王鹏飞

隐藏学分

上级 bfd62f50
<template> <template>
<container :title="exam.title" v-loading="loading"> <container :title="exam.title" v-loading="loading">
<template v-slot:header-aside v-if="isExamComplete"> <template v-slot:header-aside v-if="isExamComplete">
{{ $t('viewerWork.fraction') }}{{ exam.score.total }}{{ $t('viewerWork.fractionUnit') }} <!-- {{ $t('viewerWork.fraction') }}{{ exam.score.total }}{{ $t('viewerWork.fractionUnit') }} -->
</template> </template>
<div class="exam"> <div class="exam">
<template v-if="isSubmited && !isExamComplete"> <template v-if="isSubmited && !isExamComplete">
......
<template> <template>
<container :title="chapter.name" v-loading="loading"> <container :title="chapter.name" v-loading="loading">
<template v-slot:header-aside v-if="isSubmited">{{ $t('viewerWork.correctRate') }}{{ detail.score }}%</template> <!-- <template v-slot:header-aside v-if="isSubmited">{{ $t('viewerWork.correctRate') }}{{ detail.score }}%</template> -->
<div class="exam"> <div class="exam">
<div class="exam-form"> <div class="exam-form">
<el-form :disabled="isSubmited"> <el-form :disabled="isSubmited">
......
...@@ -218,8 +218,9 @@ export default { ...@@ -218,8 +218,9 @@ export default {
return currentTime < endTime return currentTime < endTime
}, },
hasScore() { hasScore() {
return false
// allow_score 1 显示 2隐藏 // allow_score 1 显示 2隐藏
return this.detail.allow_score !== 2 && this.detail.score // return this.detail.allow_score !== 2 && this.detail.score
}, },
// 显示作业评论 // 显示作业评论
showComment() { showComment() {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<container :title="status.title" v-loading="loading"> <container :title="status.title" v-loading="loading">
<template v-slot:header-aside v-if="isStartExam"> <template v-slot:header-aside v-if="isStartExam">
<template v-if="isCompleted"> <template v-if="isCompleted">
{{ $t('viewerWork.fraction') }}{{ exam.score.total }}{{ $t('viewerWork.fractionUnit') }} <!-- {{ $t('viewerWork.fraction') }}{{ exam.score.total }}{{ $t('viewerWork.fractionUnit') }} -->
</template> </template>
<template v-else> <template v-else>
<div v-if="hasCountdown">倒计时:{{ countdownDurationText }}</div> <div v-if="hasCountdown">倒计时:{{ countdownDurationText }}</div>
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<div class="status-text" v-if="essay.created_time"> <div class="status-text" v-if="essay.created_time">
{{ $t('pages.learn.courseDetail.Submissiontime') }}{{ essay.created_time }} {{ $t('pages.learn.courseDetail.Submissiontime') }}{{ essay.created_time }}
</div> </div>
<div class="status-text">{{ $t('pages.learn.courseDetail.score2') }}{{ showCore(essay.score) }}</div> <!-- <div class="status-text">{{ $t('pages.learn.courseDetail.score2') }}{{ showCore(essay.score) }}</div> -->
</div> </div>
</div> </div>
</template> </template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论