Commit a1d1e9b8 authored by chenfenglei's avatar chenfenglei

分页

parent cd5bc272
......@@ -223,7 +223,6 @@
</template>
</el-table-column>
</el-table>
<page :nowPage="searchFrom.nowPage" :total="searchFrom.total" :limit="searchFrom.limit" @pageChange="onListPageChange" @sizeChange="onListSizeChange"/>
</div>
<el-dialog :modal="false" :visible.sync="addShow">
<el-form label-width="90px">
......@@ -486,9 +485,6 @@
total:0,
timeLang:[],
searchFrom: {
nowPage: 1,
limit: 10,
total:0,
user_id:'',
is_add_teacher: '',
is_view_course: '',
......@@ -651,8 +647,8 @@
},
searchList(){
let json = {
page:this.searchFrom.nowPage,
limit:this.searchFrom.limit
page:1,
limit:200
};
let json2 = {};
if(this.timeLang && this.timeLang.length > 1){
......@@ -710,8 +706,6 @@
is_view_course: '',
start_at:'',
end_at:'',
limit:10,
page:1,
};
this.statistics={
......@@ -846,15 +840,6 @@
this.limit = val
this.nowPage = 1;
this.getUser()
},
onListPageChange(val){
this.searchFrom.nowPage = val
this.searchList()
},
onListSizeChange(val){
this.searchFrom.limit = val
this.searchFrom.nowPage = 1;
this.searchList()
},
handleSelectionChange(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