|
|
@ -26,7 +26,7 @@ import { |
|
|
PlusOutlined, |
|
|
PlusOutlined, |
|
|
UnlockOutlined, |
|
|
UnlockOutlined, |
|
|
} from '@ant-design/icons-vue'; |
|
|
} from '@ant-design/icons-vue'; |
|
|
import { Button, Dropdown, Menu, message, Modal } from 'ant-design-vue'; |
|
|
import { Button, Dropdown, Menu, message, Modal, Tag } from 'ant-design-vue'; |
|
|
|
|
|
|
|
|
import { useUsersApi } from '../../api/useUsersApi'; |
|
|
import { useUsersApi } from '../../api/useUsersApi'; |
|
|
import { |
|
|
import { |
|
|
@ -104,13 +104,20 @@ const gridOptions: VxeGridProps<IdentityUserDto> = { |
|
|
title: $t('AbpIdentity.DisplayName:UserName'), |
|
|
title: $t('AbpIdentity.DisplayName:UserName'), |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
|
|
|
align: 'left', |
|
|
field: 'email', |
|
|
field: 'email', |
|
|
minWidth: '120px', |
|
|
minWidth: '120px', |
|
|
|
|
|
slots: { default: 'email' }, |
|
|
title: $t('AbpIdentity.DisplayName:Email'), |
|
|
title: $t('AbpIdentity.DisplayName:Email'), |
|
|
}, |
|
|
}, |
|
|
{ field: 'surname', title: $t('AbpIdentity.DisplayName:Surname') }, |
|
|
{ field: 'surname', title: $t('AbpIdentity.DisplayName:Surname') }, |
|
|
{ field: 'name', title: $t('AbpIdentity.DisplayName:Name') }, |
|
|
{ field: 'name', title: $t('AbpIdentity.DisplayName:Name') }, |
|
|
{ field: 'phoneNumber', title: $t('AbpIdentity.DisplayName:PhoneNumber') }, |
|
|
{ |
|
|
|
|
|
align: 'left', |
|
|
|
|
|
field: 'phoneNumber', |
|
|
|
|
|
slots: { default: 'phoneNumber' }, |
|
|
|
|
|
title: $t('AbpIdentity.DisplayName:PhoneNumber'), |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'lockoutEnd', |
|
|
field: 'lockoutEnd', |
|
|
formatter: ({ cellValue }) => { |
|
|
formatter: ({ cellValue }) => { |
|
|
@ -295,6 +302,30 @@ const handleMenuClick = async (row: IdentityUserDto, info: MenuInfo) => { |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
<template #email="{ row }"> |
|
|
|
|
|
<div class="flex flex-row"> |
|
|
|
|
|
<Tag v-if="row.emailConfirmed" color="success"> |
|
|
|
|
|
{{ $t('abp.account.settings.security.verified') }} |
|
|
|
|
|
</Tag> |
|
|
|
|
|
<Tag v-else color="warning"> |
|
|
|
|
|
{{ $t('abp.account.settings.security.unVerified') }} |
|
|
|
|
|
</Tag> |
|
|
|
|
|
<span>{{ row.email }}</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template #phoneNumber="{ row }"> |
|
|
|
|
|
<div class="flex flex-row"> |
|
|
|
|
|
<div v-if="row.phoneNumber"> |
|
|
|
|
|
<Tag v-if="row.phoneNumberConfirmed" color="success"> |
|
|
|
|
|
{{ $t('abp.account.settings.security.verified') }} |
|
|
|
|
|
</Tag> |
|
|
|
|
|
<Tag v-else color="warning"> |
|
|
|
|
|
{{ $t('abp.account.settings.security.unVerified') }} |
|
|
|
|
|
</Tag> |
|
|
|
|
|
</div> |
|
|
|
|
|
<span>{{ row.phoneNumber }}</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
<template #action="{ row }"> |
|
|
<template #action="{ row }"> |
|
|
<div class="flex flex-row"> |
|
|
<div class="flex flex-row"> |
|
|
<div class="basis-1/3"> |
|
|
<div class="basis-1/3"> |
|
|
|