WIP Попытки переделать форму создания клиента
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
:url="url",
|
||||
:is-open-form="isOpenForm",
|
||||
:close-form="closeForm",
|
||||
:open-form="openForm",
|
||||
:set-updated-clients="setUpdatedClients",
|
||||
:write-created-client-id="writeCreatedClientId"
|
||||
)
|
||||
@@ -39,10 +38,13 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
openForm() {
|
||||
console.log("before open", this.isOpenForm);
|
||||
this.isOpenForm = true;
|
||||
console.log("after open", this.isOpenForm);
|
||||
},
|
||||
closeForm() {
|
||||
this.isOpenForm = false;
|
||||
console.log("close", this.isOpenForm);
|
||||
},
|
||||
setUpdatedClients() {
|
||||
if (this.$router.currentRoute._value.path === "/clients")
|
||||
@@ -57,5 +59,14 @@ export default {
|
||||
this.createdClientId = id;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
isOpenForm: {
|
||||
immediate: true,
|
||||
deep: true,
|
||||
handler(newValue, oldValue) {
|
||||
console.log("layout", newValue, oldValue);
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user