fix: 用户管理不能改自己状态,权限控制分配岗位

This commit is contained in:
TsMask
2024-06-19 14:02:24 +08:00
parent 639a4f0b1f
commit 374a9bde7e

View File

@@ -1330,7 +1330,12 @@ onMounted(() => {
></a-input> ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="12" :md="12" :xs="24"> <a-col
:lg="12"
:md="12"
:xs="24"
v-perms:has="['system:user:editPost']"
>
<a-form-item <a-form-item
:label="t('views.system.user.userWork')" :label="t('views.system.user.userWork')"
name="postIds" name="postIds"
@@ -1394,7 +1399,15 @@ onMounted(() => {
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="12" :md="12" :xs="24"> <a-col
:lg="12"
:md="12"
:xs="24"
v-if="
modalState.from.userId !== '1' &&
modalState.from.userId !== userStore.userId
"
>
<a-form-item :label="t('views.system.user.status')" name="status"> <a-form-item :label="t('views.system.user.status')" name="status">
<a-select <a-select
v-model:value="modalState.from.status" v-model:value="modalState.from.status"