WIP Наладила get после post client
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
:is-open-form="isOpenForm",
|
||||
:close-form="closeForm",
|
||||
:open-form="openForm",
|
||||
@update-client="setUpdatedClients"
|
||||
:set-updated-clients="setUpdatedClients",
|
||||
)
|
||||
.flex.flex-auto
|
||||
the-sidebar
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
base-client-form-create(
|
||||
v-if="isOpenForm",
|
||||
:close-form="closeForm",
|
||||
@update-client="transmitUpdateClient"
|
||||
:set-updated-clients="setUpdatedClients",
|
||||
)
|
||||
.flex.items-center.box-border.cursor-pointer.mr-auto
|
||||
img.logo-img.mr-29_25px(src="@/assets/images/logo.svg", alt="Logo")
|
||||
@@ -42,6 +42,7 @@ export default {
|
||||
openForm: Function,
|
||||
closeForm: Function,
|
||||
isOpenForm: Boolean,
|
||||
setUpdatedClients: Function,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -57,9 +58,6 @@ export default {
|
||||
localStorage.clear();
|
||||
this.$router.push("/login");
|
||||
},
|
||||
transmitUpdateClient() {
|
||||
this.$emit("update-client");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -107,6 +107,7 @@ export default {
|
||||
},
|
||||
props: {
|
||||
closeForm: Function,
|
||||
setUpdatedClients: Function,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -300,9 +301,9 @@ export default {
|
||||
this.createIdentityDocument(result.id);
|
||||
this.createAddress(result.id);
|
||||
this.createContacts(result.id);
|
||||
this.setUpdatedClients();
|
||||
this.addSuccessNotification();
|
||||
});
|
||||
this.$emit("update-client");
|
||||
},
|
||||
filterDataEmptyProperty(data) {
|
||||
let postData = data;
|
||||
|
||||
Reference in New Issue
Block a user