fix: 修复普通用户也能获取下属部门的数据
This commit is contained in:
parent
cf482841da
commit
39ed03386d
@ -49,6 +49,7 @@ buttons:ResetPassword: Reset Password
|
||||
buttons:RoleAllocation: Role Allocation
|
||||
buttons:PermissionDetails: Permission Details
|
||||
buttons:ForceToExit: Force Exit
|
||||
buttons:DataAdmin: Data Admin
|
||||
search:Total: Total
|
||||
search:History: History
|
||||
search:Collect: Collect
|
||||
|
@ -49,6 +49,7 @@ buttons:RoleAllocation: 角色分配
|
||||
buttons:PermissionDetails: 权限详情
|
||||
buttons:ForceToExit: 强制退出
|
||||
buttons:ExitInBatches: 批量强退
|
||||
buttons:DataAdmin: 数据管理
|
||||
search:Total: 共
|
||||
search:History: 搜索历史
|
||||
search:Collect: 收藏
|
||||
|
@ -94,7 +94,7 @@ const onSubmit = async (formEl: FormInstance) => {
|
||||
>
|
||||
<h3 class="my-8">个人信息</h3>
|
||||
<el-form ref="userInfoFormRef" label-position="top" :model="userInfo">
|
||||
<el-form-item label="头像">
|
||||
<el-form-item label="头像" prop="avatar">
|
||||
<el-avatar
|
||||
:size="80"
|
||||
:src="userInfo.avatar ? `/api/${userInfo.avatar}` : Avatar"
|
||||
@ -114,7 +114,7 @@ const onSubmit = async (formEl: FormInstance) => {
|
||||
</el-button>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
<el-form-item label="账号" prop="userId">
|
||||
<el-form-item label="账号" prop="username">
|
||||
<el-input
|
||||
v-model="userInfo.username"
|
||||
placeholder="请输入账号~"
|
||||
@ -123,7 +123,7 @@ const onSubmit = async (formEl: FormInstance) => {
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="姓名"
|
||||
prop="name"
|
||||
prop="nickname"
|
||||
:rules="[
|
||||
{
|
||||
required: true,
|
||||
|
@ -22,7 +22,11 @@
|
||||
class="!w-[150px]"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属部门:" prop="department_id">
|
||||
<el-form-item
|
||||
v-if="hasAuth('code:btn:admin')"
|
||||
label="所属部门:"
|
||||
prop="department_id"
|
||||
>
|
||||
<el-cascader
|
||||
v-model="form.department_id"
|
||||
class="!w-[150px]"
|
||||
|
Loading…
x
Reference in New Issue
Block a user