|
@@ -157,7 +157,7 @@
|
|
|
<div class="page pull-right">
|
|
|
<el-pagination
|
|
|
@current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
+ :current-page.sync="currentPage"
|
|
|
:page-size="pageSize"
|
|
|
:page-sizes="[10, 20, 50, 100]"
|
|
|
@size-change="handleSizeChange"
|
|
@@ -265,6 +265,8 @@ export default {
|
|
|
this.searchCourProperty();
|
|
|
},
|
|
|
searchCourProperty() {
|
|
|
+ console.log("page:", this.currentPage);
|
|
|
+ var pageNo = Number(this.currentPage);
|
|
|
this.loading = true;
|
|
|
var url =
|
|
|
QUESTION_API +
|
|
@@ -275,6 +277,7 @@ export default {
|
|
|
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;
|
|
|
});
|
|
|
},
|
|
@@ -480,6 +483,7 @@ export default {
|
|
|
},
|
|
|
//页面回填值
|
|
|
initValue() {
|
|
|
+ var pageNo = "";
|
|
|
this.isClear = this.$route.params.isClear;
|
|
|
if (this.isClear == 0 || !this.isClear) {
|
|
|
this.removeItem();
|
|
@@ -502,7 +506,8 @@ export default {
|
|
|
: parseInt(sessionStorage.getItem("course_property_currentPage"));
|
|
|
}
|
|
|
this.getOneCourse(this.formSearch.courseId);
|
|
|
- this.searchCourProperty();
|
|
|
+ var pageNo = Number(this.currentPage);
|
|
|
+ this.handleCurrentChange(pageNo);
|
|
|
},
|
|
|
//查询单个课程
|
|
|
getOneCourse(courseId) {
|