diff --git a/src/front/src/components/calendar_of_events/BigCalendar.vue b/src/front/src/components/calendar_of_events/BigCalendar.vue
index 471aea576..f026f86c9 100644
--- a/src/front/src/components/calendar_of_events/BigCalendar.vue
+++ b/src/front/src/components/calendar_of_events/BigCalendar.vue
@@ -119,7 +119,8 @@ export default {
const MyMonth = ref(selectdate.value.getMonth() + 1);
const calendarForMy = ref([]);
const eventFromCalendar = ref({})
- const idEvent = ref(null)
+ // const idEvent = ref(null)
+ const idEvent = ref(2)
const getMonth = (month) => {
MyMonth.value = month + 1;
@@ -151,7 +152,7 @@ export default {
.then((res) => {
eventFromCalendar.value = res.data
if (idEvent.value==null) {
- eventFromCalendar.value.event = {name:'', participant: [], files: [], date_start: "", date_end: "", period: null, description: '', calendar: null}
+ eventFromCalendar.value.event = {name:'', participant: [accountStore.user.is_idEmployee], files: [], date_start: "", date_end: "", period: null, description: '', calendar: null}
}
// res.data.forEach(
diff --git a/src/front/src/components/calendar_of_events/calendar-create-select.vue b/src/front/src/components/calendar_of_events/calendar-create-select.vue
index 2140b7bf0..6f271fde4 100644
--- a/src/front/src/components/calendar_of_events/calendar-create-select.vue
+++ b/src/front/src/components/calendar_of_events/calendar-create-select.vue
@@ -17,7 +17,7 @@
{{ item.title }}
- {{ item }}
+
{
- // if (props.okey == "selected") {
- // if (val.id != accountStore.user.is_idEmployee) {
- // val.selected = !val.selected;
- // } else {
- // val.editor = !val.editor;
- // }
- // }
- // };
const cbstaff = (item, value) => {
item.forEach((e) => {
- // account(e);
+
if (e.id != accountStore.user.is_idEmployee) {
e[props.okey] = value;
}
@@ -210,9 +201,10 @@ export default {
cbstaff(e.employees, value);
}
});
- console.log(item, "item");
+
};
+
function onFilter(item, itemText) {
return (
item.includes(filtered.value) ||
diff --git a/src/front/src/components/calendar_of_events/calendar-create.vue b/src/front/src/components/calendar_of_events/calendar-create.vue
index 1f89af227..8f23c7765 100644
--- a/src/front/src/components/calendar_of_events/calendar-create.vue
+++ b/src/front/src/components/calendar_of_events/calendar-create.vue
@@ -185,6 +185,7 @@ export default {
const staff = ref([]);
axiosApiInstance
+
.get("api/calendar_of_events/get_employees/")
.then((res) => {
staff.value = res.data.filter((e) => e.employees.length > 0);
@@ -266,7 +267,7 @@ export default {
rules,
titleCard,
newCalendar,
- newStaff
+ newStaff,
};
},
};
diff --git a/src/front/src/components/calendar_of_events/event-create.vue b/src/front/src/components/calendar_of_events/event-create.vue
index 001cd6a1f..a90046ff2 100644
--- a/src/front/src/components/calendar_of_events/event-create.vue
+++ b/src/front/src/components/calendar_of_events/event-create.vue
@@ -8,7 +8,7 @@
-
+
Название
@@ -23,6 +23,18 @@
v-model="propsEvent.event.name"
>
+
+
+
+ Участники
+
+
+
+
Календарь
@@ -48,7 +60,7 @@
{{ item.title }}
-
+
{{ item.title }}
-
+
+
+ Дата и время
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+ v-model="propsEvent.event.description"
+ >
-
-