chore: comment error to prev commit
This commit is contained in:
parent
4bfe1ccd34
commit
1b039fd935
1 changed files with 48 additions and 48 deletions
|
|
@ -1810,40 +1810,40 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
class="col column justify-between q-px-md q-pt-md scroll"
|
class="col column justify-between q-px-md q-pt-md scroll"
|
||||||
v-if="listEmployee.length !== 0"
|
v-if="listEmployee.length !== 0"
|
||||||
>
|
>
|
||||||
<PersonCard
|
<!-- <PersonCard -->
|
||||||
history
|
<!-- history -->
|
||||||
:list="
|
<!-- :list=" -->
|
||||||
listEmployee.map((v: Employee) => ({
|
<!-- listEmployee.map((v: Employee) => ({ -->
|
||||||
disabled: v.status === 'INACTIVE',
|
<!-- disabled: v.status === 'INACTIVE', -->
|
||||||
img: v.profileImageUrl,
|
<!-- img: v.profileImageUrl, -->
|
||||||
id: v.id,
|
<!-- id: v.id, -->
|
||||||
name:
|
<!-- name: -->
|
||||||
$i18n.locale === 'en-US'
|
<!-- $i18n.locale === 'en-US' -->
|
||||||
? `${v.firstNameEN} ${v.lastNameEN}`
|
<!-- ? `${v.firstNameEN} ${v.lastNameEN}` -->
|
||||||
: `${v.firstName} ${v.lastName}`,
|
<!-- : `${v.firstName} ${v.lastName}`, -->
|
||||||
male: v.gender === 'male',
|
<!-- male: v.gender === 'male', -->
|
||||||
female: v.gender === 'female',
|
<!-- female: v.gender === 'female', -->
|
||||||
badge: v.code,
|
<!-- badge: v.code, -->
|
||||||
detail: [
|
<!-- detail: [ -->
|
||||||
{
|
<!-- { -->
|
||||||
label: $t('personnelCardNationality'),
|
<!-- label: $t('personnelCardNationality'), -->
|
||||||
value: v.nationality,
|
<!-- value: v.nationality, -->
|
||||||
},
|
<!-- }, -->
|
||||||
{
|
<!-- { -->
|
||||||
label: $t('personnelCardAge'),
|
<!-- label: $t('personnelCardAge'), -->
|
||||||
value: calculateAge(v.dateOfBirth),
|
<!-- value: calculateAge(v.dateOfBirth), -->
|
||||||
},
|
<!-- }, -->
|
||||||
],
|
<!-- ], -->
|
||||||
}))
|
<!-- })) -->
|
||||||
"
|
<!-- " -->
|
||||||
@history="openHistory"
|
<!-- @history="openHistory" -->
|
||||||
@update-card="openDialogInputForm"
|
<!-- @update-card="openDialogInputForm" -->
|
||||||
@enter-card="openDialogInputForm"
|
<!-- @enter-card="openDialogInputForm" -->
|
||||||
@delete-card="onDelete"
|
<!-- @delete-card="onDelete" -->
|
||||||
@toggle-status="
|
<!-- @toggle-status=" -->
|
||||||
(id, status) => toggleStatusEmployee(id, status)
|
<!-- (id, status) => toggleStatusEmployee(id, status) -->
|
||||||
"
|
<!-- " -->
|
||||||
/>
|
<!-- /> -->
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="listEmployee.length !== 0"
|
v-if="listEmployee.length !== 0"
|
||||||
|
|
@ -3063,20 +3063,20 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
<template #person-card>
|
<template #person-card>
|
||||||
<div class="q-ma-md">
|
<div class="q-ma-md">
|
||||||
<AppBox class="surface-1" style="padding: 0">
|
<AppBox class="surface-1" style="padding: 0">
|
||||||
<PersonCard
|
<!-- <PersonCard -->
|
||||||
:can-edit-profile="infoDrawerEmployeeEdit"
|
<!-- :can-edit-profile="infoDrawerEmployeeEdit" -->
|
||||||
no-hover
|
<!-- no-hover -->
|
||||||
no-action
|
<!-- no-action -->
|
||||||
no-detail
|
<!-- no-detail -->
|
||||||
no-bg
|
<!-- no-bg -->
|
||||||
:list="infoEmployeePersonCard ? infoEmployeePersonCard : []"
|
<!-- :list="infoEmployeePersonCard ? infoEmployeePersonCard : []" -->
|
||||||
:gridColumns="1"
|
<!-- :gridColumns="1" -->
|
||||||
@edit-profile="
|
<!-- @edit-profile=" -->
|
||||||
() => {
|
<!-- () => { -->
|
||||||
inputFile.click();
|
<!-- inputFile.click(); -->
|
||||||
}
|
<!-- } -->
|
||||||
"
|
<!-- " -->
|
||||||
/>
|
<!-- /> -->
|
||||||
</AppBox>
|
</AppBox>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue