Добавлена форма создания клиента
This commit is contained in:
@@ -1,12 +1,27 @@
|
||||
<template lang="pug">
|
||||
.flex.w-full.mx-6
|
||||
clients-table
|
||||
.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 },
|
||||
components: { ClientsTable, ClientsFormCreate },
|
||||
data() {
|
||||
return {
|
||||
isOpenForm: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
openFormCreateClient() {
|
||||
this.isOpenForm = true;
|
||||
},
|
||||
closeFormCreateClient() {
|
||||
this.isOpenForm = false;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user