From c3ab0cf6b8cb11273e761c4b62481b64b9d1481b Mon Sep 17 00:00:00 2001 From: Norbaev Date: Fri, 5 Jul 2024 18:03:24 +0500 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=20ymap.vue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/ymap.vue | 62 ++++++++++++++++++++++++++++++++++ client/src/views/contacts.vue | 21 ++++-------- 2 files changed, 69 insertions(+), 14 deletions(-) create mode 100644 client/src/components/ymap.vue diff --git a/client/src/components/ymap.vue b/client/src/components/ymap.vue new file mode 100644 index 0000000..044e0bc --- /dev/null +++ b/client/src/components/ymap.vue @@ -0,0 +1,62 @@ + + + diff --git a/client/src/views/contacts.vue b/client/src/views/contacts.vue index d95505e..94fc10d 100644 --- a/client/src/views/contacts.vue +++ b/client/src/views/contacts.vue @@ -29,8 +29,8 @@ - + --> + + import AppBreadcrumbs from '@/components/app-breadcrumbs.vue'; import SupportBlock from '@/components/support-block.vue'; +import YandexMap from '@/components/ymap.vue'; import { app } from '@/services'; export default { name: 'contacts', - components: { SupportBlock, AppBreadcrumbs }, + components: { SupportBlock, AppBreadcrumbs, YandexMap }, data() { return { formData: {}, @@ -162,7 +160,6 @@ export default { submitHandler() {}, removeNullFields(obj) { const result = {}; - for (const key in obj) { if (obj[key] !== null) { if (typeof obj[key] === 'object' && !Array.isArray(obj[key])) { @@ -172,19 +169,15 @@ export default { } } } - return result; }, - createArrayContacts(dictionary, fields) { const result = []; - for (const key in fields) { if (dictionary[key]) { result.push({ title: dictionary[key], data: fields[key] }); } } - return result; }, formatAddress(contacts) {