@@ -40,11 +40,14 @@
|
||||
<div class="user-details__grid">
|
||||
<LineInfoBlock
|
||||
title="تاریخ تولد"
|
||||
:numeric-desc="user.faBirthDate || formatJalaaliDate(user.birthDate) || '—'"
|
||||
:numeric-desc="formatJalaaliDate(user.birthday) || '—'"
|
||||
/>
|
||||
<LineInfoBlock title="شماره تماس" :numeric-desc="user.phoneNumber || '—'" />
|
||||
<LineInfoBlock title="شماره تماس" :numeric-desc="user.phone || '—'" />
|
||||
<LineInfoBlock title="کد ملی" :numeric-desc="user.nationalCode || '—'" />
|
||||
<LineInfoBlock title="وضعیت تاهل" :desc="MARITAL_STATUS[user.maritalStatus] || '—'" />
|
||||
<LineInfoBlock
|
||||
title="وضعیت تاهل"
|
||||
:desc="MARITAL_STATUS[user.marriageStatus] || '—'"
|
||||
/>
|
||||
<LineInfoBlock title="جنسیت" :desc="GENDER[user.gender] || '—'" />
|
||||
<LineInfoBlock title="استان" :desc="user?.province?.name || '—'" />
|
||||
<LineInfoBlock title="شهر" :desc="user?.city?.name || '—'" />
|
||||
@@ -122,9 +125,7 @@ const { data: user, isLoading } = useAdminUserQuery(userId, {
|
||||
enabled: () => !!userId.value,
|
||||
})
|
||||
|
||||
const fullName = computed(() =>
|
||||
`${user.value?.firstName || ''} ${user.value?.lastName || ''}`.trim()
|
||||
)
|
||||
const fullName = computed(() => `${user.value?.name || ''}`.trim())
|
||||
|
||||
const roleName = computed(() => {
|
||||
const first = user.value?.roles?.[0]
|
||||
|
||||
Reference in New Issue
Block a user