Introduced EntityShow.vue Deprecated following as non standardEntity contracts, customers, vendors, projects, plants, vehicles
33 lines
550 B
Vue
33 lines
550 B
Vue
<script setup>
|
|
import {useSupabaseSelectSingle} from "~/composables/useSupabase.js";
|
|
|
|
const route = useRoute()
|
|
|
|
const itemInfo = ref({})
|
|
|
|
const tabItems = [{
|
|
label: 'Informationen',
|
|
}, {
|
|
label: 'Dokumente',
|
|
}, {
|
|
label: 'Überprüfungen',
|
|
}]
|
|
|
|
const setupPage = async () => {
|
|
itemInfo.value = await useSupabaseSelectSingle("vehicles",route.params.id,"*, checks(*), documents(*)")
|
|
console.log(itemInfo.value)
|
|
}
|
|
|
|
setupPage()
|
|
</script>
|
|
|
|
<template>
|
|
<EntityShow
|
|
type="vehicles"
|
|
:item="itemInfo"
|
|
/>
|
|
</template>
|
|
|
|
<style scoped>
|
|
|
|
</style> |