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