mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
requestor call AddPersons modal, and pass options until api (wip)
This commit is contained in:
parent
242c2b31a3
commit
b37a7d2690
@ -40,9 +40,10 @@
|
||||
|
||||
<add-persons
|
||||
buttonTitle="requestor.add_requestor"
|
||||
v-bind:key="addNewPersons.key"
|
||||
v-bind:options="addNewPersons.options"
|
||||
@addNewPersons="addNewPersons">
|
||||
v-bind:key="addPersons.key"
|
||||
v-bind:options="addPersons.options"
|
||||
@addNewPersons="addNewPersons"
|
||||
ref="addPersons"> <!-- to cast child method -->
|
||||
</add-persons>
|
||||
|
||||
</div>
|
||||
@ -58,7 +59,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
addNewPersons: {
|
||||
addPersons: {
|
||||
key: 'requestor',
|
||||
options: {
|
||||
type: ['person', 'thirdparty'],
|
||||
@ -77,11 +78,10 @@ export default {
|
||||
addNewPersons({ selected, modal }) {
|
||||
console.log('@@@ CLICK button addNewPersons', selected);
|
||||
selected.forEach(function(item) {
|
||||
//console.log('# dispatch action for each item', item);
|
||||
console.log('HU-HUE, we want add new requestor !!', item);
|
||||
//this.$store.dispatch('addRequestor', item);
|
||||
this.$store.dispatch('addRequestor', item);
|
||||
}, this
|
||||
);
|
||||
this.$refs.addPersons.resetSearch(); // to cast child method
|
||||
modal.showModal = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user