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;
line-clamp: 2;
-webkit-box-orient: vertical;
text-align: center;
}
</style>

View File

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

View File

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

View File

@ -1,6 +1,9 @@
<template>
<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-card
:bordered="false"
@ -11,7 +14,9 @@
<h3 v-if="viewReport.courseName">{{ viewReport.courseName }}</h3>
<div class="sub-info">
<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>
<DbReport :data="viewReport"></DbReport>
</template>
@ -58,6 +63,7 @@ export default {
mounted () {
const query = this.$route.query
this.query = query
this.activeTab = String(query.index) || '1'
// if (query.type === 'practice') {
this.getAnswerViewReport()
this.getAnswerViewResolution()
@ -68,6 +74,9 @@ export default {
// }
},
methods: {
goBack () {
this.$router.go(-1)
},
// start
// getExamViewReport () {
// reqExamViewReport({ projectId: this.query.reportId }).then(res => {