diff --git a/src/front/src/components/about_inspection/open_vacancies/ResponseVacancies.vue b/src/front/src/components/about_inspection/open_vacancies/ResponseVacancies.vue
index 0658986d1..cdfa6f962 100644
--- a/src/front/src/components/about_inspection/open_vacancies/ResponseVacancies.vue
+++ b/src/front/src/components/about_inspection/open_vacancies/ResponseVacancies.vue
@@ -4,7 +4,7 @@
Откликнуться на вакансию
-
+
-
+
-
+
-
- Отправить
-
+ Отправить
@@ -48,77 +36,60 @@
-
diff --git a/src/front/src/components/calendar_of_events/EventCreate.vue b/src/front/src/components/calendar_of_events/EventCreate.vue
index fe5dcd16f..88cabbed6 100644
--- a/src/front/src/components/calendar_of_events/EventCreate.vue
+++ b/src/front/src/components/calendar_of_events/EventCreate.vue
@@ -5,7 +5,6 @@
@postData="postData"
@closeDialog="$emit('closeDialog')"
@delObject="delEvent(propsEvent?.event?.id)"
- ref="createDialog"
>
@@ -30,8 +29,9 @@
@@ -71,12 +71,10 @@
-
-
-
+
Дата и время
@@ -185,14 +183,13 @@
\ No newline at end of file
diff --git a/src/front/src/components/carousel-list.vue b/src/front/src/components/carousel-list.vue
index e19ba5d25..d4a7ab662 100644
--- a/src/front/src/components/carousel-list.vue
+++ b/src/front/src/components/carousel-list.vue
@@ -15,8 +15,8 @@
-
@@ -102,7 +102,7 @@ export default {
/**
* Получает объект alert из хранилища alert для уведомлений.
*/
- const feedalert = useAlertStore().alert;
+ const alertStore = useAlertStore();
/**
* Интервал переключения слайдов в миллисекундах.
@@ -116,10 +116,8 @@ export default {
const getfromserver = () => {
axiosApiInstance.get('api/navigation/carousels/').then((result) => {
if (result.data.mess !== '') {
- feedalert.alert = true;
- feedalert.text = result.data.mess;
- feedalert.color = 'red-darken-2';
- feedalert.ico = 'mdi-alert-outline';
+ alertStore.showSuccess(result.data.mess);
+
}
if (result.data.result.length > 0) {
diff --git a/src/front/src/components/load-round.vue b/src/front/src/components/load-round.vue
index 8631b4b05..7ec4e0269 100644
--- a/src/front/src/components/load-round.vue
+++ b/src/front/src/components/load-round.vue
@@ -1,118 +1,106 @@
-
-
+
+
+
+
+
+ Ежедневная статистика по сотрудникам
-
-
-
- Ежедневная статистика по сотрудникам
-
-
-
-
- 1. Скачать файл ежедневной статистики
-
-
-
-
-
-
-
-
-
- 2. Загрузить данные на сервер
-
-
-
-
-
-
-
-
-
-
-
+
+
+ 1. Скачать файл ежедневной статистики
+
+
+
+
+
+
+
+
+ 2. Загрузить данные на сервер
+
+
+
+
+
+
+
+
+
+
-
+
+
+
-
\ No newline at end of file
+
diff --git a/src/front/src/layouts/default/DefaultPortal.vue b/src/front/src/layouts/default/DefaultPortal.vue
index 1b3448e6d..7b66ca8c5 100644
--- a/src/front/src/layouts/default/DefaultPortal.vue
+++ b/src/front/src/layouts/default/DefaultPortal.vue
@@ -1,11 +1,30 @@
-
-
+
+
-
+
@@ -13,15 +32,18 @@
-
-
-
+
F.A.Q.
-
@@ -36,7 +58,11 @@
-
+
mdi-lightbulb-outline
@@ -48,20 +74,25 @@
-
+
- {{
- drawer_right == true
- ? "Скрыть пользователей"
- : "Показать пользователей"
- }}
+ {{ drawer_right == true ? 'Скрыть пользователей' : 'Показать пользователей' }}
-
+
Выход
@@ -74,20 +105,34 @@
-
+
-
+
-
-
+ >
@@ -96,18 +141,34 @@
-
+
-
+
{{ x.name }}
-
+
{{ child.name }}
@@ -117,8 +178,15 @@
-
+
@@ -133,7 +201,6 @@
-
@@ -148,18 +215,26 @@
-
-
+
Добро пожаловать на портал МИ ФНС России по ЦОД № 2
@@ -167,7 +242,10 @@
Авторизуйтесь для получения доступа к контенту портала
@@ -178,30 +256,37 @@
-
+
-
-
diff --git a/src/front/src/store/UseAlertStore.js b/src/front/src/store/UseAlertStore.js
index 562921ba5..01021249d 100644
--- a/src/front/src/store/UseAlertStore.js
+++ b/src/front/src/store/UseAlertStore.js
@@ -1,14 +1,32 @@
-import { defineStore } from 'pinia'
-import { ref } from 'vue'
+import { defineStore } from 'pinia';
+import { ref } from 'vue';
-export const useAlertStore = defineStore('uniAlert', () => {
+export const useAlertStore = defineStore('uniAlert', () => {
+ const alert = ref({ alert: false, text: '', ico: 'mdi-plus', color: '' });
- const alert = ref({ "alert": false,
- "text": '',
- "ico": 'mdi-plus',
- "color": ''
- })
-
- return { alert }
+ const show = ({ text, ico = 'mdi-information-outline', color = '#475569' }) => {
+ alert.value = { alert: true, text, ico, color };
+ };
-})
\ No newline at end of file
+ const showSuccess = (text) => {
+ show({ text, ico: 'mdi-check-circle-outline', color: '#3F6B5C' });
+ };
+
+ const showError = (text = 'Произошла ошибка') => {
+ show({ text, ico: 'mdi-alert-circle-outline', color: '#8B3A3A' });
+ };
+
+ const showWarning = (text) => {
+ show({ text, ico: 'mdi-alert-outline', color: '#A66B2E' });
+ };
+
+ const showInfo = (text) => {
+ show({ text, ico: 'mdi-information-outline', color: '#3F5A7A' });
+ };
+
+ const hide = () => {
+ alert.value.alert = false;
+ };
+
+ return { alert, show, showSuccess, showError, showWarning, hide };
+});
diff --git a/src/front/src/store/calendarStore.js b/src/front/src/store/calendarStore.js
index fb6375f57..878e63d16 100644
--- a/src/front/src/store/calendarStore.js
+++ b/src/front/src/store/calendarStore.js
@@ -23,6 +23,10 @@ export const useCalendarStore = defineStore('calendarStore', () => {
const showEventDialog = ref(false);
const showViewDialog = ref(false);
+ const showCreateCalendarDialog = ref(false);
+ const createCalendarInitial = ref(null);
+ let createCalendarResolver = null;
+
// Массив ID скрытых календарей. Загружаем из localStorage при инициализации.
const hiddenCalendarIds = ref([]);
@@ -320,6 +324,30 @@ export const useCalendarStore = defineStore('calendarStore', () => {
showEventDialog.value = true;
};
+ const requestCreateCalendar = (initial = null) => {
+ // Если уже открыт — резолвим предыдущий запрос как отменённый
+ if (createCalendarResolver) {
+ createCalendarResolver(null);
+ createCalendarResolver = null;
+ }
+
+ createCalendarInitial.value = initial;
+ showCreateCalendarDialog.value = true;
+
+ return new Promise((resolve) => {
+ createCalendarResolver = resolve;
+ });
+ };
+
+ const resolveCreateCalendar = (createdCalendar = null) => {
+ if (createCalendarResolver) {
+ createCalendarResolver(createdCalendar);
+ createCalendarResolver = null;
+ }
+ showCreateCalendarDialog.value = false;
+ createCalendarInitial.value = null;
+ };
+
return {
// State
selectedDate,
@@ -334,6 +362,8 @@ export const useCalendarStore = defineStore('calendarStore', () => {
hiddenCalendarIds,
holidays,
dictEmployeesLoaded,
+ showCreateCalendarDialog,
+ createCalendarInitial,
// Getters
formattedSelectedDate,
@@ -367,5 +397,7 @@ export const useCalendarStore = defineStore('calendarStore', () => {
loadEmployees,
setSelectedEvent,
editFromView,
+ requestCreateCalendar,
+ resolveCreateCalendar,
};
});