feat(store): complete store data
This commit is contained in:
parent
2f818d63d1
commit
dad54ffd2f
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<b-field label="Trouver mon Commerce par nom ou par SIREN">
|
<b-field label="Trouver mon Commerce par nom ou par SIREN">
|
||||||
<b-autocomplete
|
<b-autocomplete
|
||||||
v-model="searchQuery"
|
v-model="$store.searchQuery"
|
||||||
:data="data"
|
:data="data"
|
||||||
placeholder="ex: Chambre du commerce d'Evry"
|
placeholder="ex: Chambre du commerce d'Evry"
|
||||||
field="title"
|
field="title"
|
||||||
@ -90,7 +90,7 @@
|
|||||||
<section class="map">
|
<section class="map">
|
||||||
<br />
|
<br />
|
||||||
( ici une carte )
|
( ici une carte )
|
||||||
<!-- <img src="~assets/carte_demo.png" alt="logo osm" />-->
|
<img src="~assets/carte_demo.png" alt="logo osm" />
|
||||||
</section>
|
</section>
|
||||||
<h2>Sélection:</h2>
|
<h2>Sélection:</h2>
|
||||||
<fieldset class="has-background-info">
|
<fieldset class="has-background-info">
|
||||||
|
@ -1,7 +1,18 @@
|
|||||||
|
/**
|
||||||
|
* see VueX docs
|
||||||
|
*/
|
||||||
export const state = () => ({
|
export const state = () => ({
|
||||||
counter: 0,
|
counter: 0,
|
||||||
|
isFetching: false,
|
||||||
|
searchInput: '',
|
||||||
|
selectedResult: null,
|
||||||
list: [],
|
list: [],
|
||||||
formConfig: {},
|
formConfig: {
|
||||||
|
name: '',
|
||||||
|
delivery: false,
|
||||||
|
hours: [],
|
||||||
|
tags: [],
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
export const mutations = {
|
export const mutations = {
|
||||||
@ -17,10 +28,10 @@ export const mutations = {
|
|||||||
remove(state: any, { todo }: any) {
|
remove(state: any, { todo }: any) {
|
||||||
state.list.splice(state.list.indexOf(todo), 1)
|
state.list.splice(state.list.indexOf(todo), 1)
|
||||||
},
|
},
|
||||||
toggle(state: any, todo: any) {
|
|
||||||
todo.done = !todo.done
|
|
||||||
},
|
|
||||||
setFormField(state: any, { field }: any) {
|
setFormField(state: any, { field }: any) {
|
||||||
state.formConfig[state.formConfig.indexOf(field)] = field
|
state.formConfig[state.formConfig.indexOf(field)] = field
|
||||||
},
|
},
|
||||||
|
setTag(state: any, { field }: any) {
|
||||||
|
state.formConfig.tags[state.formConfig.tags.indexOf(field)] = field
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user