feat: 问题修复

This commit is contained in:
cgd_mac 2022-02-26 17:27:02 +08:00
parent 3cc167cd42
commit d8584dd484
4 changed files with 19 additions and 2 deletions

View File

@ -69,6 +69,7 @@ export default {
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
line-clamp: 2; line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
text-align: center;
} }
</style> </style>

View File

@ -1,6 +1,9 @@
<template> <template>
<a-card :bordered="false"> <a-card :bordered="false">
<a-tabs v-model="activeTab"> <a-tabs v-model="activeTab">
<a-button @click="goBack" slot="tabBarExtraContent">
返回
</a-button>
<a-tab-pane key="1" tab="我的收藏"> <a-tab-pane key="1" tab="我的收藏">
<a-card <a-card
:title="`我的收藏题目(共${collectionInfo.total}题)`" :title="`我的收藏题目(共${collectionInfo.total}题)`"
@ -149,6 +152,9 @@ export default {
this.getPracticerecordPageList() this.getPracticerecordPageList()
this.getPracticewrongPageList() this.getPracticewrongPageList()
}, },
goBack () {
this.$router.go(-1)
},
// //
getPracticecollectionPageList () { getPracticecollectionPageList () {
const { collectionInfo } = this const { collectionInfo } = this

View File

@ -25,6 +25,7 @@
</a-popconfirm> </a-popconfirm>
<a v-if="record.status === 2" @click="handlerContinue(record)">继续学习</a> <a v-if="record.status === 2" @click="handlerContinue(record)">继续学习</a>
<a v-if="record.status === 3">已完成学习</a> <a v-if="record.status === 3">已完成学习</a>
<a v-if="record.status === 4">课程已经结束</a>
</span> </span>
</s-table> </s-table>
</a-tab-pane> </a-tab-pane>

View File

@ -1,6 +1,9 @@
<template> <template>
<a-card :bordered="false"> <a-card :bordered="false">
<a-tabs v-if="query.type" :default-active-key="query.type"> <a-tabs v-model="activeTab">
<a-button @click="goBack" slot="tabBarExtraContent">
返回
</a-button>
<a-tab-pane key="1" tab="答题报告"> <a-tab-pane key="1" tab="答题报告">
<a-card <a-card
:bordered="false" :bordered="false"
@ -11,7 +14,9 @@
<h3 v-if="viewReport.courseName">{{ viewReport.courseName }}</h3> <h3 v-if="viewReport.courseName">{{ viewReport.courseName }}</h3>
<div class="sub-info"> <div class="sub-info">
<span>交卷时间{{ viewReport.submitTime }}</span> <span>交卷时间{{ viewReport.submitTime }}</span>
<span v-if="viewReport.totalScore">答题用时{{ (viewReport.answerTime/60).toFixed(2) || 0 }}分钟</span> <span v-if="viewReport.totalScore">
答题用时{{ (viewReport.answerTime / 60).toFixed(2) || 0 }}分钟
</span>
</div> </div>
<DbReport :data="viewReport"></DbReport> <DbReport :data="viewReport"></DbReport>
</template> </template>
@ -58,6 +63,7 @@ export default {
mounted () { mounted () {
const query = this.$route.query const query = this.$route.query
this.query = query this.query = query
this.activeTab = String(query.index) || '1'
// if (query.type === 'practice') { // if (query.type === 'practice') {
this.getAnswerViewReport() this.getAnswerViewReport()
this.getAnswerViewResolution() this.getAnswerViewResolution()
@ -68,6 +74,9 @@ export default {
// } // }
}, },
methods: { methods: {
goBack () {
this.$router.go(-1)
},
// start // start
// getExamViewReport () { // getExamViewReport () {
// reqExamViewReport({ projectId: this.query.reportId }).then(res => { // reqExamViewReport({ projectId: this.query.reportId }).then(res => {