Changed Back Button
This commit is contained in:
@@ -134,9 +134,9 @@ const contentChanged = (content, datapoint) => {
|
|||||||
<UButton
|
<UButton
|
||||||
icon="i-heroicons-chevron-left"
|
icon="i-heroicons-chevron-left"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
@click="router.push(`/standardEntity/${type}`)"
|
@click="router.back()/*router.push(`/standardEntity/${type}`)*/"
|
||||||
>
|
>
|
||||||
{{dataType.label}}
|
<!-- {{dataType.label}}-->
|
||||||
</UButton>
|
</UButton>
|
||||||
</template>
|
</template>
|
||||||
<template #center>
|
<template #center>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const {type} = props
|
|||||||
|
|
||||||
defineShortcuts({
|
defineShortcuts({
|
||||||
'backspace': () => {
|
'backspace': () => {
|
||||||
router.push(`/standardEntity/${type}`)
|
router.back()
|
||||||
},
|
},
|
||||||
'arrowleft': () => {
|
'arrowleft': () => {
|
||||||
if(openTab.value > 0){
|
if(openTab.value > 0){
|
||||||
@@ -136,6 +136,12 @@ const getAvailableQueryStringData = () => {
|
|||||||
returnString += `&project=${props.item.id}`
|
returnString += `&project=${props.item.id}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(props.item.plant) {
|
||||||
|
returnString += `&plant=${props.item.plant.id}`
|
||||||
|
} else if(type === "plants") {
|
||||||
|
returnString += `&plant=${props.item.id}`
|
||||||
|
}
|
||||||
|
|
||||||
return returnString
|
return returnString
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -150,9 +156,9 @@ const getAvailableQueryStringData = () => {
|
|||||||
<UButton
|
<UButton
|
||||||
icon="i-heroicons-chevron-left"
|
icon="i-heroicons-chevron-left"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
@click="router.push(`/standardEntity/${type}`)"
|
@click="router.back()/*router.push(`/standardEntity/${type}`)*/"
|
||||||
>
|
>
|
||||||
{{dataType.label}}
|
<!-- {{dataType.label}}-->
|
||||||
</UButton>
|
</UButton>
|
||||||
</template>
|
</template>
|
||||||
<template #center>
|
<template #center>
|
||||||
|
|||||||
@@ -233,6 +233,11 @@ const setupPage = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(route.query.plant) {
|
||||||
|
itemInfo.value.plant = Number(route.query.plant)
|
||||||
|
}
|
||||||
|
|
||||||
if(route.query.contact) itemInfo.value.contact = Number(route.query.contact)
|
if(route.query.contact) itemInfo.value.contact = Number(route.query.contact)
|
||||||
if(route.query.customer) {
|
if(route.query.customer) {
|
||||||
itemInfo.value.customer = Number(route.query.customer)
|
itemInfo.value.customer = Number(route.query.customer)
|
||||||
@@ -1023,6 +1028,15 @@ const setRowData = (row) => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UDashboardNavbar>
|
<UDashboardNavbar>
|
||||||
|
<template #left>
|
||||||
|
<UButton
|
||||||
|
icon="i-heroicons-chevron-left"
|
||||||
|
variant="outline"
|
||||||
|
@click="router.back()/*router.push(`/standardEntity/${type}`)*/"
|
||||||
|
>
|
||||||
|
<!-- {{dataType.label}}-->
|
||||||
|
</UButton>
|
||||||
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<ButtonWithConfirm
|
<ButtonWithConfirm
|
||||||
v-if="itemInfo.state === 'Entwurf'"
|
v-if="itemInfo.state === 'Entwurf'"
|
||||||
|
|||||||
Reference in New Issue
Block a user