|
@@ -57,7 +57,7 @@
|
|
|
|
|
|
|
|
<div class="search_content">
|
|
<div class="search_content">
|
|
|
<div class="content_left">
|
|
<div class="content_left">
|
|
|
- <span class="left_title">错题详情</span> <span>共{{questionList.length}}道题</span>
|
|
|
|
|
|
|
+ <span class="left_title">错题详情</span> <span>共{{pageInfo.total}}道题</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="content_right">
|
|
<div class="content_right">
|
|
|
<el-button type="primary" @click="ExportPDF()">导出PDF</el-button>
|
|
<el-button type="primary" @click="ExportPDF()">导出PDF</el-button>
|
|
@@ -201,7 +201,7 @@ export default {
|
|
|
mockTreeData:[],//知识点树形数据
|
|
mockTreeData:[],//知识点树形数据
|
|
|
pageInfo: {
|
|
pageInfo: {
|
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
|
- pageSize: 10,
|
|
|
|
|
|
|
+ pageSize: 3,
|
|
|
total: 0
|
|
total: 0
|
|
|
},
|
|
},
|
|
|
loading:false,//加载中
|
|
loading:false,//加载中
|
|
@@ -283,7 +283,7 @@ export default {
|
|
|
//题目编号索引
|
|
//题目编号索引
|
|
|
GetQuestionIndex(index)
|
|
GetQuestionIndex(index)
|
|
|
{
|
|
{
|
|
|
- return (this.pageInfo.pageNum-1)*10+index+1;
|
|
|
|
|
|
|
+ return (this.pageInfo.pageNum-1)*this.pageInfo.pageSize+index+1;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
//导出错题本pdf
|
|
//导出错题本pdf
|
|
@@ -292,9 +292,11 @@ export default {
|
|
|
this.$message.warning('功能开发中,敬请期待');
|
|
this.$message.warning('功能开发中,敬请期待');
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- ChangePage()
|
|
|
|
|
|
|
+ //分页切换
|
|
|
|
|
+ ChangePage(val)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
|
|
+ this.pageInfo.pageNum=val;
|
|
|
|
|
+ this.GetQuestionList();//获取错题列表
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -356,8 +358,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
let params={
|
|
let params={
|
|
|
pageParam: {
|
|
pageParam: {
|
|
|
- pageNum: 1,
|
|
|
|
|
- pageSize: 10
|
|
|
|
|
|
|
+ pageNum: this.pageInfo.pageNum,
|
|
|
|
|
+ pageSize: this.pageInfo.pageSize,
|
|
|
},
|
|
},
|
|
|
knowledgeIds: this.knowledgeIds,
|
|
knowledgeIds: this.knowledgeIds,
|
|
|
courseCode: this.subjectCode,
|
|
courseCode: this.subjectCode,
|
|
@@ -433,6 +435,7 @@ export default {
|
|
|
if(this.mockTreeData.length==0)
|
|
if(this.mockTreeData.length==0)
|
|
|
{
|
|
{
|
|
|
this.questionList=[];
|
|
this.questionList=[];
|
|
|
|
|
+ this.pageInfo.total=0;
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|