Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

myWeeksPage.vue 800B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div>
  3. <br />
  4. <br />
  5. <br />
  6. <br />
  7. <br />
  8. <div class="row">
  9. <div class="offset-1 col-md-10">
  10. <ListView :items="items" :editable="true" @onEdit="onEdit" />
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. import { mapState, mapActions } from 'vuex';
  17. import Log from '../../assets/Log';
  18. import ListView from '../shared/listView.vue';
  19. export default {
  20. components: {
  21. ListView,
  22. },
  23. data() {
  24. return {
  25. user: Log.getUser(),
  26. };
  27. },
  28. mounted() {
  29. console.log(this.user.id);
  30. this.getItems(this.user.id);
  31. },
  32. computed: {
  33. ...mapState('myWeeks', ['items']),
  34. },
  35. methods: {
  36. ...mapActions('myWeeks', ['getItems']),
  37. onEdit(item) {
  38. this.$router.push(`/timeshare/${item.id}`);
  39. },
  40. },
  41. };
  42. </script>