Results.vue 1.51 KB
Newer Older
Rémy Marronnier's avatar
Rémy Marronnier committed
1 2
<template>
  <v-container>
Rémy Marronnier's avatar
wip  
Rémy Marronnier committed
3 4 5 6
    <v-btn>
      Imprimer
      <v-icon right>mdi-printer</v-icon>
    </v-btn>
Rémy Marronnier's avatar
Rémy Marronnier committed
7 8 9 10
    <v-row>
      <v-col cols="6" md="4">
        <v-content>
          <Filters></Filters>
Rémy Marronnier's avatar
Rémy Marronnier committed
11
          <SituationSummary></SituationSummary>
Rémy Marronnier's avatar
Rémy Marronnier committed
12 13 14 15 16 17
        </v-content>
      </v-col>
      <v-col cols="12" md="8">
        <v-content>
          <Eligible></Eligible>
          <NonEligible></NonEligible>
Rémy Marronnier's avatar
Rémy Marronnier committed
18
          <v-alert type="info">
Rémy Marronnier's avatar
Rémy Marronnier committed
19
            Simulation non contractuelle tenant compte des éléments déclarés et appréciés le 17/12/2019
Rémy Marronnier's avatar
Rémy Marronnier committed
20
            <br />Clara n'intègre pas encore les spécificités des aides et mesures applicables dans les régions et collectivités d'Outre Mer.
Rémy Marronnier's avatar
Rémy Marronnier committed
21 22 23 24 25 26 27 28 29
          </v-alert>
        </v-content>
      </v-col>
    </v-row>
  </v-container>
</template>

<script>
import Filters from "@/components/results/Filters";
Rémy Marronnier's avatar
Rémy Marronnier committed
30
import SituationSummary from "@/components/results/SituationSummary";
Rémy Marronnier's avatar
Rémy Marronnier committed
31 32 33 34 35 36 37 38
import Eligible from "@/components/results/Eligible";
import NonEligible from "@/components/results/NonEligible";

export default {
  name: "Results",

  components: {
    Filters,
Rémy Marronnier's avatar
Rémy Marronnier committed
39
    SituationSummary,
Rémy Marronnier's avatar
Rémy Marronnier committed
40 41 42
    Eligible,
    NonEligible
  },
Rémy Marronnier's avatar
Rémy Marronnier committed
43
  beforeCreate() {
Rémy Marronnier's avatar
Rémy Marronnier committed
44
    if (this.$store.state.results.filters_quantity === 0) {
Rémy Marronnier's avatar
Rémy Marronnier committed
45 46
      this.$store.dispatch("getFilters");
    }
Rémy Marronnier's avatar
Rémy Marronnier committed
47
    if (this.$store.state.results.contracts_quantity === 0) {
Rémy Marronnier's avatar
Rémy Marronnier committed
48 49
      this.$store.dispatch("getContracts");
    }
Rémy Marronnier's avatar
Rémy Marronnier committed
50 51 52 53
    if (this.$store.state.situation.changed) {
      this.$store.dispatch("getResults");
    }
  },
Rémy Marronnier's avatar
Rémy Marronnier committed
54 55 56 57 58 59

  data: () => ({
    //
  })
};
</script>