На проверку

This commit is contained in:
iriska-gri committed 2023-09-22 15:15:59 +03:00
1 parent ababe895c1
commit dd90cfb444
9 files changed
+173 -60

No files matched your search

+72 -37
View File
@@ -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 {
</script>
<style>
.red {
background: rgb(235, 77, 77) !important;
color: whitesmoke !important;
}
.blue {
background: rgb(59, 59, 163) !important;
color: whitesmoke !important;
}
.orange {
background: orange !important;
color: white !important;
}
.green {
background: rgb(49, 155, 49) !important;
color: white !important;
}
.blue,
.orange,
.red,
.green {
font-size: 13px;
font-weight: 500;
text-transform: capitalize;
}
.event-item {
padding: 2px 0 2px 4px !important;
}
#fc-dom-1:first-letter {
text-transform: capitalize;
}
.fc-toolbar {
padding: 0px;
background-color: #f8f8f8;
}
.fc-day-header {
font-weight: bold;
text-align: center;
}
.fc-day {
border: none;
}
.fc-time-grid-event {
background-color: #e6e6e6;
border: none;
color: #000;
}
.fc-event-title {
font-weight: bold;
}
.fc .fc-toolbar.fc-header-toolbar {
padding-bottom: 1.2em;
margin-bottom: 0px;
}
.fc .fc-daygrid-day-events {
margin-top: -7px;
}
.fc {
background-color: #ffffff;
}
</style>
+1 -1
View File
@@ -2,7 +2,7 @@
<v-carousel
cover
height="300"
height="350"
hide-delimiters
hide-delimiter-background
show-arrows="hover"
+4 -4
View File
@@ -30,12 +30,12 @@
elevation="0"
>
<v-img
<!-- <v-img
height="100"
:src="`${burl}${n.img}`"
cover
class="text-white"
>
> -->
<v-card class="h-100 text-center g text-numeral">
<v-card-title class="statstyle my-2 py-0 text-overline font-weight-bold">
{{n.status}}
@@ -45,7 +45,7 @@
</v-card-text>
</v-card>
</v-img>
<!-- </v-img> -->
</v-card>
@@ -82,7 +82,7 @@ export default {
<style>
.numstyle {
font-size: 2.875rem!important;
line-height: 0.25rem!important;
line-height: 2.5rem!important;
font-family: cursive !important;
background: #ffffffb0;
}
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<v-container class="py-1 newsVH bg-transparent overflow-auto">
<v-container class="py-1 newsVH px-0 bg-transparent overflow-auto">
<v-card
class="mx-auto mb-0 "
v-for="(x, i) in newss" :key= i