fix: 修复普通用户也能获取下属部门的数据
This commit is contained in:
@@ -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: 收藏
|
||||
|
||||
@@ -73,7 +73,11 @@ const {
|
||||
<el-option label="失败" :value="0" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属部门:" prop="department_id">
|
||||
<el-form-item
|
||||
v-if="hasAuth('login:btn:admin')"
|
||||
label="所属部门:"
|
||||
prop="department_id"
|
||||
>
|
||||
<el-cascader
|
||||
v-model="form.department_id"
|
||||
class="!w-[200px]"
|
||||
|
||||
@@ -159,7 +159,11 @@ const {
|
||||
<el-option label="失败" :value="0" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属部门:" prop="department_id">
|
||||
<el-form-item
|
||||
v-if="hasAuth('operation:btn:admin')"
|
||||
label="所属部门:"
|
||||
prop="department_id"
|
||||
>
|
||||
<el-cascader
|
||||
v-model="form.department_id"
|
||||
class="!w-[200px]"
|
||||
|
||||
@@ -126,7 +126,11 @@ onBeforeRouteUpdate((to, from, next) => {
|
||||
class="!w-[200px]"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属部门:" prop="department_id">
|
||||
<el-form-item
|
||||
v-if="hasAuth('role:btn:admin')"
|
||||
label="所属部门:"
|
||||
prop="department_id"
|
||||
>
|
||||
<el-cascader
|
||||
v-model="form.department_id"
|
||||
class="w-full"
|
||||
|
||||
Reference in New Issue
Block a user