feat: Download Agent wise report (#1517)

This commit is contained in:
Pranav Raj S
2020-12-15 23:35:03 +05:30
committed by GitHub
parent e6f7f5530b
commit 0619894560
8 changed files with 61 additions and 3 deletions

View File

@@ -1,5 +1,12 @@
<template>
<div class="column content-box">
<button
class="button nice icon success button--fixed-right-top"
@click="downloadAgentReports"
>
<i class="icon ion-android-download"></i>
{{ $t('REPORT.DOWNLOAD_AGENT_REPORTS') }}
</button>
<div class="small-3 pull-right">
<multiselect
v-model="currentDateRangeSelection"
@@ -148,6 +155,13 @@ export default {
to,
});
},
downloadAgentReports() {
const { from, to } = this;
this.$store.dispatch('downloadAgentReports', {
from,
to,
});
},
},
};
</script>