WIP Подключила пагинацию на клиентов

This commit is contained in:
Daria Golova
2022-11-24 17:56:26 +03:00
parent 9a5a932f69
commit 5e11928fb3
7 changed files with 72 additions and 21 deletions

View File

@@ -4,14 +4,17 @@
:is-open-form="isOpenForm",
:close-form="closeForm",
:open-form="openForm",
:current-year="currentYear"
:current-year="currentYear",
@update-client="setUpdatedClients"
)
.flex.flex-auto
the-sidebar
router-view(
:open-form="openForm",
:is-open-form="isOpenForm",
:current-year="currentYear"
:current-year="currentYear",
:updated-clients="updatedClients",
@reset-updated-clients="resetUpdatedClients"
)
</template>
@@ -26,6 +29,7 @@ export default {
return {
isOpenForm: false,
currentYear: null,
updatedClients: false,
};
},
methods: {
@@ -38,6 +42,12 @@ export default {
printCurrentYear() {
return new Date().getFullYear();
},
setUpdatedClients() {
this.updatedClients = true;
},
resetUpdatedClients() {
this.updatedClients = false;
},
},
mounted: function () {
this.currentYear = this.printCurrentYear();

View File

@@ -3,7 +3,8 @@
base-client-form-create(
v-if="isOpenForm",
:close-form="closeForm",
:current-year="currentYear"
:current-year="currentYear",
@update-client="transmitUpdateClient"
)
.flex.items-center.box-border.cursor-pointer.mr-auto
img.logo-img.mr-29_25px(src="@/assets/images/logo.svg", alt="Logo")
@@ -58,6 +59,9 @@ export default {
localStorage.clear();
this.$router.push("/login");
},
transmitUpdateClient() {
this.$emit("update-client");
},
},
};
</script>

View File

@@ -210,6 +210,7 @@ export default {
this.createIdentityDocument(result.id);
this.createAddress(result.id);
});
this.$emit("update-client");
},
filterDataEmptyProperty(data) {
let postData = data;