Added Open Tasks Card

Added Some Titles
This commit is contained in:
2025-03-05 19:12:31 +01:00
parent 1f5d4434be
commit 41aa40b237
2 changed files with 54 additions and 18 deletions

View File

@@ -0,0 +1,30 @@
<script setup>
const openTasks = ref([])
const supabase = useSupabaseClient()
const router = useRouter()
const setupPage = async () => {
openTasks.value = (await supabase.from("tasks").select().eq("tenant",useProfileStore().currentTenant).not("archived","is",true).neq("categorie","Abgeschlossen").eq("profile", useProfileStore().activeProfile.id)).data
}
setupPage()
</script>
<template>
<UTable
v-if="openTasks.length > 0"
:rows="openTasks"
:columns="[{key:'name',label:'Name'},{key:'categorie',label:'Kategorie'}]"
@select="(i) => router.push(`/standardEntity/tasks/show/${i.id}`)"
/>
<div v-else>
<p class="text-center font-bold">Keine offenen Aufgaben</p>
</div>
</template>
<style scoped>
</style>

View File

@@ -14,40 +14,46 @@
</UDashboardNavbar> </UDashboardNavbar>
<UDashboardPanelContent class="flex flex-col"> <UDashboardPanelContent class="flex flex-col">
<div> <div class="mb-5">
<UDashboardCard <UDashboardCard
title="Einnahmen und Ausgaben(netto)"
class="mt-3" class="mt-3"
> >
<display-income-and-expenditure/> <display-income-and-expenditure/>
</UDashboardCard> </UDashboardCard>
</div> </div>
<div class="flex flex-row"> <UPageGrid>
<UDashboardCard <UDashboardCard
class="w-1/3 h-fit mr-2 mt-3" title="Buchhaltung"
title="Anwesenheiten"
>
<display-present-profiles/>
</UDashboardCard>
<UDashboardCard
class="w-1/3 h-fit mx-2 mt-3"
>
<display-running-time/>
</UDashboardCard>
<UDashboardCard
class="w-1/3 h-fit mx-2 mt-3"
v-if="profileStore.ownTenant.features.accounting" v-if="profileStore.ownTenant.features.accounting"
> >
<display-open-balances/> <display-open-balances/>
</UDashboardCard> </UDashboardCard>
<UDashboardCard <UDashboardCard
class="w-1/3 h-fit ml-2 mt-3"
title="Projekte" title="Projekte"
> >
<display-projects-in-phases/> <display-projects-in-phases/>
</UDashboardCard> </UDashboardCard>
<UDashboardCard
title="Anwesenheiten"
>
<display-present-profiles/>
</UDashboardCard>
<UDashboardCard
>
<display-running-time/>
</UDashboardCard>
<UDashboardCard
title="Aufgaben"
>
<display-open-tasks/>
</UDashboardCard>
</UPageGrid>
<div class="flex flex-row">
</div> </div>
</UDashboardPanelContent> </UDashboardPanelContent>