fix: column i18n

This commit is contained in:
puriphatt 2024-07-23 04:25:09 +00:00
parent 40541bda3f
commit c05e26f36b

View file

@ -242,27 +242,27 @@ const fieldDisplayEmployer = ref<
}[] }[]
>([ >([
{ {
label: t('corporation'), label: 'corporation',
value: 'customerName', value: 'customerName',
}, },
{ {
label: t('type'), label: 'type',
value: 'type', value: 'type',
}, },
{ {
label: t('name'), label: 'name',
value: 'personName', value: 'personName',
}, },
{ {
label: t('telephone'), label: 'telephone',
value: 'telephoneNo', value: 'telephoneNo',
}, },
{ {
label: t('formDialogInputEmail'), label: 'formDialogInputEmail',
value: 'branchEmail', value: 'branchEmail',
}, },
]); ]);
@ -274,37 +274,37 @@ const fieldDisplayEmployee = ref<
}[] }[]
>([ >([
{ {
label: t('nameEmployee'), label: 'nameEmployee',
value: 'firstName', value: 'firstName',
}, },
{ {
label: t('formDialogInputNationality'), label: 'formDialogInputNationality',
value: 'formDialogInputNationality', value: 'formDialogInputNationality',
}, },
{ {
label: t('formDialogInputPassportNo'), label: 'formDialogInputPassportNo',
value: 'formDialogInputPassportNo', value: 'formDialogInputPassportNo',
}, },
{ {
label: t('formDialogInputAge'), label: 'formDialogInputAge',
value: 'formDialogInputAge', value: 'formDialogInputAge',
}, },
{ {
label: t('passportExpire'), label: 'passportExpire',
value: 'passportExpiryDate', value: 'passportExpiryDate',
}, },
{ {
label: t('formDialogEmployeeNRCNo'), label: 'formDialogEmployeeNRCNo',
value: 'formDialogEmployeeNRCNo', value: 'formDialogEmployeeNRCNo',
}, },
{ {
label: t('branchLabel'), label: 'branchLabel',
value: 'branchLabel', value: 'branchLabel',
}, },
{ {
label: t('type'), label: 'type',
value: 'type', value: 'type',
}, },
]); ]);
@ -1737,7 +1737,7 @@ watch(
:display-value="$t('displayField')" :display-value="$t('displayField')"
:hide-dropdown-icon="$q.screen.lt.sm" :hide-dropdown-icon="$q.screen.lt.sm"
v-model="fieldSelected" v-model="fieldSelected"
option-label="label" :option-label="(l) => $t(l.label)"
option-value="value" option-value="value"
map-options map-options
emit-value emit-value
@ -2379,9 +2379,10 @@ watch(
v-for="col in props.cols" v-for="col in props.cols"
:key="col.name" :key="col.name"
:props="props" :props="props"
st
> >
{{ $t(col.label) }} <span v-if="col.label !== ''">
{{ $t(col.label) }}
</span>
</q-th> </q-th>
</q-tr> </q-tr>
</template> </template>