refactor: add default img admin
This commit is contained in:
parent
287d73a1a5
commit
a830118021
2 changed files with 16 additions and 10 deletions
BIN
public/img-admin.png
Normal file
BIN
public/img-admin.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
|
|
@ -37,6 +37,7 @@ import SideMenu from 'src/components/SideMenu.vue';
|
|||
import ImageUploadDialog from 'src/components/ImageUploadDialog.vue';
|
||||
import FormAddress from 'src/components/02_personnel-management/FormAddress.vue';
|
||||
import DialogForm from 'src/components/DialogForm.vue';
|
||||
import { getRole } from 'src/services/keycloak';
|
||||
|
||||
const { locale, t } = useI18n();
|
||||
const $q = useQuasar();
|
||||
|
|
@ -1167,12 +1168,15 @@ watch(
|
|||
margin-bottom: var(--size-2);
|
||||
"
|
||||
>
|
||||
{{ console.log(props.row) }}
|
||||
<div class="branch-card__icon">
|
||||
<q-avatar size="md">
|
||||
<q-img
|
||||
:ratio="1"
|
||||
:src="
|
||||
props.row.profileImageUrl
|
||||
props.row.userRole.includes('system')
|
||||
? '/img-admin.png'
|
||||
: props.row.profileImageUrl
|
||||
? props.row.profileImageUrl
|
||||
: props.row.gender === 'male'
|
||||
? '/no-img-man.png'
|
||||
|
|
@ -1407,7 +1411,9 @@ watch(
|
|||
$i18n.locale === 'en-US'
|
||||
? `${props.row.firstNameEN} ${props.row.lastNameEN}`.trim()
|
||||
: `${props.row.firstName} ${props.row.lastName}`.trim(),
|
||||
img: props.row.profileImageUrl
|
||||
img: props.row.userRole.includes('system')
|
||||
? '/img-admin.png'
|
||||
: props.row.profileImageUrl
|
||||
? props.row.profileImageUrl
|
||||
: props.row.gender === 'male'
|
||||
? '/no-img-man.png'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue