TP-62982 Download report (#920)
This commit is contained in:
committed by
GitHub
parent
3a7c0a1d2f
commit
69b37e0a5c
@@ -277,9 +277,15 @@ export const getAgencyPerformanceData = () => (dispatch: Dispatch) => {
|
||||
|
||||
export const handleAgencyManagerReportDownload = (setIsReportDownloading: any) => {
|
||||
const url = getApiUrl(ApiKeys.DOWNLOAD_AGENCY_MANAGER_REPORT);
|
||||
const params = readQueryParams();
|
||||
setIsReportDownloading(true);
|
||||
const queryParams = getQueryParamsForCCMRMDashboardTables(
|
||||
params,
|
||||
QueryParamTypeMapping.AGENCY_MANAGER_PERFORMANCE_TABLE
|
||||
);
|
||||
axiosInstance
|
||||
.get(url, {
|
||||
params: queryParams,
|
||||
headers: { donotHandleError: true }
|
||||
})
|
||||
.then(res => {
|
||||
@@ -302,9 +308,15 @@ export const handleAgencyManagerReportDownload = (setIsReportDownloading: any) =
|
||||
|
||||
export const handleAgencyReportDownload = (setIsReportDownloading: any) => {
|
||||
const url = getApiUrl(ApiKeys.DOWNLOAD_AGENCY_REPORT);
|
||||
const params = readQueryParams();
|
||||
setIsReportDownloading(true);
|
||||
const queryParams = getQueryParamsForCCMRMDashboardTables(
|
||||
params,
|
||||
QueryParamTypeMapping.AGENCY_PERFORMANCE_TABLE
|
||||
);
|
||||
axiosInstance
|
||||
.get(url, {
|
||||
params: queryParams,
|
||||
headers: { donotHandleError: true }
|
||||
})
|
||||
.then(res => {
|
||||
|
||||
Reference in New Issue
Block a user