|
@@ -419,12 +419,14 @@ export default {
|
|
|
this.searchImportPaper();
|
|
|
},
|
|
|
searchImportPaper() {
|
|
|
+ var pageNo = Number(this.currentPage);
|
|
|
+ this.currentPage = 1;
|
|
|
this.loading = true;
|
|
|
- var url =
|
|
|
- QUESTION_API + "/importPaper/" + this.currentPage + "/" + this.pageSize;
|
|
|
+ var url = QUESTION_API + "/importPaper/" + pageNo + "/" + this.pageSize;
|
|
|
this.$http.get(url, { params: this.formSearch }).then(response => {
|
|
|
this.tableData = response.data.content;
|
|
|
this.total = response.data.totalElements;
|
|
|
+ this.currentPage = pageNo;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
@@ -774,6 +776,7 @@ export default {
|
|
|
level: "",
|
|
|
name: ""
|
|
|
};
|
|
|
+ this.currentPage = 1;
|
|
|
} else {
|
|
|
this.formSearch = JSON.parse(sessionStorage.getItem("import_paper"));
|
|
|
this.currentPage =
|
|
@@ -784,7 +787,7 @@ export default {
|
|
|
if (this.formSearch.courseName) {
|
|
|
this.getCourses(this.formSearch.courseName);
|
|
|
}
|
|
|
- this.searchImportPaper();
|
|
|
+ this.handleCurrentChange(this.currentPage);
|
|
|
}
|
|
|
},
|
|
|
computed: {
|