feat(FE): get show spot

This commit is contained in:
Michael 2025-07-04 11:40:07 +02:00
parent df5bc78f2e
commit 2cac6b6a90
3 changed files with 11 additions and 7 deletions

View file

@ -6,15 +6,16 @@ import {show_page} from "@/composables/content/show/show_page.ts";
import ShowForm from "@partials/show/ShowForm.vue";
import {baseShow, type Show} from "@models/show/show";
const {items, listData, headers, selected, loading, search, getItems, editItem, deleteItem} = show_page()
const {items, listData, headers, selected, loading, search, showType, getItems, editItem, deleteItem} = show_page()
// Props and data
const props = defineProps({
showType: {
type: String as PropType<'show' | 'spot'>,
type: String as PropType<'show' | 'spot' | null>,
required: true,
validator: (value: string) => ['show', 'spot'].includes(value),
default: null,
},
});
@ -95,7 +96,7 @@ const goBack = () => {
}
onBeforeMount(() => {
listData.show_type = props.showType
showType.value = props.showType
})
watch(search, (newValue, oldValue) => {