mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
otf: prepare with debug (wip)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user