Remodel of Profile System
Added isCompany to Customers changes in workingtimes.vue
This commit is contained in:
@@ -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:"
|
||||
|
||||
Reference in New Issue
Block a user