Remodel of Profile System

Added isCompany to Customers
changes in workingtimes.vue
This commit is contained in:
2024-03-17 11:01:19 +01:00
parent 874ff01551
commit aef8cce755
16 changed files with 349 additions and 168 deletions

View File

@@ -9,6 +9,19 @@ const itemInfo = ref({
resources: []
})
const mapResources = () => {
itemInfo.value.resources.map(resource => {
return {
id: resource.id,
type: resource.type
}
})
}
const setupPage = () => {
if(route.query.start) itemInfo.value.start = route.query.start.replace(" ", "+")
@@ -47,17 +60,18 @@ setupPage()
>
<USelectMenu
v-model="itemInfo.resources"
:options="dataStore.getResources"
:options="dataStore.getResourcesList"
option-attribute="title"
value-attribute="id"
multiple
@change=""
onChange="mapResources"
>
<template #label>
<span v-if="itemInfo.resources.length == 0">Keine Ressourcen ausgewählt</span>
<span v-else >{{ itemInfo.resources.length }} ausgewählt</span>
</template>
</USelectMenu>
{{dataStore.getResourcesList}}
</UFormGroup>
<UFormGroup
label="Titel:"