AddPersons in activity

* modal button dont submit all form
* addNewPersons action mutation loop ready
This commit is contained in:
2021-05-27 22:53:35 +02:00
parent 9ec2a62fb6
commit 549f3a4c78
10 changed files with 25 additions and 87 deletions

View File

@@ -13,17 +13,18 @@ const store = createStore({
},
mutations: {
addPerson(state, payload) {
addPersonsInvolved(state, payload) {
console.log('### mutation addPersonsInvolved', payload);
}
},
actions: {
addPerson() {
addPersonsInvolved({ commit }, payload) {
console.log('### action addPersonsInvolved', payload);
//let el = document.getElementById('form['activity']['xxx']['xxxx']');
//let option = document.createElement('option');
//option.value = person.id;
//el.appendChild(option);
commit('addPerson', payload)
commit('addPersonsInvolved', payload)
}
}
});