Commit aa62e637 authored by Rémy Marronnier's avatar Rémy Marronnier

result page wip

parent d307baec
<template>
<v-card>
Vous pouvez bénéficier de
**tout déplier**
<v-expansion-panels>
<v-expansion-panel>
<v-expansion-panel-header>Item</v-expansion-panel-header>
<v-expansion-panel-content v-for="(item,i) in 5" :key="i">
<Contract v-for="aid in aids" :key="aid"></Contract>
<v-expansion-panel-header>Vous pouvez bénéficier de**tout déplier**</v-expansion-panel-header>
<v-expansion-panel-content>
<Contract
v-for="(aids, contractType) in contracts"
:key="(contractType)"
v-bind:aids="aids"
v-bind:contractType="contractType"
></Contract>
</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
......@@ -19,13 +22,15 @@ export default {
components: {
Contract
},
data() {
return {
aids: []
};
},
beforeCreate() {
this.aids = this.$store.state.results.eligible;
// data() {
// return {
// contracts: {}
// };
// },
computed: {
contracts() {
return this.$store.state.results.eligible;
}
}
};
</script>
......
<template>
<v-list-item two-line>
<v-list-item-content>
<v-list-item-title>Titre de l'aide</v-list-item-title>
<v-list-item-subtitle>Résumé</v-list-item-subtitle>
<v-btn></v-btn>
<v-list-item-title>Titre de l'aide {{aid.name}}</v-list-item-title>
<v-list-item-subtitle>{{aid.short_description}}</v-list-item-subtitle>
<v-chip v-for="filter in filters" :key="filter.desciption">{{filter.description}}</v-chip>
<v-btn right>
<v-icon left>mdi-eye</v-icon>Voir
</v-btn>
</v-list-item-content>
</v-list-item>
</template>
<script>
export default {
name: "AidSummary"
name: "AidSummary",
props: {
aid: {
type: Object
}
},
computed: {
filters() {
return this.aid.filters;
}