Events.vue 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <q-page-builder v-model:sections="currenSections"
  3. v-model:options="pageConfig"
  4. :editable="pageBuilderEditable"
  5. :loading="pageBuilderLoading" />
  6. </template>
  7. <script>
  8. // import { mixinSEO, mixinPageOptions, mixinPrefetchServerData } from 'src/mixin/Mixins.js'
  9. import { mixinAuth } from 'src/mixin/Mixins.js'
  10. export default {
  11. name: 'Public.AllEvents',
  12. mixins: [mixinAuth],
  13. // mixins: [mixinPrefetchServerData, mixinPageOptions, mixinSEO]
  14. data () {
  15. return {
  16. pageConfig: {},
  17. pageBuilderEditable: false,
  18. pageBuilderLoading: false,
  19. currenSections: [{ data: { rows: [{ cols: [{ widgets: [{ name: 'AllClassrooms', options: { style: {}, classroomType: 'EVENT' } }], options: {} }], options: { boxed: true } }] } }]
  20. }
  21. },
  22. mounted() {
  23. if (this.user && this.user.id !== null) {
  24. this.currenSections = [{ data: { rows: [{ cols: [{ widgets: [{ name: 'AllClassrooms', options: { style: {}, classroomType: 'EVENT' } }, { name: 'RegistrationList', options: { style: { marginBottom: '32px' }, classroomType: 'EVENT' } }], options: {} }], options: { boxed: true } }] } }]
  25. }
  26. }
  27. }
  28. </script>