|
@@ -2,6 +2,7 @@
|
|
|
<div class="bank-record">
|
|
|
<div class="bank-record__header">
|
|
|
<div class="title">模考记录</div>
|
|
|
+
|
|
|
<!-- <div class="content">
|
|
|
<el-select
|
|
|
clearable
|
|
@@ -33,73 +34,85 @@
|
|
|
</el-select>
|
|
|
</div> -->
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="bank-record__body">
|
|
|
- <div class="bank-item" v-for="(record, index) in recordList" :key="index">
|
|
|
- <div class="bank-item__header">
|
|
|
- <div class="note" v-if="record.paperName">{{ record.paperName }}</div>
|
|
|
- {{ record.examName }}
|
|
|
- </div>
|
|
|
- <div class="bank-item__body">
|
|
|
- <div class="list">
|
|
|
- <div class="exam-item">
|
|
|
- <div class="exam-item__body">
|
|
|
- <div class="text">
|
|
|
- <span class="title">{{
|
|
|
- $tools.timestampToTime(record.updateTime, false)
|
|
|
- }}</span>
|
|
|
- <span class="desc"
|
|
|
- >总{{ record.totalQuestionNum }}题/对{{
|
|
|
- record.rightQuestionNum
|
|
|
- }}题</span
|
|
|
- >
|
|
|
- </div>
|
|
|
- <div class="btns-wrap">
|
|
|
- <div class="btns">
|
|
|
- <div class="btn-line">
|
|
|
- <div class="btn-line__in" @click="doRepeat(record)" v-if="false">
|
|
|
- <div>重新做题</div>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- class="btn-line__in"
|
|
|
- @click="
|
|
|
- go('/mock-exam-all-explain/' + record.recordId, {
|
|
|
- examId: record.examId,
|
|
|
- simulateStatus: record.doMode === 3 ? 1 : 0,
|
|
|
- })
|
|
|
- "
|
|
|
- >
|
|
|
- <div>解析</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div
|
|
|
- class="btn-line__in"
|
|
|
- @click="
|
|
|
- go('/mock-report', {
|
|
|
- subscribeId: record.subscribeId,
|
|
|
- eachExamId: record.eachExamId,
|
|
|
- examId: record.examId,
|
|
|
- recordId: record.recordId,
|
|
|
- })
|
|
|
- "
|
|
|
- >
|
|
|
- <div>做题报告</div>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-if="false"
|
|
|
- class="btn-line__in"
|
|
|
- @click="
|
|
|
- go(
|
|
|
- '/person-center/mock-record-list/' + record.goodsId,
|
|
|
- {
|
|
|
+ <div class="play-record__body" v-if="total > 0">
|
|
|
+ <div class="bank-record__body">
|
|
|
+ <div
|
|
|
+ class="bank-item"
|
|
|
+ v-for="(record, index) in recordList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <div class="bank-item__header">
|
|
|
+ <div class="note" v-if="record.paperName">
|
|
|
+ {{ record.paperName }}
|
|
|
+ </div>
|
|
|
+ {{ record.examName }}
|
|
|
+ </div>
|
|
|
+ <div class="bank-item__body">
|
|
|
+ <div class="list">
|
|
|
+ <div class="exam-item">
|
|
|
+ <div class="exam-item__body">
|
|
|
+ <div class="text">
|
|
|
+ <span class="title">{{
|
|
|
+ $tools.timestampToTime(record.updateTime, false)
|
|
|
+ }}</span>
|
|
|
+ <span class="desc"
|
|
|
+ >总{{ record.totalQuestionNum }}题/对{{
|
|
|
+ record.rightQuestionNum
|
|
|
+ }}题</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="btns-wrap">
|
|
|
+ <div class="btns">
|
|
|
+ <div class="btn-line">
|
|
|
+ <div
|
|
|
+ class="btn-line__in"
|
|
|
+ @click="doRepeat(record)"
|
|
|
+ v-if="false"
|
|
|
+ >
|
|
|
+ <div>重新做题</div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="btn-line__in"
|
|
|
+ @click="
|
|
|
+ go('/mock-exam-all-explain/' + record.recordId, {
|
|
|
examId: record.examId,
|
|
|
- recordId: record.recordId,
|
|
|
+ simulateStatus: record.doMode === 3 ? 1 : 0
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div>解析</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div
|
|
|
+ class="btn-line__in"
|
|
|
+ @click="
|
|
|
+ go('/mock-report', {
|
|
|
+ subscribeId: record.subscribeId,
|
|
|
eachExamId: record.eachExamId,
|
|
|
- }
|
|
|
- )
|
|
|
- "
|
|
|
- >
|
|
|
- <div>更多记录</div>
|
|
|
+ examId: record.examId,
|
|
|
+ recordId: record.recordId
|
|
|
+ })
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div>做题报告</div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="false"
|
|
|
+ class="btn-line__in"
|
|
|
+ @click="
|
|
|
+ go(
|
|
|
+ '/person-center/mock-record-list/' +
|
|
|
+ record.goodsId,
|
|
|
+ {
|
|
|
+ examId: record.examId,
|
|
|
+ recordId: record.recordId,
|
|
|
+ eachExamId: record.eachExamId
|
|
|
+ }
|
|
|
+ )
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div>更多记录</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -109,21 +122,22 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="bank-record__footer">
|
|
|
- <div class="pagination">
|
|
|
- <el-pagination
|
|
|
- @current-change="currentChange"
|
|
|
- background
|
|
|
- layout="prev, pager, next"
|
|
|
- :total="total"
|
|
|
- :pager-count="5"
|
|
|
- :page-size="param.pageSize"
|
|
|
- >
|
|
|
- </el-pagination>
|
|
|
+ <div class="bank-record__footer">
|
|
|
+ <div class="pagination">
|
|
|
+ <el-pagination
|
|
|
+ @current-change="currentChange"
|
|
|
+ background
|
|
|
+ layout="prev, pager, next"
|
|
|
+ :total="total"
|
|
|
+ :pager-count="5"
|
|
|
+ :page-size="param.pageSize"
|
|
|
+ >
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-empty description="暂无模考记录" v-else></el-empty>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -138,10 +152,10 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
goodsId: "",
|
|
|
- paperId: "",
|
|
|
+ paperId: ""
|
|
|
},
|
|
|
recordList: [],
|
|
|
- total: 0,
|
|
|
+ total: 0
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -155,28 +169,28 @@ export default {
|
|
|
this.mockRecordGroupList();
|
|
|
},
|
|
|
examaperList() {
|
|
|
- this.$request.examaperList().then((res) => {
|
|
|
+ this.$request.examaperList().then(res => {
|
|
|
this.list1 = res.rows;
|
|
|
this.list1.unshift({
|
|
|
paperId: "",
|
|
|
- paperName: "全部试卷类型",
|
|
|
+ paperName: "全部试卷类型"
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
|
|
|
listGoodsUserQuestion() {
|
|
|
- this.$request.listGoodsUserQuestion().then((res) => {
|
|
|
+ this.$request.listGoodsUserQuestion().then(res => {
|
|
|
this.list = res.rows;
|
|
|
this.list.unshift({
|
|
|
goodsId: "",
|
|
|
- goodsName: "全部题库记录",
|
|
|
+ goodsName: "全部题库记录"
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
go(path, query) {
|
|
|
this.$router.push({
|
|
|
path,
|
|
|
- query,
|
|
|
+ query
|
|
|
});
|
|
|
},
|
|
|
currentChange(e) {
|
|
@@ -184,7 +198,7 @@ export default {
|
|
|
this.mockRecordGroupList();
|
|
|
},
|
|
|
mockRecordGroupList() {
|
|
|
- this.$request.mockRecordGroupList(this.param).then((res) => {
|
|
|
+ this.$request.mockRecordGroupList(this.param).then(res => {
|
|
|
this.recordList = res.rows;
|
|
|
this.total = res.total;
|
|
|
});
|
|
@@ -198,8 +212,8 @@ export default {
|
|
|
eachExamId: section.eachExamId,
|
|
|
subscribeId: section.subscribeId,
|
|
|
goodsId: section.goodsId,
|
|
|
- orderGoodsId: section.orderGoodsId,
|
|
|
- },
|
|
|
+ orderGoodsId: section.orderGoodsId
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
return;
|
|
@@ -209,7 +223,7 @@ export default {
|
|
|
if (answerNum > 0 && count >= answerNum) {
|
|
|
this.$message({
|
|
|
type: "warning",
|
|
|
- message: "该试卷只能答题" + answerNum + "次!",
|
|
|
+ message: "该试卷只能答题" + answerNum + "次!"
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
@@ -220,20 +234,20 @@ export default {
|
|
|
closeOnClickModal: false,
|
|
|
closeOnPressEscape: false,
|
|
|
distinguishCancelAndClose: false,
|
|
|
- showClose: false,
|
|
|
+ showClose: false
|
|
|
})
|
|
|
- .then((_) => {
|
|
|
+ .then(_ => {
|
|
|
this.$router.push({
|
|
|
path: "/bank-exam/" + section.goodsId,
|
|
|
query: {
|
|
|
orderGoodsId: section.orderGoodsId,
|
|
|
examId: section.examId,
|
|
|
moduleId: section.moduleExamId || 0,
|
|
|
- chapterId: section.chapterExamId || 0,
|
|
|
- },
|
|
|
+ chapterId: section.chapterExamId || 0
|
|
|
+ }
|
|
|
});
|
|
|
})
|
|
|
- .catch((_) => {
|
|
|
+ .catch(_ => {
|
|
|
this.$router.push({
|
|
|
path: "/bank-exam-all-explain/" + section.recordId,
|
|
|
query: {
|
|
@@ -241,8 +255,8 @@ export default {
|
|
|
moduleId: section.moduleExamId || 0,
|
|
|
chapterId: section.chapterExamId || 0,
|
|
|
goodsId: section.goodsId,
|
|
|
- orderGoodsId: section.orderGoodsId,
|
|
|
- },
|
|
|
+ orderGoodsId: section.orderGoodsId
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
},
|
|
@@ -251,13 +265,13 @@ export default {
|
|
|
* 查询试卷历史做题次数
|
|
|
*/
|
|
|
examRecordCount(examId) {
|
|
|
- return new Promise((resolve) => {
|
|
|
+ return new Promise(resolve => {
|
|
|
this.$request
|
|
|
.examRecordCount({
|
|
|
examId: examId,
|
|
|
- goodsId: this.id,
|
|
|
+ goodsId: this.id
|
|
|
})
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
resolve(res.data);
|
|
|
});
|
|
|
});
|
|
@@ -267,13 +281,13 @@ export default {
|
|
|
* 获取试卷可以做的次数
|
|
|
*/
|
|
|
getExamDetail(exam_id) {
|
|
|
- return new Promise((resolve) => {
|
|
|
- this.$request.getExamDetail(exam_id).then((res) => {
|
|
|
+ return new Promise(resolve => {
|
|
|
+ this.$request.getExamDetail(exam_id).then(res => {
|
|
|
resolve(res.data.answerNum);
|
|
|
});
|
|
|
});
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|