diff --git a/src/App.vue b/src/App.vue
index 8723825..25cbe8c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -17,7 +17,7 @@ html
border-radius: 4px
background-color: var(--bg-ligth-blue-color)
::-webkit-scrollbar-thumb
- background-color: var(--btn-blue-color-2)
+ background-color: var(--bg-aqua-blue)
border-radius: 4px
#app
font-feature-settings: 'pnum' on, 'lnum' on
diff --git a/src/assets/sass/variables.sass b/src/assets/sass/variables.sass
index 03030b0..dcd8e2a 100644
--- a/src/assets/sass/variables.sass
+++ b/src/assets/sass/variables.sass
@@ -3,6 +3,7 @@
--bg-body-color: #e8e8f3
--bg-ligth-blue-color: #e6eafc
--font-dark-blue-color: #252850
+ --font-dark-blue-color-0: rgba(37, 40, 80, 0.7)
--font-black-color: #090a15
--font-black-color-1: rgba(9, 10, 21, 0.5)
--icon-light-blue: #d7d9ff
@@ -19,6 +20,7 @@
--font-grey-color: #9294a7
--font-grey-color-0: #85858b
--border-light-grey-color: #d3d4dc
+ --bg-light-grey: #eff1f4
--row-overlay-color: #f5f6ff
--default-shadow: 4px 4px 8px rgba(9, 10, 21, 0.1), -4px -4px 8px rgba(9, 10, 21, 0.1)
--bg-hover-row-table: rgba(215, 217, 255, 0.25)
diff --git a/src/components/TheHeader.vue b/src/components/TheHeader.vue
index aa92cc1..21b5495 100644
--- a/src/components/TheHeader.vue
+++ b/src/components/TheHeader.vue
@@ -10,6 +10,7 @@
.flex.ml-auto
q-btn.mr-9(
color="primary",
+ outline,
dense,
padding="4px 22px",
@click="openForm"
diff --git a/src/components/base/BaseInputDate.vue b/src/components/base/BaseInputDate.vue
new file mode 100644
index 0000000..6d19439
--- /dev/null
+++ b/src/components/base/BaseInputDate.vue
@@ -0,0 +1,38 @@
+
+ base-input.w-full(v-bind="$props", v-model="value")
+ .flex.items-center
+ q-icon(name="app:calendar" class="cursor-pointer" size="18px")
+ q-popup-proxy(cover transition-show="scale" transition-hide="scale")
+ q-date(v-model="value")
+ div(class="row items-center justify-end")
+ q-btn(v-close-popup label="Close" color="primary" flat)
+
+
+
+
+
diff --git a/src/pages/calendar/TheCalendar.vue b/src/pages/calendar/TheCalendar.vue
index 797c08d..caa3a1d 100644
--- a/src/pages/calendar/TheCalendar.vue
+++ b/src/pages/calendar/TheCalendar.vue
@@ -79,7 +79,6 @@ export default {
eventsData: [],
schedulesData: [],
isOpenForm: false,
- WORKING_STATUS: "WORKS",
//changeFormWasClosed: false,
eventStatuses: statusesConfig,
};
@@ -103,7 +102,7 @@ export default {
return;
}
let filteredEmployees = res.results.filter(
- (elem) => elem.status === this.WORKING_STATUS
+ (elem) => elem.status !== "DAY_OFF" && elem.status !== "VACATION"
);
if (filteredEmployees.length === 0) {
this.schedulesData = [];
diff --git a/src/pages/calendar/components/CalendarHeader.vue b/src/pages/calendar/components/CalendarHeader.vue
index 18b41c0..37d75ce 100644
--- a/src/pages/calendar/components/CalendarHeader.vue
+++ b/src/pages/calendar/components/CalendarHeader.vue
@@ -1,41 +1,59 @@
- .calendar-header-wrapper.flex.items-center.justify-between.py-3.pl-5.pr-6
- .flex
- q-btn.mr-4(
- color="secondary",
+ .calendar-header-wrapper.flex.items-center.justify-between.py-4.pl-4.pr-6
+ .flex.items-center
+ //q-btn.mr-4(
+ color="blue-grey-1",
round,
size="14px",
dense,
text-color="primary",
@click="previousHandler"
- )
+ //)
q-icon(name="arrow_back_ios", right)
- q-btn.mr-4(
- color="secondary",
+ //q-btn.mr-4(
+ color="blue-grey-1",
icon="arrow_forward_ios",
round,
size="14px",
text-color="primary",
dense,
@click="nextHandler"
- )
- .text.flex.items-center
+ //)
+ //.text.flex.items-center
span.font-medium.text-base {{ dateString }}
span.today.font-bold.text-xxs(v-if="isCurrentDate") Сегодня
+ q-btn(
+ color="blue-grey-1",
+ round,
+ size="14px",
+ text-color="primary",
+ @click="previousHandler"
+ icon="arrow_back_ios_new"
+ )
+ base-input-date.mx-4(v-model="convertedDate", outlined, disabled)
+ q-btn(
+ color="blue-grey-1",
+ icon="arrow_forward_ios",
+ round,
+ size="14px",
+ text-color="primary",
+ @click="nextHandler"
+ )
calendar-layout-switch(@selected="changeSelectedLayout")