File tree Expand file tree Collapse file tree 4 files changed +69
-4
lines changed
Expand file tree Collapse file tree 4 files changed +69
-4
lines changed Original file line number Diff line number Diff line change 1+ <template lang="pug">
2+ q-card.bg-gray-4
3+ q-card-section
4+ .text-h6 Autres sections
5+ q-separator( inset )
6+ q-card-actions( align ="center" vertical )
7+ q-btn( color ="primary" flat ) Mes tickets
8+ q-btn( color ="primary" flat ) Tout les tickets
9+ q-separator( inset )
10+ q-card-actions( align ="center" vertical )
11+ q-btn( v-for ="projet in projets.data" color ="primary" flat :key ="projet.id" : to= "`/ticket/${projet.id}`" ) {{ projet.name }}
12+
13+ </template >
14+
15+ <script lang="ts" setup>
16+ import { ref , onMounted , computed } from ' vue'
17+ import { useHttpApi } from ' ~/composables/useHttpApi' ;
18+ const { data : projets } = await useHttpApi (` core/project ` )
19+
20+ </script >
Original file line number Diff line number Diff line change 1+ <template lang="pug">
2+
3+ </template >
Original file line number Diff line number Diff line change 1+ <template lang="pug">
2+ q-list
3+ q-expansion-item( label ="Enveloppe" )
4+ q-card
5+ q-card-section
6+ q-input
7+ q-expansion-item( label ="Informations" )
8+ q-card
9+ q-card-section
10+ q-input
11+ q-expansion-item( label ="Cycle de vie" )
12+ q-card
13+ q-card-section
14+ q-input
15+ span {{ ticketData }}
16+ </template >
17+
18+ <script lang="ts" setup>
19+ defineProps ({
20+ ticketData: {
21+ type: Object ,
22+ required: true
23+ }
24+ })
25+ </script >
Original file line number Diff line number Diff line change 11<template lang="pug">
2-
2+ .column
3+ .row.q-gutter-lg.items-center
4+ q-breadcrumbs
5+ q-breadcrumbs-el( to ="/" ) Accueil
6+ q-breadcrumbs-el( to ="/tickets" ) Tickets
7+ q-breadcrumbs-el( :label ="ticketData.data.sequence" )
8+ .row.q-gutter-md.col-11
9+ .col-2
10+ tk-ticketLeftPanel
11+ .col-6
12+ tk-ticketMainPanel()
13+ .col-3
14+ tk-ticketRightPanel( :ticketData ="ticketData.data" )
315</template >
416
517<script lang="ts" setup>
6- import { ref , onMounted } from ' vue'
18+ import { ref , onMounted , computed } from ' vue'
719import { useRoute } from ' nuxt/app' ;
20+ import { useHttpApi } from ' ~/composables/useHttpApi' ;
821
922const route = useRoute ()
1023const id = ref <string >(' ' )
24+ const { data : ticketData } = await useHttpApi (` tickets/ticket/${route .params .id } ` )
25+
26+ onMounted (async () => {
1127
12- onMounted (() => {
13- id .value = route .params .id
1428})
29+
30+
31+
1532 </script >
You can’t perform that action at this time.
0 commit comments