Commit 40d5963e authored by chenfenglei's avatar chenfenglei

parent d392ab5c
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
</el-table-column> </el-table-column>
<el-table-column label="用户" className="f-c" width="150" sortable prop="user_id"> <el-table-column label="用户" className="f-c" width="150" sortable prop="user_id">
<template slot-scope="scope"> <template slot-scope="scope">
<img :src="scope.row.avatar" style="width: 40px;height: 40px;border-radius: 50px"> {{scope.row.nickname}}(ID:{{scope.row.user_id}}) <img :src="scope.row.avatar" style="width: 40px;min-width:40px;height: 40px;border-radius: 50px"> {{scope.row.nickname}}(ID:{{scope.row.user_id}})
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -207,13 +207,20 @@ ...@@ -207,13 +207,20 @@
{{ scope.row.weight}} {{ scope.row.weight}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="320" fixed="right"> <el-table-column label="操作" width="120" fixed="right" v-if="!$store.state.readonly">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="warning" size="mini" @click="editPrivilege(scope.row)">编辑</el-button> <el-popover
<el-button type="primary" size="mini" @click="onGetUserDescList(scope.row)">备注</el-button> placement="top"
<el-button type="primary" size="mini" @click="userLook(scope.row)" v-if="!$store.state.readonly">看课情况</el-button> width="400">
<el-button type="danger" size="mini" @click="onDel(scope.row)" v-if="$store.state.deletePermission && !$store.state.readonly">删除</el-button> <div style="text-align: center">
</template> <el-button type="warning" size="mini" plain @click="editPrivilege(scope.row)">编辑</el-button>
<el-button type="primary" size="mini" plain @click="onGetUserDescList(scope.row)">备注</el-button>
<el-button type="primary" size="mini" plain @click="userLook(scope.row)" v-if="!$store.state.readonly">看课情况</el-button>
<el-button type="danger" size="mini" plain @click="onDel(scope.row)" v-if="$store.state.deletePermission && !$store.state.readonly">删除</el-button>
</div>
<el-button slot="reference" size="mini" type="text" >操作</el-button>
</el-popover>
</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"/> <page :nowPage="searchFrom.nowPage" :total="searchFrom.total" :limit="searchFrom.limit" @pageChange="onListPageChange" @sizeChange="onListSizeChange"/>
...@@ -685,7 +692,7 @@ ...@@ -685,7 +692,7 @@
}); });
getClassUserApi(this.userObj.classId,json).then(res=>{ getClassUserApi(this.userObj.classId,json).then(res=>{
this.searchFrom.total=res.total; this.searchFrom.total=res.total;
this.userTable = res.list this.userTable = res.list;
}); });
this.changeClassObj={ this.changeClassObj={
show:false, show:false,
...@@ -698,11 +705,13 @@ ...@@ -698,11 +705,13 @@
}, },
initPage(){ initPage(){
this.searchFrom = { this.searchFrom = {
user_id:'', user_id:'',
is_add_teacher: '', is_add_teacher: '',
is_view_course: '', is_view_course: '',
start_at:'', start_at:'',
end_at:'' end_at:'',
limit:10,
page:1,
}; };
this.statistics={ this.statistics={
......
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