P-47
This commit is contained in:
1 parent
5b600c8091
commit
5c77ef4747
5 files changed
+153
-17
No files matched your search
@@ -119,8 +119,8 @@ export default {
|
|||||||
const MyMonth = ref(selectdate.value.getMonth() + 1);
|
const MyMonth = ref(selectdate.value.getMonth() + 1);
|
||||||
const calendarForMy = ref([]);
|
const calendarForMy = ref([]);
|
||||||
const eventFromCalendar = ref({})
|
const eventFromCalendar = ref({})
|
||||||
// const idEvent = ref(null)
|
const idEvent = ref(null)
|
||||||
const idEvent = ref(1)
|
// const idEvent = ref(1)
|
||||||
|
|
||||||
const getMonth = (month) => {
|
const getMonth = (month) => {
|
||||||
MyMonth.value = month + 1;
|
MyMonth.value = month + 1;
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<template>
|
||||||
|
<v-col class="pb-2 d-flex flex-column ml-n3">
|
||||||
|
<v-row no-gutters class="gap">
|
||||||
|
<v-col >
|
||||||
|
<v-checkbox-btn color="indigo-darken-4" label="Весь день" />
|
||||||
|
</v-col>
|
||||||
|
<v-col></v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-col>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
dateEvent: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
setup(props, { emit }) {
|
||||||
|
console.log(props.dateEvent, 'dateEvent')
|
||||||
|
|
||||||
|
// const propsDateEvent = computed({
|
||||||
|
// get: () => props.dateEvent,
|
||||||
|
// set: (value) => emit("update:dateEvent", value),
|
||||||
|
// });
|
||||||
|
|
||||||
|
return {
|
||||||
|
// propsDateEvent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style></style>
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
<template>
|
||||||
|
<v-col class="flex-column d-flex">
|
||||||
|
<v-row no-gutters class="map">
|
||||||
|
<v-col lg="4">
|
||||||
|
<v-autocomplete
|
||||||
|
v-model="values"
|
||||||
|
variant="outlined"
|
||||||
|
:items="items"
|
||||||
|
density="compact"
|
||||||
|
disabled
|
||||||
|
hide-details
|
||||||
|
></v-autocomplete>
|
||||||
|
</v-col>
|
||||||
|
<v-col class="flex-grow-0 px-2 pt-2">за</v-col>
|
||||||
|
<v-col class="flex-grow-0 pr-2"
|
||||||
|
><v-text-field disabled min-width="55" density="compact" variant="outlined" hide-details
|
||||||
|
>10</v-text-field
|
||||||
|
></v-col
|
||||||
|
>
|
||||||
|
<v-col lg=3>
|
||||||
|
<v-autocomplete
|
||||||
|
v-model="valuesTime"
|
||||||
|
variant="outlined"
|
||||||
|
:items="itemsTime"
|
||||||
|
density="compact"
|
||||||
|
disabled
|
||||||
|
hide-details
|
||||||
|
></v-autocomplete>
|
||||||
|
</v-col>
|
||||||
|
<v-col class="flex-grow-0 pt-3 pl-3">
|
||||||
|
<v-icon icon="mdi-close cursor-pointer"
|
||||||
|
size="small"
|
||||||
|
color="grey" disabled></v-icon>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-col>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
setup() {
|
||||||
|
const values = ["браузером"];
|
||||||
|
const items = ["браузером", "bar", "fizz", "buzz"];
|
||||||
|
|
||||||
|
const valuesTime = ["минут"];
|
||||||
|
const itemsTime = ["часов", "минут", "fizz", "buzz"];
|
||||||
|
return {
|
||||||
|
values,
|
||||||
|
items,
|
||||||
|
valuesTime,
|
||||||
|
itemsTime
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style></style>
|
||||||
@@ -18,6 +18,8 @@
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
readonly
|
readonly
|
||||||
|
hide-details
|
||||||
|
:disabled="disbleTime"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend-inner>
|
<template v-slot:prepend-inner>
|
||||||
<v-icon
|
<v-icon
|
||||||
@@ -63,6 +65,8 @@
|
|||||||
v-model="timeEvent"
|
v-model="timeEvent"
|
||||||
:active="menutime"
|
:active="menutime"
|
||||||
:focus="menutime"
|
:focus="menutime"
|
||||||
|
hide-details
|
||||||
|
:disabled="disbleTime"
|
||||||
>
|
>
|
||||||
</v-textarea>
|
</v-textarea>
|
||||||
<v-menu
|
<v-menu
|
||||||
@@ -100,6 +104,7 @@ export default {
|
|||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
const menudate = ref(false);
|
const menudate = ref(false);
|
||||||
const menutime = ref(false);
|
const menutime = ref(false);
|
||||||
|
const disbleTime = ref(false)
|
||||||
|
|
||||||
const propsDateEvent = computed({
|
const propsDateEvent = computed({
|
||||||
get: () => props.dateEvent,
|
get: () => props.dateEvent,
|
||||||
@@ -112,7 +117,16 @@ export default {
|
|||||||
props.order[0] == 2
|
props.order[0] == 2
|
||||||
? new Date(propsDateEvent.value.date_start)
|
? new Date(propsDateEvent.value.date_start)
|
||||||
: new Date(propsDateEvent.value.date_end);
|
: new Date(propsDateEvent.value.date_end);
|
||||||
return date;
|
|
||||||
|
let clockStart = `${new Date(propsDateEvent.value.date_start).getHours()}:${String(
|
||||||
|
new Date(propsDateEvent.value.date_start).getMinutes()
|
||||||
|
).padStart(2, "0")}`
|
||||||
|
let clockEnd = `${new Date(propsDateEvent.value.date_end).getHours()}:${String(
|
||||||
|
new Date(propsDateEvent.value.date_end).getMinutes()
|
||||||
|
).padStart(2, "0")}`
|
||||||
|
if (clockStart == '0:00' && clockEnd == "23:59" && formatDash(propsDateEvent.value.date_start) == formatDash(propsDateEvent.value.date_end)) disbleTime.value = true
|
||||||
|
console.log(clockStart, clockEnd, formatDash(propsDateEvent.value.date_start), formatDash(propsDateEvent.value.date_end))
|
||||||
|
return date;
|
||||||
},
|
},
|
||||||
set(newValue) {
|
set(newValue) {
|
||||||
if (props.order[0] == 2)
|
if (props.order[0] == 2)
|
||||||
@@ -132,6 +146,12 @@ export default {
|
|||||||
props.order[0] == 2
|
props.order[0] == 2
|
||||||
? propsDateEvent.value.date_start
|
? propsDateEvent.value.date_start
|
||||||
: propsDateEvent.value.date_end;
|
: propsDateEvent.value.date_end;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return `${new Date(time).getHours()}:${String(
|
return `${new Date(time).getHours()}:${String(
|
||||||
new Date(time).getMinutes()
|
new Date(time).getMinutes()
|
||||||
).padStart(2, "0")}`;
|
).padStart(2, "0")}`;
|
||||||
@@ -156,6 +176,7 @@ export default {
|
|||||||
menutime,
|
menutime,
|
||||||
formatComa,
|
formatComa,
|
||||||
timeEvent,
|
timeEvent,
|
||||||
|
disbleTime
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -90,11 +90,10 @@
|
|||||||
<v-row no-gutters class="gap">
|
<v-row no-gutters class="gap">
|
||||||
<time-select
|
<time-select
|
||||||
:dateEvent="propsEvent.event"
|
:dateEvent="propsEvent.event"
|
||||||
|
|
||||||
@update:dateEvent="propsEvent.event = $event"
|
@update:dateEvent="propsEvent.event = $event"
|
||||||
:order="[2, 1]"
|
:order="[2, 1]"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<v-col class="order-3 flex-grow-0">
|
<v-col class="order-3 flex-grow-0">
|
||||||
<v-icon icon="mdi-minus pt-4" color="grey-darken-1" />
|
<v-icon icon="mdi-minus pt-4" color="grey-darken-1" />
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -102,24 +101,39 @@
|
|||||||
<time-select
|
<time-select
|
||||||
:dateEvent="propsEvent.event"
|
:dateEvent="propsEvent.event"
|
||||||
:order="[4, 5]"
|
:order="[4, 5]"
|
||||||
|
|
||||||
@update:dateEvent="propsEvent.event = $event"
|
@update:dateEvent="propsEvent.event = $event"
|
||||||
/>
|
/>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row no-gutters>
|
<v-row no-gutters>
|
||||||
<v-col>
|
<period-events
|
||||||
<v-textarea
|
:dateEvent="propsEvent.event"
|
||||||
density="compact"
|
|
||||||
label="Добавить название"
|
/>
|
||||||
row-height="25"
|
|
||||||
rows="1"
|
|
||||||
variant="outlined"
|
|
||||||
v-model="propsEvent.event.name"
|
|
||||||
></v-textarea
|
|
||||||
></v-col>
|
|
||||||
</v-row> </v-col
|
</v-row> </v-col
|
||||||
></v-row>
|
></v-row>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
<v-row no-gutters class="align-top flex-grow-0">
|
||||||
|
<v-col class="text-body-2 text-text_grey pt-3 h-0" lg="2">
|
||||||
|
Напоминание
|
||||||
|
</v-col>
|
||||||
|
<v-col class="d-flex flex-column">
|
||||||
|
<v-row no-gutters class="gap flex-grow-0">
|
||||||
|
<reminder-event />
|
||||||
|
</v-row>
|
||||||
|
<v-row no-gutters class="flex-grow-0">
|
||||||
|
<v-col>
|
||||||
|
<v-btn
|
||||||
|
disabled
|
||||||
|
prepend-icon="mdi-plus"
|
||||||
|
variant="text"
|
||||||
|
class="text-body-2 text-text_grey"
|
||||||
|
>
|
||||||
|
Добавить уведомление
|
||||||
|
</v-btn>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-col></v-row
|
||||||
|
>
|
||||||
<v-row no-gutters class="align-center">
|
<v-row no-gutters class="align-center">
|
||||||
<v-col class="text-body-2 text-text_grey pb-5" lg="2"> Файлы </v-col>
|
<v-col class="text-body-2 text-text_grey pb-5" lg="2"> Файлы </v-col>
|
||||||
|
|
||||||
@@ -154,9 +168,18 @@ import { formatComa } from "@/utils/universal_functions";
|
|||||||
import TimeSelect from "@/components/calendar_of_events/UI_calendar/timeSelect.vue";
|
import TimeSelect from "@/components/calendar_of_events/UI_calendar/timeSelect.vue";
|
||||||
import { useAccountStore } from "@/store/AccountStore";
|
import { useAccountStore } from "@/store/AccountStore";
|
||||||
import UploadingFile from "@/components/UI/defaultportal/uploading-file.vue";
|
import UploadingFile from "@/components/UI/defaultportal/uploading-file.vue";
|
||||||
|
import ReminderEvent from "@/components/calendar_of_events/UI_calendar/reminderEvent.vue";
|
||||||
|
import PeriodEvents from "@/components/calendar_of_events/UI_calendar/periodEvents.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { calendarCreateSelect, DialogCreate, TimeSelect, UploadingFile },
|
components: {
|
||||||
|
calendarCreateSelect,
|
||||||
|
DialogCreate,
|
||||||
|
TimeSelect,
|
||||||
|
UploadingFile,
|
||||||
|
ReminderEvent,
|
||||||
|
PeriodEvents,
|
||||||
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
eventCalendar: {
|
eventCalendar: {
|
||||||
|
|||||||
Reference in new issue
Block a user