perf: remove first call
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2024-09-13 10:58:35 +02:00
parent cf0b53c2bf
commit ffed7125d0
2 changed files with 3 additions and 11 deletions

View File

@ -140,12 +140,6 @@ const arrayDataKey =
const arrayData = useArrayData(arrayDataKey, { url: useURL.value });
onMounted(async () => {
if ($props.focusOnMount) setTimeout(() => vnSelectRef.value.showPopup(), 300);
setOptions(options.value);
if (useURL.value) fetchFilter($props.modelValue);
});
watch(modelValue, (newValue) => {
if (!myOptions.value.some((option) => option[optionValue.value] == newValue))
fetchFilter(newValue);

View File

@ -96,12 +96,12 @@ const title = ref();
:params="{
departmentCodes: ['VT', 'shopping'],
}"
map-options
:fields="['id', 'nickname']"
sort-by="nickname ASC"
:rules="validate('client.salesPersonFk')"
:use-like="false"
emit-value
auto-load
>
<template #prepend>
<VnAvatar
@ -137,17 +137,15 @@ const title = ref();
<VnRow>
<VnSelect
url="Clients"
:input-debounce="0"
:label="t('customer.basicData.previousClient')"
:options="clients"
v-model="data.transferorFk"
:fields="['id', 'name']"
:rules="validate('client.transferorFk')"
emit-value
map-options
option-label="name"
option-value="id"
sort-by="name ASC"
v-model="data.transferorFk"
:fields="['id', 'name']"
>
<template #append>
<QIcon name="info" class="cursor-pointer">