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 { locale, translationCh, translationEn } = useTranslationLang();
|
||||||
|
|
||||||
const ruleForm = reactive({
|
const ruleForm = reactive({
|
||||||
username: "admin",
|
username: "",
|
||||||
password: "admin123",
|
password: "",
|
||||||
verifyCode: ""
|
verifyCode: ""
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -73,7 +73,11 @@ const {
|
|||||||
<el-option label="失败" :value="0" />
|
<el-option label="失败" :value="0" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</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
|
<el-cascader
|
||||||
v-model="form.department_id"
|
v-model="form.department_id"
|
||||||
class="!w-[200px]"
|
class="!w-[200px]"
|
||||||
|
@ -159,7 +159,11 @@ const {
|
|||||||
<el-option label="失败" :value="0" />
|
<el-option label="失败" :value="0" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</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
|
<el-cascader
|
||||||
v-model="form.department_id"
|
v-model="form.department_id"
|
||||||
class="!w-[200px]"
|
class="!w-[200px]"
|
||||||
|
@ -126,7 +126,11 @@ onBeforeRouteUpdate((to, from, next) => {
|
|||||||
class="!w-[200px]"
|
class="!w-[200px]"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</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
|
<el-cascader
|
||||||
v-model="form.department_id"
|
v-model="form.department_id"
|
||||||
class="w-full"
|
class="w-full"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user