WIP привести к изначальному виду
This commit is contained in:
@@ -43,11 +43,9 @@ export default {
|
||||
methods: {
|
||||
openFormCreateClient() {
|
||||
this.isOpenFormCreate = true;
|
||||
this.$emit("is-open-client-add-form", this.isOpenFormCreate);
|
||||
},
|
||||
closeFormCreateClient() {
|
||||
this.isOpenFormCreate = false;
|
||||
this.$emit("is-open-client-add-form", this.isOpenFormCreate);
|
||||
this.fetchDataClients();
|
||||
},
|
||||
saveDataClients(data) {
|
||||
@@ -81,9 +79,6 @@ export default {
|
||||
mounted() {
|
||||
this.fetchDataClients();
|
||||
},
|
||||
beforeUnmount() {
|
||||
this.closeFormCreateClient();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template lang="pug">
|
||||
.wrapper.flex.w-full.relative.mx-6
|
||||
clients-table(@is-open-client-add-form="transmitPageFormState")
|
||||
clients-table(:open-form-create="openFormCreateClient")
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -14,8 +14,11 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
transmitPageFormState(value) {
|
||||
this.$emit("is-open-client-add-form", value);
|
||||
openFormCreateClient() {
|
||||
this.isOpenForm = true;
|
||||
},
|
||||
closeFormCreateClient() {
|
||||
this.isOpenForm = false;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user