WIP Переключение на клиента после создания

This commit is contained in:
Daria Golova
2022-12-14 17:46:24 +03:00
parent 1666e7f806
commit 86d64bc771
8 changed files with 56 additions and 13 deletions

View File

@@ -6,6 +6,7 @@
:close-form="closeForm",
:open-form="openForm",
:set-updated-clients="setUpdatedClients",
:write-created-client-id="writeCreatedClientId"
)
.flex.flex-auto
the-sidebar
@@ -14,7 +15,8 @@
:is-open-form="isOpenForm",
:updated-clients="updatedClients",
@reset-updated-clients="resetUpdatedClients",
:url="url"
:url="url",
:created-client-id="createdClientId"
)
the-notification-provider
</template>
@@ -32,6 +34,7 @@ export default {
isOpenForm: false,
updatedClients: false,
url: "http://45.84.227.122:8080",
createdClientId: "",
};
},
methods: {
@@ -46,6 +49,10 @@ export default {
},
resetUpdatedClients() {
this.updatedClients = false;
this.createdClientId = "";
},
writeCreatedClientId(id) {
this.createdClientId = id;
},
},
};

View File

@@ -5,6 +5,7 @@
v-if="isOpenForm",
:close-form="closeForm",
:set-updated-clients="setUpdatedClients",
:write-created-client-id="writeCreatedClientId",
)
.flex.items-center.box-border.cursor-pointer.mr-auto
img.logo-img.mr-29_25px(src="@/assets/images/logo.svg", alt="Logo")
@@ -60,6 +61,7 @@ export default {
closeForm: Function,
isOpenForm: Boolean,
setUpdatedClients: Function,
writeCreatedClientId: Function,
},
data() {
return {

View File

@@ -111,6 +111,7 @@ export default {
props: {
closeForm: Function,
setUpdatedClients: Function,
writeCreatedClientId: Function,
},
data() {
return {
@@ -325,6 +326,7 @@ export default {
this.createIdentityDocument(result.id);
this.createAddress(result.id);
this.createContacts(result.id);
this.writeCreatedClientId(result.id);
this.setUpdatedClients();
this.addSuccessNotification();
} else {