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">
|
<script setup lang="ts">
|
||||||
import { calculateAge, dateFormat } from 'src/utils/datetime';
|
import { calculateAge, dateFormat } from 'src/utils/datetime';
|
||||||
|
import { calculateDaysUntilExpire } from 'stores/utils';
|
||||||
import { baseUrl } from 'src/stores/utils';
|
import { baseUrl } from 'src/stores/utils';
|
||||||
|
|
||||||
import PersonCard from 'components/shared/PersonCard.vue';
|
import PersonCard from 'components/shared/PersonCard.vue';
|
||||||
|
|
@ -27,7 +28,8 @@ const prop = withDefaults(
|
||||||
'formDialogInputNationality',
|
'formDialogInputNationality',
|
||||||
'formDialogInputPassportNo',
|
'formDialogInputPassportNo',
|
||||||
'passportExpiryDate',
|
'passportExpiryDate',
|
||||||
'formDialogEmployeeNRCNo',
|
'visaExpireDate',
|
||||||
|
'beDue',
|
||||||
'branchLabel',
|
'branchLabel',
|
||||||
'action',
|
'action',
|
||||||
],
|
],
|
||||||
|
|
@ -193,9 +195,9 @@ defineEmits<{
|
||||||
{{ dateFormat(props.row.passportExpiryDate) || '-' }}
|
{{ dateFormat(props.row.passportExpiryDate) || '-' }}
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
||||||
<q-td v-if="fieldSelected.includes('formDialogEmployeeNRCNo')">
|
<q-td v-if="fieldSelected.includes('visaExpireDate')">-</q-td>
|
||||||
{{ props.row.nrcNo || '-' }}
|
|
||||||
</q-td>
|
<q-td v-if="fieldSelected.includes('beDue')">-</q-td>
|
||||||
|
|
||||||
<q-td v-if="fieldSelected.includes('branchLabel')">
|
<q-td v-if="fieldSelected.includes('branchLabel')">
|
||||||
<div class="row items-center" v-if="props.row.customerBranch">
|
<div class="row items-center" v-if="props.row.customerBranch">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue