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

bug fixes

上级 1330998e
...@@ -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="[0, 3, 100].includes(subItem.status)" @click="toExamPage(subItem, 1)"> <el-button round size="mini" v-if="subItem.status === 100" @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-else> <template v-if="[1, 2].includes(subItem.status)">
<!-- <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, 2)">报告</el-button> <el-button round size="mini" @click="toExamPage(subItem, 3)">报告</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 === 2 ? '/course/chapter/result' : '/course/exam/chapter' const path = type === 3 ? '/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 }
......
...@@ -63,6 +63,7 @@ export default { ...@@ -63,6 +63,7 @@ export default {
goPage(param) { goPage(param) {
const urlParam = this.$route.query const urlParam = this.$route.query
urlParam.id = param urlParam.id = param
urlParam.type = 2
this.$router.push({ this.$router.push({
path: '/course/exam/chapter', path: '/course/exam/chapter',
query: urlParam query: urlParam
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论