fix: 修复普通用户也能获取下属部门的数据
This commit is contained in:
parent
4687f9dd31
commit
cf482841da
@ -63,8 +63,8 @@ const { title, getDropdownItemStyle, getDropdownItemClass } = useNav();
|
||||
const { locale, translationCh, translationEn } = useTranslationLang();
|
||||
|
||||
const ruleForm = reactive({
|
||||
username: "admin",
|
||||
password: "admin123",
|
||||
username: "",
|
||||
password: "",
|
||||
verifyCode: ""
|
||||
});
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user