diff --git a/db.sqlite3 b/db.sqlite3
index 3c316fafc..c3f627de2 100644
Binary files a/db.sqlite3 and b/db.sqlite3 differ
diff --git a/front/package-lock.json b/front/package-lock.json
index 2d41a28b5..58d710878 100644
--- a/front/package-lock.json
+++ b/front/package-lock.json
@@ -1,17 +1,18 @@
{
"name": "front",
- "version": "0.0.10",
+ "version": "0.0.11",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "front",
- "version": "0.0.10",
+ "version": "0.0.11",
"dependencies": {
"@fullcalendar/core": "^6.1.8",
"@fullcalendar/daygrid": "^6.1.8",
"@fullcalendar/interaction": "^6.1.8",
"@fullcalendar/list": "^6.1.8",
+ "@fullcalendar/multimonth": "^6.1.9",
"@fullcalendar/timegrid": "^6.1.8",
"@fullcalendar/vue3": "^6.1.8",
"@mdi/font": "7.0.96",
@@ -2695,19 +2696,19 @@
"dev": true
},
"node_modules/@fullcalendar/core": {
- "version": "6.1.8",
- "resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-6.1.8.tgz",
- "integrity": "sha512-i8JBIvZCWGO9dsMEDcx9bnsQZ9PtGSJdOXGgWbhLaGq2iq41OBdp9g9gM4b/Otv2oK8bL5Gl6CsMmb/HkDtA6Q==",
+ "version": "6.1.9",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-6.1.9.tgz",
+ "integrity": "sha512-eeG+z9BWerdsU9Ac6j16rpYpPnE0wxtnEHiHrh/u/ADbGTR3hCOjCD9PxQOfhOTHbWOVs7JQunGcksSPu5WZBQ==",
"dependencies": {
"preact": "~10.12.1"
}
},
"node_modules/@fullcalendar/daygrid": {
- "version": "6.1.8",
- "resolved": "https://registry.npmjs.org/@fullcalendar/daygrid/-/daygrid-6.1.8.tgz",
- "integrity": "sha512-kCZxQFKb9Vqa3CZRX0v7rMSJ2mlTt4gDpyLfiNJKxUAq7W51uKurPaFZWicaXy1ESHVBxKNlbx5uNjBpyu50JQ==",
+ "version": "6.1.9",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/daygrid/-/daygrid-6.1.9.tgz",
+ "integrity": "sha512-o/6joH/7lmVHXAkbaa/tUbzWYnGp/LgfdiFyYPkqQbjKEeivNZWF1WhHqFbhx0zbFONSHtrvkjY2bjr+Ef2quQ==",
"peerDependencies": {
- "@fullcalendar/core": "~6.1.8"
+ "@fullcalendar/core": "~6.1.9"
}
},
"node_modules/@fullcalendar/interaction": {
@@ -2726,6 +2727,17 @@
"@fullcalendar/core": "~6.1.8"
}
},
+ "node_modules/@fullcalendar/multimonth": {
+ "version": "6.1.9",
+ "resolved": "https://registry.npmjs.org/@fullcalendar/multimonth/-/multimonth-6.1.9.tgz",
+ "integrity": "sha512-YpH1NL6RzdM1wO2nFJ3pNMo9xhd6i2WuE+e7SnGi7q1lO+ZZ77h5Fja5JKcpuIQUFHpi+m6vTzihIV8DT44NnQ==",
+ "dependencies": {
+ "@fullcalendar/daygrid": "~6.1.9"
+ },
+ "peerDependencies": {
+ "@fullcalendar/core": "~6.1.9"
+ }
+ },
"node_modules/@fullcalendar/timegrid": {
"version": "6.1.8",
"resolved": "https://registry.npmjs.org/@fullcalendar/timegrid/-/timegrid-6.1.8.tgz",
diff --git a/front/package.json b/front/package.json
index a74da2078..c2a2ec82a 100644
--- a/front/package.json
+++ b/front/package.json
@@ -1,6 +1,6 @@
{
"name": "front",
- "version": "0.0.10",
+ "version": "0.0.11",
"scripts": {
"dev": "vite",
"build": "vite build",
@@ -14,6 +14,7 @@
"@fullcalendar/daygrid": "^6.1.8",
"@fullcalendar/interaction": "^6.1.8",
"@fullcalendar/list": "^6.1.8",
+ "@fullcalendar/multimonth": "^6.1.9",
"@fullcalendar/timegrid": "^6.1.8",
"@fullcalendar/vue3": "^6.1.8",
"@mdi/font": "7.0.96",
diff --git a/front/src/components/UI/Calendar.vue b/front/src/components/UI/Calendar.vue
index bd7529c18..9c0b50ffe 100644
--- a/front/src/components/UI/Calendar.vue
+++ b/front/src/components/UI/Calendar.vue
@@ -11,6 +11,8 @@ import interactionPlugin from '@fullcalendar/interaction'
import listPlugin from '@fullcalendar/list'
import timeGridPlugin from '@fullcalendar/interaction'
import { axiosApiInstance } from '@/utils/axios-api'
+import multiMonthPlugin from '@fullcalendar/multimonth'
+
export default {
name: 'Calendar',
@@ -22,25 +24,51 @@ export default {
setup() {
const calendarOptions = reactive({
- plugins: [ dayGridPlugin, interactionPlugin, timeGridPlugin, listPlugin ],
+ plugins: [ dayGridPlugin, interactionPlugin, timeGridPlugin, listPlugin, multiMonthPlugin ],
initialView: 'dayGridMonth',
+
locale: 'ru',
buttonText: {
today: 'Сегодня',
month: 'Месяц',
week: 'Неделя',
day: 'День',
- list: 'Список'
+ list: 'Список',
+ year: 'Год'
},
firstDay:'1',
events: [],
editable: true,
headerToolbar: {
- left: 'prev, next, today',
+ left: 'prev next today multiMonthYear',
center: 'title',
- right: 'dayGridMonth, dayGridWeek, dayGridDay, listDay'
+ right: 'dayGridMonth listDay listYear'
},
-
+ multiMonthMaxColumns: 2,
+ buttonIcons: {
+ prev:'chevron-left',
+ },
+ displayEventEnd: true,
+
+
+ dayMaxEventRows: 2,
+ moreLinkContent: function(arg) {
+ return arg.shortText + ' события'
+ },
+ views: {
+ multiMonthYear: {
+ aspectRatio: 2,
+ moreLinkContent: function(arg) {
+ return arg.num
+ },
+ // titleFormat: { year: 'numeric', month: '2-digit', day: '2-digit' }
+ }
+ },
+ // columnFormat: {
+ allDayText: 'Весь день',
+ noEventsContent: 'На сегодня событий нет',
+ selectable: true,
+ aspectRatio: 2,
dateClick: (arg) => {
console.log(arg.date);
}
@@ -53,12 +81,10 @@ export default {
for (let x in data.data) {
data.data[x].map(e=>{
- let d = new Date(e.planned_date)
-
-
-
+ let d = new Date(e.planned_date)
// console.log(, 'e---------d.addDays(e.count_days)--------e')
- calendarOptions.events.push({ title: x, start: e.planned_date, end: new Date(d.setDate(d.getDate() + e.count_days)).toISOString().split('T')[0]})
+ calendarOptions.events.push({title: x, start: e.planned_date, end: new Date(d.setDate(d.getDate() + e.count_days)).toISOString().split('T')[0]})
+
}
)
@@ -84,31 +110,40 @@ export default {
\ No newline at end of file
diff --git a/front/src/components/carousel-list.vue b/front/src/components/carousel-list.vue
index 74d7ecbfc..baf6c152a 100644
--- a/front/src/components/carousel-list.vue
+++ b/front/src/components/carousel-list.vue
@@ -2,7 +2,7 @@
-
+ > -->
{{n.status}}
@@ -45,7 +45,7 @@
-
+
@@ -82,7 +82,7 @@ export default {