Commit ee08f55c authored by chenfenglei's avatar chenfenglei

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

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