Skip to content

Commit ba7806f

Browse files
WIP ticket page
1 parent a11029a commit ba7806f

File tree

4 files changed

+69
-4
lines changed

4 files changed

+69
-4
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template lang="pug">
2+
3+
</template>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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>

app/src/pages/ticket/[id].vue

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
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'
719
import { useRoute } from 'nuxt/app';
20+
import { useHttpApi } from '~/composables/useHttpApi';
821
922
const route = useRoute()
1023
const 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>

0 commit comments

Comments
 (0)