0
0
Fork 0

Se corrige comentario 39968

This commit is contained in:
carlosfonseca 2024-01-26 11:08:45 -05:00
parent 3fc1bff213
commit 9a23bb2ed2
1 changed files with 15 additions and 5 deletions

View File

@ -18,18 +18,28 @@ const route = useRoute();
const payMethods = ref([]);
const bankEntitiesOptions = ref([]);
const bankEntitiesRef = ref(null);
onMounted(() => getBankEntities());
const filter = {
fields: ['id', 'bic', 'name'],
order: 'bic ASC',
limit: 30,
};
const getBankEntities = async () => {
const filter = { fields: ['id', 'bic', 'name'], order: 'bic ASC', limit: 30 };
const { data } = await axios.get('BankEntities', { filter });
bankEntitiesOptions.value = data;
const getBankEntities = () => {
bankEntitiesRef.value.fetch();
};
</script>
<template>
<fetch-data @on-fetch="(data) => (payMethods = data)" auto-load url="PayMethods" />
<fetch-data
ref="bankEntitiesRef"
@on-fetch="(data) => (bankEntitiesOptions = data)"
:filter="filter"
auto-load
url="BankEntities"
/>
<FormModel
:url-update="`Clients/${route.params.id}`"