otf: prepare with debug (wip)

This commit is contained in:
2021-09-29 11:37:53 +02:00
parent 0fe248320d
commit 3824a380ff
4 changed files with 28 additions and 16 deletions

View File

@@ -45,9 +45,8 @@
<add-address
:options="this.addAddress.options"
:address-changed-callback="submitAddress"
:context="this.addAddress.context"
>
:address-changed-callback="submitAddress">
</add-address>
</div>
@@ -72,7 +71,7 @@ export default {
},
addAddress: {
context: {
},
options: {
//button: {
@@ -92,25 +91,27 @@ export default {
}
},
methods: {
loadThirdparty(){
loadData(){
getThirdparty(this.id).then(thirdparty => new Promise((resolve, reject) => {
this.thirdparty = thirdparty;
console.log('get thirdparty', thirdparty);
resolve();
}));
},
submitAddress(payload) {
console.log(payload);
},
postData() {
postThirdparty(this.thirdparty).then(thirdparty => new Promise((resolve, reject) => {
this.thirdparty = thirdparty;
console.log('post thirdparty', thirdparty);
resolve();
}))
},
submitAddress(payload) {
console.log('submitAddress', payload);
}
},
mounted() {
if (this.action !== 'create'){
this.loadThirdparty();
if (this.action !== 'create') {
this.loadData();
}
},
}