feat(FE): get show spot
This commit is contained in:
parent
df5bc78f2e
commit
2cac6b6a90
3 changed files with 11 additions and 7 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue