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();