File was renamed from src/views/systemSetting/baseSetting/user/userList/index.vue |
| | |
| | | <el-input placeholder="请输入内容"></el-input> |
| | | </div> |
| | | <div class="addUser"> |
| | | <el-button type="primary">添加用户</el-button> |
| | | <el-button type="primary" @click="dialogVisible = true">添加用户</el-button> |
| | | <el-dialog :visible.sync="dialogVisible" width="45%"> |
| | | <createUser /> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | </header> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="operation" label="操作" width="246"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini">编辑</el-button> |
| | | <el-button size="mini" type="danger">删除</el-button> |
| | | <div class="operation"> |
| | | <span>修改角色</span> |
| | | <span>查看</span> |
| | | <span>修改密码</span> |
| | | <span>删除</span> |
| | | <span>修改部门</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import createUser from "./createUser" |
| | | export default { |
| | | components:{ |
| | | createUser |
| | | }, |
| | | data() { |
| | | return { |
| | | tableData: [ |
| | |
| | | role: '超级管理员', |
| | | is_open: true, |
| | | } |
| | | ] |
| | | ], |
| | | dialogVisible:false, |
| | | } |
| | | }, |
| | | created(){ |
| | | // 获取当前用户登录信息 |
| | | this.$axios.get( |
| | | 'sccg/admin/info' |
| | | ).then(res=>{ |
| | | console.log(res); |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |
| | |
| | | background-color: #fff; |
| | | margin-top: 20px; |
| | | padding: 0 10px; |
| | | |
| | | padding-bottom: 50px; |
| | | .mainTitle { |
| | | line-height: 60px; |
| | | } |
| | | .el-table{ |
| | | |
| | | .el-table { |
| | | font-size: 10px; |
| | | |
| | | .operation { |
| | | display: flex; |
| | | justify-content: space-around; |
| | | color: #0079fe; |
| | | |
| | | span:hover { |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |