|
|
@@ -46,6 +46,7 @@ |
|
|
|
<el-table-column type="index" :index="index" label="编号" width="60" align="center" fixed="left" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="username" label="用户账号" sortable="custom" show-overflow-tooltip min-width="110"/> |
|
|
|
<el-table-column prop="realname" label="用户姓名" sortable="custom" show-overflow-tooltip min-width="110"/> |
|
|
|
<el-table-column prop="nickname" label="用户姓名" sortable="custom" show-overflow-tooltip min-width="110"/> |
|
|
|
<el-table-column label="头像" min-width="60" align="center"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<el-avatar shape="square" :size="35" :src="row.avatar"/> |
|
|
@@ -110,11 +111,14 @@ |
|
|
|
<el-option v-for="item in levelList" :key="item.id" :label="item.name" :value="item.id"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="部门:" prop="deptId"> |
|
|
|
<el-form-item label="部门:" prop="deptId"> |
|
|
|
<el-select filterable clearable v-model="editForm.deptId" size="small" placeholder="-请选择部门-"> |
|
|
|
<el-option v-for="(item,index) in departmentsList" :key="index" :label="item.name" :value="item.id"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="用户昵称:" prop="nickname"> |
|
|
|
<el-input v-model="editForm.nickname" placeholder="请输入用户昵称" size="small"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :sm="12"> |
|
|
|
<el-form-item label="手机号:"> |
|
|
@@ -134,7 +138,7 @@ |
|
|
|
<el-form-item label="登录密码:" prop="password" v-if="!editForm.id"> |
|
|
|
<el-input v-model="editForm.password" placeholder="请输入登录密码" show-password/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="角色:" prop="roleIds"> |
|
|
|
<el-form-item label="角色:" prop="roleIds"> |
|
|
|
<el-select v-model="editForm.roleIds" placeholder="请选择角色" class="ele-block" clearable multiple> |
|
|
|
<el-option v-for="(item,index) in roleList" :key="index" :label="item.name" :value="item.id"/> |
|
|
|
</el-select> |
|
|
@@ -178,6 +182,9 @@ export default { |
|
|
|
], |
|
|
|
password: [ |
|
|
|
{required: true, message: '请输入密码', trigger: 'blur'} |
|
|
|
], |
|
|
|
nickname:[ |
|
|
|
{required:true,message:"请输入用户昵称",trigger:"blur"} |
|
|
|
] |
|
|
|
}, |
|
|
|
updDir: 'user', |