WIP Исправила статусы, очистку форму создания
This commit is contained in:
@@ -130,7 +130,7 @@ export default {
|
||||
networksSettings: column.find((el) => el.name === "networks")?.settings,
|
||||
prioritySettings: column.find((el) => el.name === "priority"),
|
||||
networkId: "",
|
||||
infoClient: {
|
||||
defaultInfoClient: {
|
||||
basic: {
|
||||
full_name: "",
|
||||
birth_date: null,
|
||||
@@ -190,6 +190,7 @@ export default {
|
||||
},
|
||||
],
|
||||
},
|
||||
infoClient: {},
|
||||
forms: [
|
||||
{
|
||||
title: "Основное",
|
||||
@@ -267,9 +268,6 @@ export default {
|
||||
closePopup() {
|
||||
this.showPopup = false;
|
||||
},
|
||||
/*closeModal() {
|
||||
!this.showModal ? this.closeForm() : null;
|
||||
},*/
|
||||
async createIdentityDocument(id) {
|
||||
let doc = null;
|
||||
let filteredData = Object.keys(
|
||||
@@ -370,6 +368,7 @@ export default {
|
||||
this.writeCreatedClientId(result.id);
|
||||
this.setUpdatedClients();
|
||||
this.addSuccessNotification();
|
||||
this.value = false;
|
||||
});
|
||||
} else {
|
||||
this.addErrorNotification(
|
||||
@@ -393,10 +392,7 @@ export default {
|
||||
this.infoClient.basic.priority = e.target.id;
|
||||
},
|
||||
saveClient() {
|
||||
if (this.checkFormFullness()) {
|
||||
this.postNewClient();
|
||||
//this.closeForm();
|
||||
}
|
||||
if (this.checkFormFullness()) this.postNewClient();
|
||||
},
|
||||
changeOpenModal() {
|
||||
this.showModal = true;
|
||||
@@ -483,6 +479,13 @@ export default {
|
||||
this.closeAddImage();
|
||||
}
|
||||
},
|
||||
value(newValue) {
|
||||
if (newValue === false)
|
||||
this.infoClient = JSON.parse(JSON.stringify(this.defaultInfoClient));
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.infoClient = JSON.parse(JSON.stringify(this.defaultInfoClient));
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user