0
0
Fork 0

refs #6677 fix code

This commit is contained in:
Carlos Satorres 2024-01-30 13:34:05 +01:00
parent 5c87cfc671
commit adac3bc895
2 changed files with 3 additions and 5 deletions

View File

@ -100,7 +100,6 @@ async function filter(val, options) {
} }
async function fetchFilter(val) { async function fetchFilter(val) {
console.log('ENTRY PA', dataRef.value);
if (!$props.url || !dataRef.value) return; if (!$props.url || !dataRef.value) return;
const { fields, sortBy, limit } = $props; const { fields, sortBy, limit } = $props;
@ -132,7 +131,6 @@ async function filterHandler(val, update) {
} }
watch(options, (newValue) => { watch(options, (newValue) => {
console.log(newValue);
setOptions(newValue); setOptions(newValue);
}); });
@ -148,7 +146,7 @@ watch(modelValue, (newValue) => {
:url="$props.url" :url="$props.url"
@on-fetch="(data) => setOptions(data)" @on-fetch="(data) => setOptions(data)"
:where="where || { [optionValue]: value }" :where="where || { [optionValue]: value }"
:limit="limit || 30" :limit="limit"
:order-by="orderBy" :order-by="orderBy"
:fields="fields" :fields="fields"
/> />

View File

@ -182,8 +182,8 @@ const columns = computed(() => [
</QItemLabel> </QItemLabel>
</QItemSection> </QItemSection>
</QItem> </QItem>
</template> </VnSelectFilter </template>
>s </VnSelectFilter>
</QTd> </QTd>
</template> </template>
<template #item="props"> <template #item="props">