Commit ee08f55c authored by chenfenglei's avatar chenfenglei

商品列表显示商品编号,解决分页失效

parent 287fa8e9
......@@ -60,10 +60,10 @@
<el-table
:data="userList"
style="width: 100%">
<!--<el-table-column-->
<!--prop="id"-->
<!--label="商品ID">-->
<!--</el-table-column>-->
<el-table-column
prop="id"
label="商品ID">
</el-table-column>
<el-table-column
prop="name"
label="名称">
......@@ -364,6 +364,7 @@
}
});
this.userList = res.list;
console.log(this.userList)
this.total = res.total
})
},
......
......@@ -209,6 +209,7 @@
page: 1
}
getLessonApi(json).then(res=>{
console.log(res)
this.classList = res.list;
})
},
......
......@@ -282,7 +282,7 @@ import chooseGoodDialog from './chooseGoodDialog'
getUser(){
let json = {
page: this.nowPage,
limit: 5
limit: this.limit,
};
if (this.searchFrom.userId) {
json.user_id = this.searchFrom.userId
......@@ -322,13 +322,15 @@ import chooseGoodDialog from './chooseGoodDialog'
}
},
onPageChange(val){
this.nowPage = val
this.getTeacherDetail()
this.nowPage = val;
this.getTeacherDetail();
this.getUser()
},
onSizeChange(val){
this.nowPage = 1
this.limit = val;
this.getTeacherDetail()
this.nowPage = 1;
this.getTeacherDetail();
this.getUser();
},
getTeacherDetail(){
this.searchFrom = {
......@@ -358,7 +360,7 @@ import chooseGoodDialog from './chooseGoodDialog'
this.list = res.class_list.list || [];
this.total = res.class_list.total;
}
this.detail = res;
this.detail = res;
})
},
createInviteLink(id){
......
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