From b7980c6a56660c17e3f00e1c8b23123c0c8f9041 Mon Sep 17 00:00:00 2001 From: Piyush Singhania Date: Fri, 3 Dec 2021 00:39:22 +0530 Subject: [PATCH] Added download as json button --- src/pages/Report.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/pages/Report.vue b/src/pages/Report.vue index 0f4d2c07..ac9b0cd9 100644 --- a/src/pages/Report.vue +++ b/src/pages/Report.vue @@ -3,6 +3,15 @@

{{ report.title }}

@@ -25,6 +34,7 @@ :df="df" :value="filters[df.fieldname]" @change="(value) => onFilterChange(df, value)" + :show-label="df.fieldtype === 'Check'" /> @@ -261,6 +271,9 @@ export default { this.loading ? 'text-gray-100' : 'text-gray-900', ]; }, + downloadAsJson() { + console.log('download complete'); + }, }, computed: { columns() { @@ -311,6 +324,9 @@ export default { }) .join(' '); }, + isGstReportsPage() { + return this.report.title.includes('GSTR'); + }, }, };