From 024af2851789bb9eaed8952b402bb2154c941715 Mon Sep 17 00:00:00 2001
From: iriska-gri <79623434+iriska-gri@users.noreply.github.com>
Date: Mon, 22 Jul 2024 16:59:20 +0300
Subject: [PATCH] =?UTF-8?q?P-51=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B7=D0=BE?=
=?UTF-8?q?=D0=B1=D1=80=D0=B0=D1=82=D1=8C=D1=81=D1=8F=20=D1=81=20=D0=B2?=
=?UTF-8?q?=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0=D1=86=D0=B8=D0=B5=D0=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../UI_calendar/calendarFull.vue | 52 ++++++-------------
.../UI_calendar/dialogCreate.vue | 41 ++++++++++++---
.../UI_calendar/timeSelect.vue | 1 +
.../calendar_of_events/calendar-create.vue | 2 +
.../calendar_of_events/event-create.vue | 20 ++++++-
5 files changed, 70 insertions(+), 46 deletions(-)
diff --git a/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue b/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue
index 8416052f0..4637232c5 100644
--- a/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue
+++ b/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue
@@ -117,26 +117,16 @@ export default {
let objRule = JSON.parse(i.period);
// console.log(objRule.origOptions, "распар правила");
- console.log(i, "i");
-
-
- //
+ //
if (objRule != null) {
+ let startnew =
+ objRule.origOptions.dtstart.split("T")[1].split(":")[0] != 21 &&
+ i.allday == false
+ ? new Date(objRule.origOptions.dtstart)
+ : new Date(objRule.origOptions.dtstart.split("T")[0]);
-
- let startnew =
- (objRule.origOptions.dtstart.split('T')[1].split(':')[0] != 21 && i.allday == false)
- ? new Date(objRule.origOptions.dtstart)
- : new Date(objRule.origOptions.dtstart.split('T')[0])
-
-
-
- console.log(objRule.origOptions.dtstart.split('T')[1].split(':')[0] != 21 || i.allday == false , '1')
-
- console.log(startnew,' startnew')
-
let rule = new RRule({
...objRule.origOptions,
@@ -148,10 +138,7 @@ export default {
});
let actRule = rule.all();
- console.log(
- actRule,
- "actRule-------------------------------------"
- );
+
let lastDateMonth = new Date(
new Date(dayNextMonth.value).setDate(
new Date(dayNextMonth.value).getDate() - 1
@@ -329,30 +316,21 @@ export default {
ev.rule.byweekday[ev.rule.byweekday.length - 1].weekday == 6
? 0
: ev.rule.byweekday[ev.rule.byweekday.length - 1].weekday + 1;
-
+
if (day.date.getDay() == weeknumS && weeknumS != weeknumE) {
return "rounded-e-lg";
} else if (day.date.getDay() == weeknumE && weeknumS != weeknumE) {
return "rounded-s-lg";
+ } else if (
+ day.date.getDay() != weeknumS &&
+ day.date.getDay() != weeknumE
+ ) {
+ return "rounded-sm";
} else {
- return "";
+ return "rounded-lg";
}
- // if (
- // zeroTime(day.date) != zeroTime(ev.start_event) &&
- // zeroTime(day.date) != zeroTime(ev.end)
- // ) {
- // return "rounded-sm";
- // } else if (
- // zeroTime(day.date) == zeroTime(ev.start_event) &&
- // zeroTime(day.date) == zeroTime(ev.end)
- // ) {
- // return "";
- // } else if (zeroTime(day.date) != zeroTime(ev.start_event)) {
- // return "rounded-s-lg";
- // } else if (zeroTime(day.date) == zeroTime(ev.start_event)) {
- // return "rounded-e-lg";
- // }
+
}
};
diff --git a/src/front/src/components/calendar_of_events/UI_calendar/dialogCreate.vue b/src/front/src/components/calendar_of_events/UI_calendar/dialogCreate.vue
index d98803483..256f84ab5 100644
--- a/src/front/src/components/calendar_of_events/UI_calendar/dialogCreate.vue
+++ b/src/front/src/components/calendar_of_events/UI_calendar/dialogCreate.vue
@@ -1,7 +1,7 @@
- {{ title }} {{newOrOld}}
+ {{ title }} {{ newOrOld }}
-
+
-
+
+
-