[WIP] Исправил баг с отсутствием выбора города, фикс модального окна создания клиента
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<template lang="pug">
|
||||
.wrapper.flex.w-full.relative.mx-6
|
||||
clients-table(:open-form-create="openFormCreateClient")
|
||||
clients-table(
|
||||
:open-form-create="openFormCreateClient",
|
||||
@create-client="transmitOpenCreateForm",
|
||||
:is-close-header-form="isCloseHeaderForm"
|
||||
)
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -8,9 +12,12 @@ import ClientsTable from "@/pages/clients/components/ClientsTable";
|
||||
export default {
|
||||
name: "ClientsWrapper",
|
||||
components: { ClientsTable },
|
||||
props: {
|
||||
isCloseHeaderForm: Boolean,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isOpenForm: false,
|
||||
isOpenForm: true,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -20,6 +27,9 @@ export default {
|
||||
closeFormCreateClient() {
|
||||
this.isOpenForm = false;
|
||||
},
|
||||
transmitOpenCreateForm(value) {
|
||||
this.$emit("create-client", value);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user