From a69b73e47cca8e0e8666684a05b88504238a48ce Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Sat, 14 Jul 2018 20:27:31 +0530 Subject: [PATCH] Code to handle onloadFilters for reports --- ui/pages/Report/ReportFilters.vue | 63 ++++++++++++++++++------------- ui/pages/Report/index.vue | 59 +++++++++++++++-------------- 2 files changed, 67 insertions(+), 55 deletions(-) diff --git a/ui/pages/Report/ReportFilters.vue b/ui/pages/Report/ReportFilters.vue index d1595a98..c6a2f8b6 100644 --- a/ui/pages/Report/ReportFilters.vue +++ b/ui/pages/Report/ReportFilters.vue @@ -4,40 +4,49 @@ v-for="docfield in filters" :key="docfield.fieldname" :docfield="docfield" - :value="$data[docfield.fieldname]" + :value="$data.filterValues[docfield.fieldname]" @change="updateValue(docfield.fieldname, $event)"/> diff --git a/ui/pages/Report/index.vue b/ui/pages/Report/index.vue index 8957c836..f278b6fc 100644 --- a/ui/pages/Report/index.vue +++ b/ui/pages/Report/index.vue @@ -2,43 +2,46 @@

{{ reportConfig.title }}

- +