Added Contract to Document Assign
This commit is contained in:
@@ -100,6 +100,7 @@ const resourceOptions = ref([
|
|||||||
{label: 'Lieferant', value: 'vendor', optionAttr: "name"},
|
{label: 'Lieferant', value: 'vendor', optionAttr: "name"},
|
||||||
{label: 'Fahrzeug', value: 'vehicle', optionAttr: "licensePlate"},
|
{label: 'Fahrzeug', value: 'vehicle', optionAttr: "licensePlate"},
|
||||||
{label: 'Objekt', value: 'plant', optionAttr: "name"},
|
{label: 'Objekt', value: 'plant', optionAttr: "name"},
|
||||||
|
{label: 'Vertrag', value: 'contract', optionAttr: "name"},
|
||||||
{label: 'Produkt', value: 'product', optionAttr: "name"}
|
{label: 'Produkt', value: 'product', optionAttr: "name"}
|
||||||
])
|
])
|
||||||
const resourceToAssign = ref("project")
|
const resourceToAssign = ref("project")
|
||||||
@@ -118,6 +119,8 @@ const getItemsBySelectedResource = () => {
|
|||||||
itemOptions.value = dataStore.products
|
itemOptions.value = dataStore.products
|
||||||
} else if(resourceToAssign.value === "plant") {
|
} else if(resourceToAssign.value === "plant") {
|
||||||
itemOptions.value = dataStore.plants
|
itemOptions.value = dataStore.plants
|
||||||
|
} else if(resourceToAssign.value === "contract") {
|
||||||
|
itemOptions.value = dataStore.contracts
|
||||||
} else {
|
} else {
|
||||||
itemOptions.value = []
|
itemOptions.value = []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user