Commit 03141f7d authored by chenfenglei's avatar chenfenglei

所有的订单列表都显示期数名称(日课,月课,用户详情,老师详情)

parent 3c84a14a
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
</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">
...@@ -479,6 +479,9 @@ ...@@ -479,6 +479,9 @@
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: '',
...@@ -533,7 +536,7 @@ ...@@ -533,7 +536,7 @@
}, },
methods:{ methods:{
handleItemChange(value){ handleItemChange(value){
getClassListApi(value[0],{limit:99999}).then(res=>{ getClassListApi(value[0],{limit:200}).then(res=>{
res.list.forEach(i=>{ res.list.forEach(i=>{
i.title = i.class_name i.title = i.class_name
}); });
...@@ -641,7 +644,8 @@ ...@@ -641,7 +644,8 @@
}, },
searchList(){ searchList(){
let json = { let json = {
limit:200 page:this.searchFrom.nowPage,
limit:this.searchFrom.limit
}; };
let json2 = {}; let json2 = {};
if(this.timeLang && this.timeLang.length > 1){ if(this.timeLang && this.timeLang.length > 1){
...@@ -680,6 +684,7 @@ ...@@ -680,6 +684,7 @@
}) })
}); });
getClassUserApi(this.userObj.classId,json).then(res=>{ getClassUserApi(this.userObj.classId,json).then(res=>{
this.searchFrom.total=res.total;
this.userTable = res.list this.userTable = res.list
}); });
this.changeClassObj={ this.changeClassObj={
...@@ -832,6 +837,15 @@ ...@@ -832,6 +837,15 @@
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;
......
...@@ -100,6 +100,10 @@ ...@@ -100,6 +100,10 @@
<template slot-scope="scope"> <template slot-scope="scope">
<img class="avatar" :src="scope.row.user_avatar"/> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})<br>手机:{{scope.row.user_mobile}} <img class="avatar" :src="scope.row.user_avatar"/> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})<br>手机:{{scope.row.user_mobile}}
</template> </template>
</el-table-column>
<el-table-column
prop="periods_title"
label="期数标题">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="goods_name" prop="goods_name"
......
...@@ -65,6 +65,10 @@ ...@@ -65,6 +65,10 @@
<template slot-scope="scope"> <template slot-scope="scope">
<img class="avatar" :src="scope.row.user_avatar" /> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})<br>手机:{{scope.row.user_mobile}} <img class="avatar" :src="scope.row.user_avatar" /> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})<br>手机:{{scope.row.user_mobile}}
</template> </template>
</el-table-column>
<el-table-column
prop="periods_title"
label="期数标题">
</el-table-column> </el-table-column>
<el-table-column prop="goods_name" label="商品名称"> <el-table-column prop="goods_name" label="商品名称">
</el-table-column> </el-table-column>
......
...@@ -187,11 +187,15 @@ ...@@ -187,11 +187,15 @@
<template slot-scope="scope"> <template slot-scope="scope">
<img class="avatar" :src="scope.row.user_avatar"/> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})<br>手机:{{scope.row.user_mobile}} <img class="avatar" :src="scope.row.user_avatar"/> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})<br>手机:{{scope.row.user_mobile}}
</template> </template>
</el-table-column>
<el-table-column
prop="periods_title"
label="期数标题">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="goods_name" prop="goods_name"
label="商品名称"> label="商品名称">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="250" width="250"
prop="invite_id" prop="invite_id"
......
...@@ -175,6 +175,10 @@ ...@@ -175,6 +175,10 @@
<template slot-scope="scope"> <template slot-scope="scope">
<img class="avatar" :src="scope.row.user_avatar"/> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}}) <img class="avatar" :src="scope.row.user_avatar"/> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})
</template> </template>
</el-table-column>
<el-table-column
prop="periods_title"
label="期数标题">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="goods_name" prop="goods_name"
......
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