screen-edit.component.ts 679 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import Vue from 'vue';
import Component from 'vue-class-component';

import ScreenItemEdit from '@/components/screen-item/screen-item-edit.vue';
import OaButton from '@/components/button/oa-button.vue';
import OaInput from '@/components/forms/input/oa-input.vue';
import StepToolbar from '@/components/step-toolbar/step-toolbar.vue';

@Component({
  components: {
    ScreenItemEdit,
    OaButton,
    OaInput,
    StepToolbar,
  },
})
export default class FormEdit extends Vue {
  public items: any = [{}]; // TODO récupérer les items dans le store

  beforeRouteEnter(to, from, next) {
    next(vm => {
      // récupération de l'idScreen et appel du service
    });
  }
}