From 2687c02de299067d681a3b6bddfca43f5bcf5635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Lain=C3=A9?= Date: Wed, 9 Oct 2024 15:22:34 +0200 Subject: [PATCH] =?UTF-8?q?V1=20Parcours=20pro=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/api/index.ts | 8 + client/components/accueil/Liens.vue | 2 +- client/components/accueil/Presentation.vue | 60 ++++-- client/components/carte/Map.vue | 130 ++++++------- client/components/mixins/Donnees.vue | 2 +- client/components/mixins/MapPoint.vue | 11 +- client/components/mixins/Search.vue | 85 ++++----- client/components/mixins/SearchPro.vue | 172 ++++++++++++++++++ client/pages/donnees/carte-commune/index.vue | 3 - .../pages/donnees/carte-historique/index.vue | 4 - client/pages/donnees/departement/index.vue | 3 - client/pages/donnees/index.vue | 18 +- client/pages/donnees/surface/index.vue | 3 - client/pages/index.vue | 1 - client/store/address.ts | 2 +- client/store/refData.ts | 2 + client/utils/index.ts | 25 ++- 17 files changed, 377 insertions(+), 154 deletions(-) create mode 100644 client/components/mixins/SearchPro.vue diff --git a/client/api/index.ts b/client/api/index.ts index cc14df0..26f4547 100644 --- a/client/api/index.ts +++ b/client/api/index.ts @@ -169,6 +169,14 @@ const index = { }, }); }, + + getZonesByDepartement(depCode: string): Promise { + const runtimeConfig = useRuntimeConfig(); + return useFetch(`zones/departement/${depCode}`, { + method: 'GET', + baseURL: runtimeConfig.public.apiSecheresseUrl, + }); + }, }; const _formatAddresses = (response: string): Address[] => { diff --git a/client/components/accueil/Liens.vue b/client/components/accueil/Liens.vue index b8f879e..20907f0 100644 --- a/client/components/accueil/Liens.vue +++ b/client/components/accueil/Liens.vue @@ -3,7 +3,7 @@ import liens from '../../data/liens.json'