Merge pull request #64 from dderbentsov/UC-24
WIP Сделала позиционирование карточек
This commit is contained in:
90
server.js
90
server.js
@@ -515,8 +515,8 @@ export function clientsServer() {
|
|||||||
results: [
|
results: [
|
||||||
{
|
{
|
||||||
id: "6faa6bb6-1de6-422c-a401-1b35cd455303",
|
id: "6faa6bb6-1de6-422c-a401-1b35cd455303",
|
||||||
start: "2022-10-24T20:23:49Z",
|
start: "2022-10-25T11:15:49Z",
|
||||||
end: "2022-10-24T21:23:53Z",
|
end: "2022-10-25T12:00:53Z",
|
||||||
kind: "call",
|
kind: "call",
|
||||||
subkind: null,
|
subkind: null,
|
||||||
description: "",
|
description: "",
|
||||||
@@ -542,7 +542,7 @@ export function clientsServer() {
|
|||||||
first_name: "Ольга",
|
first_name: "Ольга",
|
||||||
patronymic: "Александровна",
|
patronymic: "Александровна",
|
||||||
},
|
},
|
||||||
role: null,
|
role: "owner",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
||||||
@@ -552,14 +552,14 @@ export function clientsServer() {
|
|||||||
first_name: "Егор",
|
first_name: "Егор",
|
||||||
patronymic: "Сергеевич",
|
patronymic: "Сергеевич",
|
||||||
},
|
},
|
||||||
role: "owner",
|
role: null,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "6faa6bb6-1de6-422c-a401-1b35cd455303",
|
id: "6faa6bb6-1de6-422c-a401-1b35cd455303",
|
||||||
start: "2022-10-24T15:23:49Z",
|
start: "2022-10-25T13:00:49Z",
|
||||||
end: "2022-10-24T16:23:53Z",
|
end: "2022-10-25T13:30:53Z",
|
||||||
kind: "call",
|
kind: "call",
|
||||||
subkind: null,
|
subkind: null,
|
||||||
description: "",
|
description: "",
|
||||||
@@ -599,63 +599,10 @@ export function clientsServer() {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: "7faa7bb7-2de6-422c-a401-1b35cd455303",
|
|
||||||
start: "2022-10-23T10:00:00Z",
|
|
||||||
end: "2022-10-23T11:10:00Z",
|
|
||||||
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,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "a9239f9a-e824-4bb3-a260-2b32dae9bc76",
|
|
||||||
person: {
|
|
||||||
id: "15ff465c-2b7b-4d9a-9159-720c74d8b56d",
|
|
||||||
last_name: "Елесеевская",
|
|
||||||
first_name: "Татьяна",
|
|
||||||
patronymic: "Ивановна",
|
|
||||||
},
|
|
||||||
role: "primary",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
employees: [
|
|
||||||
{
|
|
||||||
id: "f941a0c6-c734-4f79-92c2-d7a5674459e422",
|
|
||||||
employee: {
|
|
||||||
id: "db831a15-e876-481f-a658-6325de7c311e",
|
|
||||||
last_name: "Константинопольская",
|
|
||||||
first_name: "Юлия",
|
|
||||||
patronymic: "Викторовна",
|
|
||||||
},
|
|
||||||
role: null,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
|
||||||
employee: {
|
|
||||||
id: "db541a67-e836-481f-a653-6325de7c567e",
|
|
||||||
last_name: "Захарова",
|
|
||||||
first_name: "Ольга",
|
|
||||||
patronymic: "Александровна",
|
|
||||||
},
|
|
||||||
role: "owner",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: "2faa7bb2-2de6-422c-a401-1b35cd455223",
|
id: "2faa7bb2-2de6-422c-a401-1b35cd455223",
|
||||||
start: "2022-10-24T10:00:00Z",
|
start: "2022-10-25T15:00:00Z",
|
||||||
end: "2022-10-24T11:10:00Z",
|
end: "2022-10-25T16:10:00Z",
|
||||||
kind: "call",
|
kind: "call",
|
||||||
subkind: null,
|
subkind: null,
|
||||||
description: "",
|
description: "",
|
||||||
@@ -695,10 +642,11 @@ export function clientsServer() {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
id: "2faa7bb2-2de6-422c-a401-1b35cd455223",
|
id: "2faa5ff2-2de6-422c-a401-1b35cd455223",
|
||||||
start: "2022-10-24T10:00:00Z",
|
start: "2022-10-25T17:10:00Z",
|
||||||
end: "2022-10-24T11:10:00Z",
|
end: "2022-10-25T18:00:00Z",
|
||||||
kind: "call",
|
kind: "call",
|
||||||
subkind: null,
|
subkind: null,
|
||||||
description: "",
|
description: "",
|
||||||
@@ -717,14 +665,14 @@ export function clientsServer() {
|
|||||||
],
|
],
|
||||||
employees: [
|
employees: [
|
||||||
{
|
{
|
||||||
id: "f451a0c3-c734-4f73-91c2-d7a5674459e422",
|
id: "f941a0c6-c734-4f79-92c2-d7a5674459e422",
|
||||||
employee: {
|
employee: {
|
||||||
id: "dv841a15-e867-331f-a658-6325de7c311e",
|
id: "db831a15-e876-481f-a658-6325de7c311e",
|
||||||
last_name: "Коломойцев",
|
last_name: "Константинопольская",
|
||||||
first_name: "Илья",
|
first_name: "Юлия",
|
||||||
patronymic: "Петрович",
|
patronymic: "Викторовна",
|
||||||
},
|
},
|
||||||
role: "owner",
|
role: null,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
||||||
@@ -734,7 +682,7 @@ export function clientsServer() {
|
|||||||
first_name: "Ольга",
|
first_name: "Ольга",
|
||||||
patronymic: "Александровна",
|
patronymic: "Александровна",
|
||||||
},
|
},
|
||||||
role: null,
|
role: "owner",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ export default {
|
|||||||
calendarLayout: "",
|
calendarLayout: "",
|
||||||
currentDate: moment(),
|
currentDate: moment(),
|
||||||
timeInformation: {
|
timeInformation: {
|
||||||
dayStartTime: "8:00",
|
dayStartTime: "0:00",
|
||||||
dayEndTime: "18:00",
|
dayEndTime: "20:00",
|
||||||
},
|
},
|
||||||
eventsData: [],
|
eventsData: [],
|
||||||
team: [
|
team: [
|
||||||
|
|||||||
@@ -1,22 +1,25 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.calendar-background-wrapper.flex.flex-col(
|
.calendar-background-wrapper.flex.flex-col(
|
||||||
ref="backgroundWrapper"
|
ref="backgroundWrapper"
|
||||||
:class="scrollPresence"
|
:class="horizontalScrollPresence"
|
||||||
)
|
)
|
||||||
|
.header-wrapper
|
||||||
|
.header(:style="backgroundExtendedWidth")
|
||||||
calendar-column(
|
calendar-column(
|
||||||
v-for="(owner, index) in filteredOwners"
|
v-for="(owner, index) in filteredOwners"
|
||||||
:key="owner.id"
|
:key="owner.id"
|
||||||
:owner-data="owner"
|
:owner-data="owner"
|
||||||
:style="calculateColumnPosition(index)"
|
:style="calculateColumnPosition(index)"
|
||||||
:day-events="filterEventsByOwner(owner)"
|
:day-events="filterEventsByOwner(owner)"
|
||||||
|
:day-start-time="dayStartTime"
|
||||||
|
:day-end-time="dayEndTime"
|
||||||
)
|
)
|
||||||
.header(:style="backgroundExtendedWidth")
|
|
||||||
.body.flex.flex-col(
|
.body.flex.flex-col(
|
||||||
:style="backgroundExtendedWidth"
|
:style="backgroundExtendedWidth"
|
||||||
)
|
)
|
||||||
.line-wrapper
|
.line-wrapper
|
||||||
.line.flex.items-center(
|
.line.flex.items-center(
|
||||||
v-for="hour in hoursArray"
|
v-for="hour in timeCoil"
|
||||||
:key="hour"
|
:key="hour"
|
||||||
)
|
)
|
||||||
.middle-line
|
.middle-line
|
||||||
@@ -28,10 +31,12 @@ export default {
|
|||||||
name: "CalendarBackground",
|
name: "CalendarBackground",
|
||||||
components: { CalendarColumn },
|
components: { CalendarColumn },
|
||||||
props: {
|
props: {
|
||||||
hoursArray: Array,
|
timeCoil: Array,
|
||||||
eventsData: Array,
|
eventsData: Array,
|
||||||
currentDate: Object,
|
currentDate: Object,
|
||||||
sidebarWidth: String,
|
sidebarWidth: String,
|
||||||
|
dayStartTime: Number,
|
||||||
|
dayEndTime: Number,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -56,11 +61,11 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
backgroundHeight() {
|
backgroundHeight() {
|
||||||
return (this.hoursArray.length - 1) * this.pixelsPerHour + 48;
|
return (this.timeCoil.length - 1) * this.pixelsPerHour + 48;
|
||||||
},
|
},
|
||||||
scrollPresence() {
|
horizontalScrollPresence() {
|
||||||
return {
|
return {
|
||||||
scroll: this.ownersArrayLength > 3,
|
"scroll-x": this.ownersArrayLength > 3 && this.backgroundHeight < 855,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
filteredOwners() {
|
filteredOwners() {
|
||||||
@@ -73,11 +78,11 @@ export default {
|
|||||||
};
|
};
|
||||||
this.eventsData.forEach(({ employees }) => {
|
this.eventsData.forEach(({ employees }) => {
|
||||||
let findedElement = employees.find((elem) => elem.role === "owner");
|
let findedElement = employees.find((elem) => elem.role === "owner");
|
||||||
let emptyObjectPresence = this.findObjectInArray(
|
let emptyDataPresence = this.findObjectInArray(
|
||||||
filteredArray,
|
filteredArray,
|
||||||
ownerAbsence
|
ownerAbsence
|
||||||
);
|
);
|
||||||
if (!findedElement && !emptyObjectPresence) {
|
if (!findedElement && !emptyDataPresence) {
|
||||||
filteredArray.push(ownerAbsence);
|
filteredArray.push(ownerAbsence);
|
||||||
}
|
}
|
||||||
if (findedElement) {
|
if (findedElement) {
|
||||||
@@ -147,13 +152,17 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.scroll
|
.scroll-x
|
||||||
overflow-x: scroll
|
overflow-x: scroll
|
||||||
|
overflow-y: hidden
|
||||||
|
|
||||||
.calendar-background-wrapper
|
.calendar-background-wrapper
|
||||||
width: 100%
|
width: 100%
|
||||||
position: relative
|
position: relative
|
||||||
|
|
||||||
|
.header-wrapper
|
||||||
|
position: relative
|
||||||
|
|
||||||
.header
|
.header
|
||||||
height: 48px
|
height: 48px
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.calendar-clock-column.flex.flex-col.items-end.gap-y-43.pt-9.pb-45px.px-3
|
.calendar-clock-column.flex.flex-col.items-end.gap-y-43.pt-9.pb-45px.px-3
|
||||||
span.text-base(
|
span.text-base(
|
||||||
v-for="hour in hoursArray"
|
v-for="hour in timeCoil"
|
||||||
:key="hour"
|
:key="hour"
|
||||||
:class="currentHourStyle(hour)"
|
:class="currentHourStyle(hour)"
|
||||||
) {{ hour }}
|
) {{ hour }}
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
export default {
|
export default {
|
||||||
name: "CalendarClockColumn",
|
name: "CalendarClockColumn",
|
||||||
props: {
|
props: {
|
||||||
hoursArray: Array,
|
timeCoil: Array,
|
||||||
currentTime: String,
|
currentTime: String,
|
||||||
currentDate: Object,
|
currentDate: Object,
|
||||||
dayEndTime: Number,
|
dayEndTime: Number,
|
||||||
@@ -59,4 +59,6 @@ export default {
|
|||||||
width: 80px
|
width: 80px
|
||||||
height: 100%
|
height: 100%
|
||||||
color: var(--font-dark-blue-color)
|
color: var(--font-dark-blue-color)
|
||||||
|
position: sticky
|
||||||
|
left: 0
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -6,11 +6,12 @@
|
|||||||
span.owner-name.font-medium.text-base.mr-6 {{ ownerName }}
|
span.owner-name.font-medium.text-base.mr-6 {{ ownerName }}
|
||||||
img.icon-wrapper.cursor-pointer(src="@/assets/icons/lock.svg")
|
img.icon-wrapper.cursor-pointer(src="@/assets/icons/lock.svg")
|
||||||
base-doc-ok-button
|
base-doc-ok-button
|
||||||
.px-1
|
.body
|
||||||
calendar-event-card(
|
calendar-event-card(
|
||||||
v-for="event in dayEvents"
|
v-for="event in dayEvents"
|
||||||
:key="event.id"
|
:key="event.id"
|
||||||
:ownerEvent="event"
|
:ownerEvent="event"
|
||||||
|
:style="eventCardPosition(event.start, event.end)"
|
||||||
)
|
)
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -23,6 +24,13 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
ownerData: Object,
|
ownerData: Object,
|
||||||
dayEvents: Array,
|
dayEvents: Array,
|
||||||
|
dayEndTime: Number,
|
||||||
|
dayStartTime: Number,
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
pixelsPerHour: 62,
|
||||||
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
ownerName() {
|
ownerName() {
|
||||||
@@ -34,6 +42,33 @@ export default {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
pixelsPerMinute() {
|
||||||
|
return this.pixelsPerHour / 60;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
eventCardPosition(startTime, endTime) {
|
||||||
|
let start = startTime
|
||||||
|
.slice(11, -4)
|
||||||
|
.split(":")
|
||||||
|
.map((elem) => parseInt(elem, 10));
|
||||||
|
let end = endTime.slice(11, -6);
|
||||||
|
let position =
|
||||||
|
(start[0] - this.dayStartTime) * this.pixelsPerHour +
|
||||||
|
start[1] * this.pixelsPerMinute;
|
||||||
|
if (
|
||||||
|
parseInt(start[0], 10) < this.dayStartTime ||
|
||||||
|
parseInt(end, 10) > this.dayEndTime
|
||||||
|
) {
|
||||||
|
return {
|
||||||
|
top: "0px",
|
||||||
|
visibility: "hidden",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
top: `${position}px`,
|
||||||
|
};
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@@ -45,6 +80,16 @@ export default {
|
|||||||
|
|
||||||
.header
|
.header
|
||||||
height: 48px
|
height: 48px
|
||||||
|
position: sticky
|
||||||
|
top: 0px
|
||||||
|
z-index: 5
|
||||||
|
width: inherit
|
||||||
|
border-right: 1px solid var(--border-light-grey-color)
|
||||||
|
background-color: var(--default-white)
|
||||||
|
|
||||||
|
.body
|
||||||
|
position: relative
|
||||||
|
z-index: 3
|
||||||
|
|
||||||
.avatar-wrapper
|
.avatar-wrapper
|
||||||
width: 32px
|
width: 32px
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ export default {
|
|||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
background-color: var(--bg-event-yellow-color)
|
background-color: var(--bg-event-yellow-color)
|
||||||
color: var(--font-black-color)
|
color: var(--font-black-color)
|
||||||
position: relative
|
position: absolute
|
||||||
z-index: 2
|
z-index: 3
|
||||||
|
|
||||||
.header
|
.header
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.schedule.ml-2.w-full(:style="scheduleWidth")
|
.schedule.ml-2.pb-5.w-full(:style="scheduleWidth")
|
||||||
calendar-header(
|
calendar-header(
|
||||||
:current-date="currentDate"
|
:current-date="currentDate"
|
||||||
:is-current-date="isCurrentDate"
|
:is-current-date="isCurrentDate"
|
||||||
@@ -7,19 +7,23 @@
|
|||||||
@next-date="nextDate"
|
@next-date="nextDate"
|
||||||
@selected-layout="selectedLayout"
|
@selected-layout="selectedLayout"
|
||||||
)
|
)
|
||||||
.schedule-body.flex
|
.schedule-body.flex(
|
||||||
|
:class="bodyVerticalScroll"
|
||||||
|
)
|
||||||
div
|
div
|
||||||
calendar-clock-column(
|
calendar-clock-column(
|
||||||
:hours-array="hoursArray"
|
:timeCoil="timeCoil"
|
||||||
:current-time="currentTime"
|
:current-time="currentTime"
|
||||||
:is-current-date="isCurrentDate"
|
:is-current-date="isCurrentDate"
|
||||||
:day-end-time="validateEndTime"
|
:day-end-time="validateEndTime"
|
||||||
)
|
)
|
||||||
calendar-background(
|
calendar-background(
|
||||||
:current-date="currentDate"
|
:current-date="currentDate"
|
||||||
:hours-array="hoursArray"
|
:time-coil="timeCoil"
|
||||||
:events-data="eventsData"
|
:events-data="eventsData"
|
||||||
:sidebar-width="sidebarWidth"
|
:sidebar-width="sidebarWidth"
|
||||||
|
:day-start-time="validateStartTime"
|
||||||
|
:day-end-time="validateEndTime"
|
||||||
)
|
)
|
||||||
.time-circle-indicator.left-74px(
|
.time-circle-indicator.left-74px(
|
||||||
v-if="isShownIndicator"
|
v-if="isShownIndicator"
|
||||||
@@ -67,7 +71,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentTime: "",
|
currentTime: "",
|
||||||
hoursArray: [],
|
timeCoil: [],
|
||||||
timer: null,
|
timer: null,
|
||||||
isCurrentDate: true,
|
isCurrentDate: true,
|
||||||
isShownIndicator: true,
|
isShownIndicator: true,
|
||||||
@@ -115,6 +119,11 @@ export default {
|
|||||||
"--sidebar-width": this.sidebarWidth,
|
"--sidebar-width": this.sidebarWidth,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
bodyVerticalScroll() {
|
||||||
|
return {
|
||||||
|
"scroll-y": this.scheduleHeight > 855,
|
||||||
|
};
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
previousDate() {
|
previousDate() {
|
||||||
@@ -133,7 +142,7 @@ export default {
|
|||||||
) {
|
) {
|
||||||
this.timer = setInterval(() => {
|
this.timer = setInterval(() => {
|
||||||
this.changeCurrentTime();
|
this.changeCurrentTime();
|
||||||
this.changeHoursArray();
|
this.changeTimeCoil();
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -144,20 +153,20 @@ export default {
|
|||||||
changeCurrentTime() {
|
changeCurrentTime() {
|
||||||
this.currentTime = moment().format("HH:mm:ss");
|
this.currentTime = moment().format("HH:mm:ss");
|
||||||
},
|
},
|
||||||
hoursArrayInitialization() {
|
timeCoilInitialization() {
|
||||||
this.hoursArray = [];
|
this.timeCoil = [];
|
||||||
for (let i = this.validateStartTime; i <= this.validateEndTime; i++) {
|
for (let i = this.validateStartTime; i <= this.validateEndTime; i++) {
|
||||||
if (
|
if (
|
||||||
i === this.hours &&
|
i === this.hours &&
|
||||||
this.hours !== this.validateEndTime &&
|
this.hours !== this.validateEndTime &&
|
||||||
this.isCurrentDate
|
this.isCurrentDate
|
||||||
) {
|
) {
|
||||||
this.hoursArray.push(this.hoursMinutes);
|
this.timeCoil.push(this.hoursMinutes);
|
||||||
} else this.hoursArray.push(`${i}:00`);
|
} else this.timeCoil.push(`${i}:00`);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeHoursArray() {
|
changeTimeCoil() {
|
||||||
this.hoursArray = this.hoursArray.map((elem) => {
|
this.timeCoil = this.timeCoil.map((elem) => {
|
||||||
if (this.convertTime(elem, 0, -3) === this.hours) {
|
if (this.convertTime(elem, 0, -3) === this.hours) {
|
||||||
return this.hoursMinutes;
|
return this.hoursMinutes;
|
||||||
}
|
}
|
||||||
@@ -195,7 +204,7 @@ export default {
|
|||||||
this.timer
|
this.timer
|
||||||
) {
|
) {
|
||||||
this.stopTimer();
|
this.stopTimer();
|
||||||
this.hoursArrayInitialization();
|
this.timeCoilInitialization();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
currentDate: function () {
|
currentDate: function () {
|
||||||
@@ -204,18 +213,18 @@ export default {
|
|||||||
this.isShownIndicator = this.isCurrentDate;
|
this.isShownIndicator = this.isCurrentDate;
|
||||||
if (this.timer) {
|
if (this.timer) {
|
||||||
this.stopTimer();
|
this.stopTimer();
|
||||||
this.hoursArrayInitialization();
|
this.timeCoilInitialization();
|
||||||
}
|
}
|
||||||
if (this.isCurrentDate) {
|
if (this.isCurrentDate) {
|
||||||
this.changeCurrentTime();
|
this.changeCurrentTime();
|
||||||
this.hoursArrayInitialization();
|
this.timeCoilInitialization();
|
||||||
this.startTimer();
|
this.startTimer();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.changeCurrentTime();
|
this.changeCurrentTime();
|
||||||
this.hoursArrayInitialization();
|
this.timeCoilInitialization();
|
||||||
this.startTimer();
|
this.startTimer();
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
@@ -229,6 +238,9 @@ export default {
|
|||||||
background-color: var(--default-white)
|
background-color: var(--default-white)
|
||||||
width: calc(100% - (var(--sidebar-width) + 8px))
|
width: calc(100% - (var(--sidebar-width) + 8px))
|
||||||
|
|
||||||
|
.scroll-y
|
||||||
|
overflow-y: scroll
|
||||||
|
|
||||||
.time-line-indicator
|
.time-line-indicator
|
||||||
width: calc(100% - 80px)
|
width: calc(100% - 80px)
|
||||||
border-top: 1px solid var(--bg-event-red-color)
|
border-top: 1px solid var(--bg-event-red-color)
|
||||||
@@ -243,4 +255,5 @@ export default {
|
|||||||
|
|
||||||
.schedule-body
|
.schedule-body
|
||||||
position: relative
|
position: relative
|
||||||
|
height: 855px
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user