forked from verdnatura/salix-front
refs #6677 fix code
This commit is contained in:
parent
5c87cfc671
commit
adac3bc895
|
@ -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"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue