Eligible.vue 1.06 KB
Newer Older
Rémy Marronnier's avatar
Rémy Marronnier committed
1 2 3
<template>
  <v-card>
    <v-expansion-panels>
Rémy Marronnier's avatar
wip  
Rémy Marronnier committed
4
      <v-expansion-panel>
Rémy Marronnier's avatar
Rémy Marronnier committed
5
        <v-expansion-panel-header class="title">Vous pouvez bénéficier de</v-expansion-panel-header>
Rémy Marronnier's avatar
Rémy Marronnier committed
6 7 8 9 10 11 12
        <v-expansion-panel-content>
          <Contract
            v-for="(aids, contractType) in contracts"
            :key="(contractType)"
            v-bind:aids="aids"
            v-bind:contractType="contractType"
          ></Contract>
Rémy Marronnier's avatar
wip  
Rémy Marronnier committed
13
        </v-expansion-panel-content>
Rémy Marronnier's avatar
Rémy Marronnier committed
14 15 16 17 18
      </v-expansion-panel>
    </v-expansion-panels>
  </v-card>
</template>
 <script>
Rémy Marronnier's avatar
wip  
Rémy Marronnier committed
19
import Contract from "@/components/results/aids/Contract";
Rémy Marronnier's avatar
Rémy Marronnier committed
20
export default {
Rémy Marronnier's avatar
wip  
Rémy Marronnier committed
21 22 23
  name: "Eligible",
  components: {
    Contract
Rémy Marronnier's avatar
Rémy Marronnier committed
24
  },
Rémy Marronnier's avatar
Rémy Marronnier committed
25 26 27 28 29
  // data() {
  //   return {
  //     contracts: {}
  //   };
  // },
Rémy Marronnier's avatar
Rémy Marronnier committed
30 31 32 33 34 35 36 37 38
  methods: {
    // hasOneTrueFilter(aid) {
    //   let values = [];
    //   aid.filters.forEach(filter => {
    //     values.push(filter.value);
    //   });
    //   return values.include(true);
    // }
  },
Rémy Marronnier's avatar
Rémy Marronnier committed
39 40 41 42
  computed: {
    contracts() {
      return this.$store.state.results.eligible;
    }
Rémy Marronnier's avatar
wip  
Rémy Marronnier committed
43
  }
Rémy Marronnier's avatar
Rémy Marronnier committed
44 45 46 47 48
};
</script>
 
 <style>
</style>