2020-12-17 12:09:28 +01:00
|
|
|
<template>
|
|
|
|
<section class="section">
|
|
|
|
<h1>Horaires</h1>
|
|
|
|
<p>Vos horaires actuelles</p>
|
2021-02-25 16:26:59 +01:00
|
|
|
<ul>
|
|
|
|
<li v-for="h in $store.state.formConfig.hours" :key="h">
|
2021-01-28 13:12:24 +01:00
|
|
|
{{ h }}
|
2021-02-25 16:26:59 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
2020-12-17 12:09:28 +01:00
|
|
|
</section>
|
|
|
|
</template>
|
2021-01-29 12:59:44 +01:00
|
|
|
|
2021-02-25 16:25:00 +01:00
|
|
|
<script>
|
2021-02-25 16:26:59 +01:00
|
|
|
import { mapMutations } from 'vuex'
|
2021-01-29 12:59:44 +01:00
|
|
|
|
|
|
|
export default {
|
|
|
|
computed: {
|
|
|
|
hours() {
|
2021-02-25 16:26:59 +01:00
|
|
|
return this.$store.state.formConfig.hours
|
2021-01-29 12:59:44 +01:00
|
|
|
},
|
|
|
|
},
|
2021-02-25 16:26:59 +01:00
|
|
|
methods: {
|
2021-01-29 12:59:44 +01:00
|
|
|
addhour(e) {
|
2021-02-25 16:26:59 +01:00
|
|
|
this.$store.commit('formConfig/add', e.target.value)
|
|
|
|
e.target.value = ''
|
2021-01-29 12:59:44 +01:00
|
|
|
},
|
|
|
|
...mapMutations({
|
|
|
|
setTag: 'index/setTag',
|
|
|
|
}),
|
|
|
|
},
|
2021-02-25 16:26:59 +01:00
|
|
|
}
|
2021-02-25 16:25:00 +01:00
|
|
|
</script>
|