refactor: nationality value

This commit is contained in:
puriphatt 2024-08-27 11:58:45 +07:00
parent 4bccd91e1a
commit 13129d6da8
2 changed files with 4 additions and 2 deletions

View file

@ -386,7 +386,7 @@ watch(
hide-bottom-space
input-debounce="0"
option-label="label"
option-value="label"
option-value="value"
v-model="nationality"
lazy-rules="ondemand"
class="col-2"

View file

@ -3,7 +3,9 @@ import { calculateAge, dateFormat } from 'src/utils/datetime';
import PersonCard from 'components/shared/PersonCard.vue';
import KebabAction from '../shared/KebabAction.vue';
import useOptionStore from 'stores/options';
const optionStore = useOptionStore();
const pageSize = defineModel<number>('pageSize', { default: 30 });
const currentPage = defineModel<number>('currentPage', { default: 1 });
@ -179,7 +181,7 @@ defineEmits<{
</q-td>
<q-td v-if="fieldSelected.includes('formDialogInputNationality')">
{{ props.row.nationality || '-' }}
{{ optionStore.mapOption(props.row.nationality || '-') }}
</q-td>
<q-td v-if="fieldSelected.includes('formDialogInputPassportNo')">