Files
FEDEO/spaces/pages/workingtimes.vue
2024-02-23 22:34:39 +01:00

44 lines
645 B
Vue

<script setup>
import dayjs from "dayjs";
const dataStore = useDataStore()
const timeColumns = [
{
key: "state",
label: "Status"
},
{
key: "user",
label: "Mitarbeiter"
}, {
key: "date",
label: "Datum"
}, {
key: "start",
label: "Start"
}, {
key: "end",
label: "Ende"
}
]
</script>
<template>
<UDashboardNavbar title="Anwesenheiten">
</UDashboardNavbar>
<UTable
:rows="dataStore.workingtimes"
:columns="timeColumns"
>
<template #user-data="{row}">
{{dataStore.getProfileById(row.user).fullName }}
</template>
</UTable>
</template>
<style scoped>
</style>