WIP Переключение на клиента после создания
This commit is contained in:
@@ -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;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user