From 2a6bdd554c2904892a7fd317c175e91f46b0452b 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/Presentation.vue | 61 +++++-- client/components/carte/Map.vue | 110 ++++++----- client/components/mixins/MapPoint.vue | 11 +- client/components/mixins/Search.vue | 79 ++++---- 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 | 16 +- 15 files changed, 354 insertions(+), 139 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/Presentation.vue b/client/components/accueil/Presentation.vue index 48462ba..fb39b99 100644 --- a/client/components/accueil/Presentation.vue +++ b/client/components/accueil/Presentation.vue @@ -1,16 +1,52 @@