From a0667c1f4552614ca9d968f1a7fcfd4e1d1cfb85 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Mon, 30 Sep 2019 00:22:01 +0300 Subject: [PATCH] Move report rendering and its pagination inside report component --- src/store/modules/reports.js | 4 +- .../reports/components/GroupedReport.vue | 102 +++++------ src/views/reports/components/Report.vue | 161 +++++++++++------- src/views/reports/index.vue | 38 +---- 4 files changed, 158 insertions(+), 147 deletions(-) diff --git a/src/store/modules/reports.js b/src/store/modules/reports.js index 5d1cdb69..9922f465 100644 --- a/src/store/modules/reports.js +++ b/src/store/modules/reports.js @@ -5,8 +5,8 @@ const reports = { fetchedReports: [], totalReportsCount: 0, currentPage: 1, - pageSize: 1, - groupReports: true, + pageSize: 50, + groupReports: false, stateFilter: '', loading: true }, diff --git a/src/views/reports/components/GroupedReport.vue b/src/views/reports/components/GroupedReport.vue index 1e6cc8fa..f304a87d 100644 --- a/src/views/reports/components/GroupedReport.vue +++ b/src/views/reports/components/GroupedReport.vue @@ -1,55 +1,57 @@