Many Changes for 1.0
This commit is contained in:
41
spaces/pages/workingtimes.vue
Normal file
41
spaces/pages/workingtimes.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<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>
|
||||
<UTable
|
||||
:rows="dataStore.workingtimes"
|
||||
:columns="timeColumns"
|
||||
>
|
||||
<template #user-data="{row}">
|
||||
{{dataStore.getProfileById(row.user).fullName }}
|
||||
</template>
|
||||
</UTable>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user