2021-02-05 23:07:58 +00:00
|
|
|
<template>
|
|
|
|
<q-card
|
2021-03-21 15:00:19 +00:00
|
|
|
class="justify-start content-center items-center rounded-borders border-primary shadow-5 q-mb-xs"
|
2021-02-05 23:07:58 +00:00
|
|
|
bordered
|
|
|
|
>
|
2021-02-07 19:16:21 +00:00
|
|
|
<header class="text-primary q-px-xs">
|
2021-03-21 15:00:19 +00:00
|
|
|
<div class="col text-weight-bolder">
|
2021-02-07 19:16:21 +00:00
|
|
|
{{ event.type.name }}
|
|
|
|
</div>
|
2021-03-18 16:23:57 +00:00
|
|
|
<div v-if="event.description" class="col text-weight-medium" style="font-size: 10px">
|
2021-02-07 19:16:21 +00:00
|
|
|
Info
|
|
|
|
{{ event.description }}
|
|
|
|
</div>
|
|
|
|
</header>
|
2021-02-04 23:07:51 +00:00
|
|
|
<div v-for="(job, index) in event.jobs" :key="index">
|
2021-02-05 23:07:58 +00:00
|
|
|
<q-separator style="justify-start content-center" />
|
2021-03-20 23:58:31 +00:00
|
|
|
<JobSlot v-model="event.jobs[index]" :event-id="event.id" />
|
2021-02-05 23:07:58 +00:00
|
|
|
</div>
|
|
|
|
</q-card>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2021-03-20 23:58:31 +00:00
|
|
|
import { defineComponent, computed, PropType } from 'vue';
|
|
|
|
import JobSlot from './JobSlot.vue';
|
2021-02-05 23:07:58 +00:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
name: 'Eventslot',
|
2021-03-20 23:58:31 +00:00
|
|
|
components: { JobSlot },
|
2021-02-04 23:07:51 +00:00
|
|
|
props: {
|
2021-03-20 23:58:31 +00:00
|
|
|
modelValue: {
|
2021-02-04 23:07:51 +00:00
|
|
|
required: true,
|
|
|
|
type: Object as PropType<FG.Event>,
|
|
|
|
},
|
|
|
|
},
|
2021-03-20 23:58:31 +00:00
|
|
|
emits: { 'update:modelValue': (val: FG.Event) => !!val },
|
|
|
|
setup(props, { emit }) {
|
|
|
|
const event = computed({
|
|
|
|
get: () => props.modelValue,
|
|
|
|
set: (v) => emit('update:modelValue', v),
|
|
|
|
});
|
2021-02-05 23:07:58 +00:00
|
|
|
return {
|
2021-03-20 23:58:31 +00:00
|
|
|
event,
|
2021-02-05 23:07:58 +00:00
|
|
|
};
|
2021-03-18 16:23:57 +00:00
|
|
|
},
|
2021-02-05 23:07:58 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2021-02-07 19:16:21 +00:00
|
|
|
<style scoped></style>
|