|
@@ -64,14 +64,7 @@
|
|
|
<div
|
|
|
class="btn-line__in"
|
|
|
v-if="record.status == 1"
|
|
|
- @click="
|
|
|
- go('/bank-report/' + record.goodsId, {
|
|
|
- chapterId: record.chapterExamId,
|
|
|
- moduleId: record.moduleExamId,
|
|
|
- examId: record.examId,
|
|
|
- recordId: record.recordId,
|
|
|
- orderGoodsId: record.orderGoodsId,
|
|
|
- })
|
|
|
+ @click="doReport(record)
|
|
|
"
|
|
|
>
|
|
|
<div>做题报告</div>
|
|
@@ -125,6 +118,7 @@ export default {
|
|
|
},
|
|
|
recordList: [],
|
|
|
total: 0,
|
|
|
+ courseType: 1, // 2视频试卷
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -132,7 +126,8 @@ export default {
|
|
|
this.param.chapterExamId = this.$route.query.chapterId;
|
|
|
this.param.examId = this.$route.query.examId;
|
|
|
this.param.goodsId = this.$route.params.goodsId;
|
|
|
- if (this.$route.query.courseType == 2) {
|
|
|
+ this.courseType = this.$route.query.courseType
|
|
|
+ if (this.courseType == 2) {
|
|
|
const { examId, gradeId, chapterId, moduleId, courseId, sectionId} = this.$route.query
|
|
|
this.record = {
|
|
|
examId: +examId,
|
|
@@ -160,7 +155,7 @@ export default {
|
|
|
currentChange(e) {
|
|
|
this.param.pageNum = e;
|
|
|
// this.getExamRecordList();
|
|
|
- if (this.$route.query.courseType == 2) {
|
|
|
+ if (this.courseType == 2) {
|
|
|
this.recordBankList()
|
|
|
} else {
|
|
|
this.examRecordList();
|
|
@@ -197,7 +192,7 @@ export default {
|
|
|
async doRepeat(section) {
|
|
|
// let count = await this.examRecordCount(section.examId);
|
|
|
let count = 0
|
|
|
- if (section.courseType == 2) {
|
|
|
+ if (this.courseType == 2) {
|
|
|
count = await this.bankRecordDoNum(section)
|
|
|
} else {
|
|
|
count = await this.examRecordCount(section.examId)
|
|
@@ -222,7 +217,7 @@ export default {
|
|
|
showClose: false,
|
|
|
})
|
|
|
.then((_) => {
|
|
|
- if (section.courseType == 2){
|
|
|
+ if (this.courseType == 2){
|
|
|
this.$router.push({
|
|
|
path: "/course-exam/" + section.goodsId,
|
|
|
query: {
|
|
@@ -256,7 +251,7 @@ export default {
|
|
|
moduleId: section.moduleExamId || 0,
|
|
|
chapterId: section.chapterExamId || 0,
|
|
|
goodsId: section.goodsId,
|
|
|
- courseType: this.$route.query.courseType,
|
|
|
+ courseType: this.courseType,
|
|
|
orderGoodsId: section.orderGoodsId,
|
|
|
},
|
|
|
});
|
|
@@ -307,6 +302,36 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ doReport(record) {
|
|
|
+ if (this.courseType == 2) {
|
|
|
+ this.$router.push({
|
|
|
+ path: "/course-report",
|
|
|
+ query: {
|
|
|
+ examId: record.examId,
|
|
|
+ recordId: record.recordId,
|
|
|
+ type: record.type, //type:1章卷,2节卷,3模块卷
|
|
|
+ },
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/bank-report/' + record.goodsId,
|
|
|
+ query: {
|
|
|
+ chapterId: record.chapterExamId,
|
|
|
+ moduleId: record.moduleExamId,
|
|
|
+ examId: record.examId,
|
|
|
+ recordId: record.recordId,
|
|
|
+ orderGoodsId: record.orderGoodsId,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // go('/bank-report/' + record.goodsId, {
|
|
|
+ // chapterId: record.chapterExamId,
|
|
|
+ // moduleId: record.moduleExamId,
|
|
|
+ // examId: record.examId,
|
|
|
+ // recordId: record.recordId,
|
|
|
+ // orderGoodsId: record.orderGoodsId,
|
|
|
+ // })
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|