From f210053d9d81e471cb0a243946c686673122a6c7 Mon Sep 17 00:00:00 2001 From: Daria Golova Date: Thu, 20 Oct 2022 14:09:30 +0300 Subject: [PATCH 1/7] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BB=D0=BE=D0=BD=D0=BA=D1=83,=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=D0=B0=20=D0=B4=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D0=B2=20server.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 40 +++++++++++++++ src/pages/calendar/TheCalendar.vue | 12 ++++- .../components/CalendarBackground.vue | 18 ++++++- .../calendar/components/CalendarColumn.vue | 49 +++++++++++++++++++ .../calendar/components/CalendarSchedule.vue | 13 ++++- 5 files changed, 129 insertions(+), 3 deletions(-) create mode 100644 src/pages/calendar/components/CalendarColumn.vue diff --git a/server.js b/server.js index 84bfc92..8bb4594 100644 --- a/server.js +++ b/server.js @@ -35,6 +35,46 @@ export function clientsServer() { }, ], })); + this.get("/registry/event/", () => ({ + count: 1, + next: null, + previous: null, + results: [ + { + id: "6faa6bb6-1de6-422c-a401-1b35cd455303", + start: "2022-10-20T20:23:49Z", + end: "2022-10-20T21:23:53Z", + kind: "call", + subkind: null, + description: "", + location: null, + members: [ + { + id: "b0509f9a-e824-4bb3-a260-2b32dae9bc81", + person: { + id: "14ff401c-2b7b-4d9a-9159-720c74d8b23c", + last_name: "Гагарин", + first_name: "Юрий", + patronymic: "Алексеевич", + }, + role: null, + }, + ], + employees: [ + { + id: "f941a0c6-c750-4f79-92c0-d7a19354e422", + employee: { + id: "db831a14-e836-481f-a653-6325de7c311e", + last_name: "Жмыхов", + first_name: "Егор", + patronymic: "Сергеевич", + }, + role: "owner", + }, + ], + }, + ], + })); this.passthrough("http://45.84.227.122:8080/**"); }, }); diff --git a/src/pages/calendar/TheCalendar.vue b/src/pages/calendar/TheCalendar.vue index 02797ec..a43bee5 100644 --- a/src/pages/calendar/TheCalendar.vue +++ b/src/pages/calendar/TheCalendar.vue @@ -3,6 +3,7 @@ calendar-schedule( :current-date="currentDate" :time-information="timeInformation" + :column-information="columnInformation" @previous-date="switchPreviousDate" @next-date="switchNextDate" @selected-layout="changeCalendarLayout" @@ -24,6 +25,15 @@ export default { dayEndTime: "18:00", }, eventsData: [], + columnInformation: { + owners: [ + "Захарова А.О.", + "Константинопольская Ю.В.", + "Коломойцев И.К.", + "Ситников А.Г.", + null, + ], + }, }; }, methods: { @@ -40,7 +50,7 @@ export default { this.eventsData = res.results; }, fetchEventsData() { - fetch("http://45.84.227.122:8080/registry/event/") + fetch("/registry/event/") .then((res) => res.json()) .then((res) => this.saveEventsData(res)); }, diff --git a/src/pages/calendar/components/CalendarBackground.vue b/src/pages/calendar/components/CalendarBackground.vue index 9af397b..b668ef0 100644 --- a/src/pages/calendar/components/CalendarBackground.vue +++ b/src/pages/calendar/components/CalendarBackground.vue @@ -1,6 +1,12 @@ @@ -30,7 +31,11 @@ import CalendarBackground from "./CalendarBackground.vue"; import CalendarClockColumn from "./CalendarClockColumn.vue"; export default { name: "CalendarSchedule", - components: { CalendarHeader, CalendarBackground, CalendarClockColumn }, + components: { + CalendarHeader, + CalendarBackground, + CalendarClockColumn, + }, props: { currentDate: { type: Object, @@ -44,6 +49,12 @@ export default { return {}; }, }, + columnInformation: { + type: Object, + default() { + return {}; + }, + }, }, data() { return { From 0f5b0747b9c35ce522708bbab412eb5b1228b7ec Mon Sep 17 00:00:00 2001 From: Daria Golova Date: Thu, 20 Oct 2022 16:48:48 +0300 Subject: [PATCH 2/7] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B8?= =?UTF-8?q?=D0=BB=D0=B0=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=BB=D0=BE=D0=BD=D0=BE=D0=BA?= =?UTF-8?q?=20=D0=B8=20=D0=BF=D0=BE=D0=B4=D0=BB=D0=BE=D0=B6=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/calendar/TheCalendar.vue | 2 +- .../components/CalendarBackground.vue | 44 ++++++++++++++++--- .../calendar/components/CalendarColumn.vue | 8 +--- .../calendar/components/CalendarSchedule.vue | 14 +++--- 4 files changed, 49 insertions(+), 19 deletions(-) diff --git a/src/pages/calendar/TheCalendar.vue b/src/pages/calendar/TheCalendar.vue index a43bee5..234e5d2 100644 --- a/src/pages/calendar/TheCalendar.vue +++ b/src/pages/calendar/TheCalendar.vue @@ -63,5 +63,5 @@ export default { diff --git a/src/pages/calendar/components/CalendarBackground.vue b/src/pages/calendar/components/CalendarBackground.vue index b668ef0..39f11c6 100644 --- a/src/pages/calendar/components/CalendarBackground.vue +++ b/src/pages/calendar/components/CalendarBackground.vue @@ -1,13 +1,15 @@ + + From f08cc4841574e131a5c87285978c8bb81f594d4b Mon Sep 17 00:00:00 2001 From: Daria Golova Date: Thu, 20 Oct 2022 19:26:51 +0300 Subject: [PATCH 5/7] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0=20=D1=81=D0=BA=D1=80=D0=BE=D0=BB=D0=BB=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/calendar/TheCalendar.vue | 1 - src/pages/calendar/components/CalendarBackground.vue | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pages/calendar/TheCalendar.vue b/src/pages/calendar/TheCalendar.vue index 63c4728..a1c144d 100644 --- a/src/pages/calendar/TheCalendar.vue +++ b/src/pages/calendar/TheCalendar.vue @@ -32,7 +32,6 @@ export default { "Захарова А.О.", "Константинопольская Ю.В.", "Коломойцев И.К.", - "Зайцев В.С.", ], }, }; diff --git a/src/pages/calendar/components/CalendarBackground.vue b/src/pages/calendar/components/CalendarBackground.vue index ae7dcf8..6b83c59 100644 --- a/src/pages/calendar/components/CalendarBackground.vue +++ b/src/pages/calendar/components/CalendarBackground.vue @@ -1,6 +1,7 @@