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

章节考试隐藏查看解析;报告分辨率修改为分数;章节考试只能考一次;

上级 29f941c9
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
{{ progressText(subItem.video_progress) }} {{ progressText(subItem.video_progress) }}
</div> </div>
<div class="buttons" v-if="subItem.type === 9"> <div class="buttons" v-if="subItem.type === 9">
<el-button round size="mini" v-if="subItem.status === 100" @click="toExamPage(subItem, 1)"> <el-button round size="mini" v-if="[0, 3, 100].includes(subItem.status)" @click="toExamPage(subItem, 1)">
测试 测试
</el-button> </el-button>
<el-button round size="mini" v-if="[0, 3].includes(subItem.status)" @click="toExamPage(subItem, 2)"> <!-- <el-button round size="mini" v-if="[0, 3].includes(subItem.status)" @click="toExamPage(subItem, 2)">
继续测试 继续测试
</el-button> </el-button> -->
<template v-if="[1, 2].includes(subItem.status)"> <template v-else>
<el-button round size="mini" @click="toExamPage(subItem, 1)">重新测试</el-button> <!-- <el-button round size="mini" @click="toExamPage(subItem, 1)">重新测试</el-button> -->
<el-button round size="mini" @click="toExamPage(subItem, 3)">报告</el-button> <el-button round size="mini" @click="toExamPage(subItem, 2)">报告</el-button>
</template> </template>
</div> </div>
</li> </li>
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
} }
}, },
toExamPage(data, type) { toExamPage(data, type) {
const path = type === 3 ? '/course/chapter/result' : '/course/exam/chapter' const path = type === 2 ? '/course/chapter/result' : '/course/exam/chapter'
this.$router.push({ this.$router.push({
path: path, path: path,
query: { course_id: this.courseId, chapter_id: data.id, type } query: { course_id: this.courseId, chapter_id: data.id, type }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<!-- @click="confirmBtn" --> <!-- @click="confirmBtn" -->
<div class="foot" id="foot-h"> <div class="foot" id="foot-h">
<div class="exam-btn"> <div class="exam-btn">
<div class="confirm" @click="confirmBtn">查看解析</div> <!-- <div class="confirm" @click="confirmBtn">查看解析</div> -->
<div <div
@click="changeIndex('prev')" @click="changeIndex('prev')"
:class="this.questionParams.questionIndex !== 0 ? 'active' : ''" :class="this.questionParams.questionIndex !== 0 ? 'active' : ''"
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<div class="chart-box"> <div class="chart-box">
<chart :accuracy="accuracy"> <chart :accuracy="accuracy">
<template v-slot:tips> <template v-slot:tips>
<div class="num">{{ accuracy }}%</div> <div class="num" v-if="data.sheet">{{ data.sheet.score }}</div>
<div class="t">正确率</div> <div class="t">分数</div>
</template> </template>
</chart> </chart>
</div> </div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论