Merge pull request 'Hotfix: zone events postcode select' (!1154) from Hotfix-ZoneEventSelect into master
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #1154
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Jon Elias 2024-12-31 12:34:38 +00:00
commit 16065b6342
2 changed files with 7 additions and 2 deletions

View File

@ -148,7 +148,11 @@ onMounted(() => {
const arrayDataKey =
$props.dataKey ?? ($props.url?.length > 0 ? $props.url : $attrs.name ?? $attrs.label);
const arrayData = useArrayData(arrayDataKey, { url: $props.url, searchUrl: false });
const arrayData = useArrayData(arrayDataKey, {
url: $props.url,
searchUrl: false,
mapKey: $attrs['map-key'],
});
function findKeyInOptions() {
if (!$props.options) return;

View File

@ -89,7 +89,7 @@ watch(
v-model="formData.geoFk"
url="Postcodes/location"
:fields="['geoFk', 'code', 'townFk', 'countryFk']"
sort-by="code, townFk"
:sort-by="['code ASC']"
option-value="geoFk"
option-label="code"
:filter-options="['code']"
@ -97,6 +97,7 @@ watch(
dense
outlined
rounded
map-key="geoFk"
>
<template #option="{ itemProps, opt }">
<QItem v-bind="itemProps">