Added Page Events

Added WeekNumbers to DatePicker
Changed Coloring in DatePicker
This commit is contained in:
2024-04-07 14:21:14 +02:00
parent 092f3aa6bd
commit d7fafda78e
7 changed files with 372 additions and 141 deletions

View File

@@ -105,12 +105,14 @@ const calendarOptionsGrid = reactive({
newEventData.value.end = info.endStr
//showNewEventModal.value = true
router.push(`/calendar/edit/?start=${info.startStr}&end=${info.endStr}&source=grid`)
router.push(`/events/edit/?start=${info.startStr}&end=${info.endStr}&source=grid`)
},
eventClick: function (info){
selectedEvent.value = info.event
showEventModal.value = true
console.log(info)
router.push(`/events/show/${info.event.id}`)
//selectedEvent.value = info.event
//showEventModal.value = true
},
})
@@ -144,11 +146,12 @@ const calendarOptionsTimeline = reactive({
convertResourceIds()
//showNewEventModal.value = true
router.push(`/calendar/edit/?start=${info.startStr}&end=${info.endStr}&resources=${JSON.stringify([info.resource.id])}&source=timeline`)
router.push(`/events/edit/?start=${info.startStr}&end=${info.endStr}&resources=${JSON.stringify([info.resource.id])}&source=timeline`)
},
eventClick: function (info){
selectedEvent.value = info.event
showEventModal.value = true
router.push(`/events/show/${info.event.id}`)
//selectedEvent.value = info.event
//showEventModal.value = true
},
resourceGroupField: "type",
resourceOrder: "-type",