Commit a1d1e9b8 authored by chenfenglei's avatar chenfenglei

分页

parent cd5bc272
...@@ -223,7 +223,6 @@ ...@@ -223,7 +223,6 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<page :nowPage="searchFrom.nowPage" :total="searchFrom.total" :limit="searchFrom.limit" @pageChange="onListPageChange" @sizeChange="onListSizeChange"/>
</div> </div>
<el-dialog :modal="false" :visible.sync="addShow"> <el-dialog :modal="false" :visible.sync="addShow">
<el-form label-width="90px"> <el-form label-width="90px">
...@@ -486,9 +485,6 @@ ...@@ -486,9 +485,6 @@
total:0, total:0,
timeLang:[], timeLang:[],
searchFrom: { searchFrom: {
nowPage: 1,
limit: 10,
total:0,
user_id:'', user_id:'',
is_add_teacher: '', is_add_teacher: '',
is_view_course: '', is_view_course: '',
...@@ -651,8 +647,8 @@ ...@@ -651,8 +647,8 @@
}, },
searchList(){ searchList(){
let json = { let json = {
page:this.searchFrom.nowPage, page:1,
limit:this.searchFrom.limit limit:200
}; };
let json2 = {}; let json2 = {};
if(this.timeLang && this.timeLang.length > 1){ if(this.timeLang && this.timeLang.length > 1){
...@@ -710,8 +706,6 @@ ...@@ -710,8 +706,6 @@
is_view_course: '', is_view_course: '',
start_at:'', start_at:'',
end_at:'', end_at:'',
limit:10,
page:1,
}; };
this.statistics={ this.statistics={
...@@ -846,15 +840,6 @@ ...@@ -846,15 +840,6 @@
this.limit = val this.limit = val
this.nowPage = 1; this.nowPage = 1;
this.getUser() this.getUser()
},
onListPageChange(val){
this.searchFrom.nowPage = val
this.searchList()
},
onListSizeChange(val){
this.searchFrom.limit = val
this.searchFrom.nowPage = 1;
this.searchList()
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment