28 lines
678 B
Vue
28 lines
678 B
Vue
<template lang="pug">
|
|
.flex.w-full.relative.mx-6
|
|
clients-table(:open-form-create="openFormCreateClient")
|
|
clients-form-create(v-if="isOpenForm" :close-form="closeFormCreateClient")
|
|
</template>
|
|
|
|
<script>
|
|
import ClientsFormCreate from "@/pages/clients/components/ClientsFormCreate";
|
|
import ClientsTable from "@/pages/clients/components/ClientsTable";
|
|
export default {
|
|
name: "ClientsWrapper",
|
|
components: { ClientsTable, ClientsFormCreate },
|
|
data() {
|
|
return {
|
|
isOpenForm: false,
|
|
};
|
|
},
|
|
methods: {
|
|
openFormCreateClient() {
|
|
this.isOpenForm = true;
|
|
},
|
|
closeFormCreateClient() {
|
|
this.isOpenForm = false;
|
|
},
|
|
},
|
|
};
|
|
</script>
|