Commit 7d221515 authored by 王's avatar

用户详情中添加班级成员

parent aa3540de
......@@ -149,6 +149,14 @@
prop="created_at"
label="创建时间">
</el-table-column>
<el-table-column
label="操作">
<template slot-scope="scope">
<el-button @click="showUser(scope.row)" size="mini" plain type="primary">
班级成员
</el-button>
</template>
</el-table-column>
</el-table>
<div class="b-title">订单列表</div>
<el-table
......@@ -243,6 +251,7 @@
</el-table>
<page :total="total" :limit="limit" @pageChange="onPageChange"/>
<teacher-dialog :dialogObj="dialogObj" @reflash="getDetail"></teacher-dialog>
<user-list :userObj="userObj"/>
</div>
</template>
......@@ -251,6 +260,7 @@
import page from '../framework/page'
import {INVITETYPE,ORDERSTATUS,BUYTYPE} from "../../util/wordbook";
import teacherDialog from './dialog'
import UserList from '../class/userList'
export default {
name: "index",
data(){
......@@ -268,12 +278,18 @@
id:0,
teacher_id: 0
},
list: []
list: [],
userObj:{
classId:'',
title:'',
show:false,
}
}
},
components:{
page,
teacherDialog
teacherDialog,
UserList
},
mounted(){
this.id = this.$route.params.id;
......@@ -340,6 +356,13 @@
id:data.user_id,
teacher_id: data.teacher_id
}
},
showUser(data){
this.userObj={
classId:data.class_id,
show:true,
title:`${data.teacher_name}班级用户列表`
}
}
},
filters:{
......
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