fix: 第三方用户不可删除和修改密码
This commit is contained in:
@@ -1055,10 +1055,7 @@ onMounted(() => {
|
||||
</template>
|
||||
<template v-if="column.key === 'userType'">
|
||||
<DictTag :options="dict.sysUserType" :value="record.userType" />
|
||||
<a-tag
|
||||
:bordered="false"
|
||||
v-if="record.userSource != '#'"
|
||||
>
|
||||
<a-tag :bordered="false" v-if="record.userSource != '#'">
|
||||
{{ record.userSource }}
|
||||
</a-tag>
|
||||
</template>
|
||||
@@ -1109,7 +1106,9 @@ onMounted(() => {
|
||||
</a-tooltip>
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
v-if="record.userId != userStore.userId"
|
||||
v-if="
|
||||
record.userId != userStore.userId && record.userSource == '#'
|
||||
"
|
||||
>
|
||||
<template #title>{{ t('common.deleteText') }}</template>
|
||||
<a-button
|
||||
@@ -1122,7 +1121,9 @@ onMounted(() => {
|
||||
</a-tooltip>
|
||||
<a-tooltip
|
||||
placement="topLeft"
|
||||
v-if="record.userId != userStore.userId"
|
||||
v-if="
|
||||
record.userId != userStore.userId && record.userSource == '#'
|
||||
"
|
||||
>
|
||||
<template #title>
|
||||
{{ t('views.system.user.resetPwd') }}
|
||||
|
||||
Reference in New Issue
Block a user