refactor: edit column
This commit is contained in:
parent
7184e61bd9
commit
ff3cb87f98
1 changed files with 6 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { calculateAge, dateFormat } from 'src/utils/datetime';
|
||||
import { calculateDaysUntilExpire } from 'stores/utils';
|
||||
import { baseUrl } from 'src/stores/utils';
|
||||
|
||||
import PersonCard from 'components/shared/PersonCard.vue';
|
||||
|
|
@ -27,7 +28,8 @@ const prop = withDefaults(
|
|||
'formDialogInputNationality',
|
||||
'formDialogInputPassportNo',
|
||||
'passportExpiryDate',
|
||||
'formDialogEmployeeNRCNo',
|
||||
'visaExpireDate',
|
||||
'beDue',
|
||||
'branchLabel',
|
||||
'action',
|
||||
],
|
||||
|
|
@ -193,9 +195,9 @@ defineEmits<{
|
|||
{{ dateFormat(props.row.passportExpiryDate) || '-' }}
|
||||
</q-td>
|
||||
|
||||
<q-td v-if="fieldSelected.includes('formDialogEmployeeNRCNo')">
|
||||
{{ props.row.nrcNo || '-' }}
|
||||
</q-td>
|
||||
<q-td v-if="fieldSelected.includes('visaExpireDate')">-</q-td>
|
||||
|
||||
<q-td v-if="fieldSelected.includes('beDue')">-</q-td>
|
||||
|
||||
<q-td v-if="fieldSelected.includes('branchLabel')">
|
||||
<div class="row items-center" v-if="props.row.customerBranch">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue