Changes
This commit is contained in:
@@ -43,6 +43,8 @@ const historyItems = computed(() => {
|
|||||||
items = dataStore.historyItems.filter(i => i.inventoryitem === elementId)
|
items = dataStore.historyItems.filter(i => i.inventoryitem === elementId)
|
||||||
} else if(type === "product") {
|
} else if(type === "product") {
|
||||||
items = dataStore.historyItems.filter(i => i.product === elementId)
|
items = dataStore.historyItems.filter(i => i.product === elementId)
|
||||||
|
} else if(type === "profile") {
|
||||||
|
items = dataStore.historyItems.filter(i => i.profile === elementId)
|
||||||
}
|
}
|
||||||
|
|
||||||
return items
|
return items
|
||||||
@@ -76,6 +78,8 @@ const addHistoryItem = async () => {
|
|||||||
addHistoryItemData.value.inventoryitem = elementId
|
addHistoryItemData.value.inventoryitem = elementId
|
||||||
} else if(type === "product") {
|
} else if(type === "product") {
|
||||||
addHistoryItemData.value.product = elementId
|
addHistoryItemData.value.product = elementId
|
||||||
|
} else if(type === "profile") {
|
||||||
|
addHistoryItemData.value.profile = elementId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,14 @@
|
|||||||
|
|
||||||
const templateColumns = [
|
const templateColumns = [
|
||||||
{
|
{
|
||||||
|
key: 'employeeNumber',
|
||||||
|
label: "MA-Nummer:",
|
||||||
|
sortable: true
|
||||||
|
},{
|
||||||
key: 'fullName',
|
key: 'fullName',
|
||||||
label: "Name:",
|
label: "Name:",
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},{
|
||||||
{
|
|
||||||
key: "email",
|
key: "email",
|
||||||
label: "E-Mail:",
|
label: "E-Mail:",
|
||||||
sortable: true
|
sortable: true
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
import HistoryDisplay from "~/components/HistoryDisplay.vue";
|
||||||
|
|
||||||
const dataStore = useDataStore()
|
const dataStore = useDataStore()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
@@ -23,10 +25,14 @@ setupPage()
|
|||||||
:items="[
|
:items="[
|
||||||
{
|
{
|
||||||
label: 'Informationen'
|
label: 'Informationen'
|
||||||
|
},{
|
||||||
|
label: 'Logbuch'
|
||||||
},{
|
},{
|
||||||
label: 'Zeiterfassung'
|
label: 'Zeiterfassung'
|
||||||
},{
|
},{
|
||||||
label: 'Vertragsdaten'
|
label: 'Vertragsdaten'
|
||||||
|
},{
|
||||||
|
label: 'Dokumente'
|
||||||
}
|
}
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
@@ -74,8 +80,23 @@ setupPage()
|
|||||||
v-model="itemInfo.employeeNumber"
|
v-model="itemInfo.employeeNumber"
|
||||||
/>
|
/>
|
||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="E-Mail"
|
||||||
|
class="w-120"
|
||||||
|
>
|
||||||
|
<UInput
|
||||||
|
v-model="itemInfo.email"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="item.label === 'Logbuch'">
|
||||||
|
<HistoryDisplay
|
||||||
|
type="profile"
|
||||||
|
v-if="itemInfo"
|
||||||
|
:element-id="itemInfo.id"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div v-if="item.label === 'Vertragsdaten'">
|
<div v-if="item.label === 'Vertragsdaten'">
|
||||||
<Toolbar>
|
<Toolbar>
|
||||||
<UButton
|
<UButton
|
||||||
|
|||||||
Reference in New Issue
Block a user