Many Changes

This commit is contained in:
2024-01-04 12:27:46 +01:00
parent 57e856c71c
commit 991cac18f2
31 changed files with 1504 additions and 297 deletions

View File

@@ -45,8 +45,7 @@
:options="dataStore.profiles"
value-attribute="id"
option-attribute="fullName"
v-model="createTaskData.users"
multiple
v-model="createTaskData.user"
/>
</UFormGroup>
@@ -87,6 +86,19 @@
v-model="taskData.categorie"
/>
</UFormGroup>
<UFormGroup
label="Projekt:"
>
<USelectMenu
:options="dataStore.projects"
@change="updateTask"
v-model="taskData.project"
option-attribute="name"
value-attribute="id"
searchable
:search-attributes="['name']"
/>
</UFormGroup>
<UFormGroup
label="Benutzer ändern:"
@@ -134,6 +146,9 @@
<template #user-data="{row}">
{{dataStore.profiles.find(profile => profile.id === row.user ) ? dataStore.profiles.find(profile => profile.id === row.user ).fullName : row.user}}
</template>
<template #project-data="{row}">
{{dataStore.projects.find(item => item.id === row.project) ? dataStore.projects.find(item => item.id === row.project).name : "" }}
</template>
</UTable>
@@ -179,6 +194,11 @@ const taskColumns = [
key:"categorie",
label: "Kategorie:",
sortable: true
},
{
key:"project",
label: "Projekt:",
sortable: true
}
]