otf: patch person and thirdparty from the store, emit parent method saveFormOnTheFly()

This commit is contained in:
2021-09-29 17:35:37 +02:00
parent 9420c34f58
commit 008a10dab8
7 changed files with 103 additions and 47 deletions

View File

@@ -75,7 +75,7 @@
</template>
<script>
import { getPerson, postPerson } from '../../_api/OnTheFly';
import { getPerson } from '../../_api/OnTheFly';
import PersonRenderBox from '../Entity/PersonRenderBox.vue';
export default {
@@ -162,15 +162,6 @@ export default {
console.log('get person', this.person);
resolve();
}));
},
patchData() {
console.log('id', this.id, 'and body', this.person);
patchPerson(this.id, this.person)
.then(person => new Promise((resolve, reject) => {
this.person = person;
console.log('patch person', this.person);
resolve();
}))
}
}
}