Procházet zdrojové kódy

update

tags/Baseline_30082024_FRONTEND_UAT
cyril.tsui před 1 rokem
rodič
revize
6f409599eb
1 změnil soubory, kde provedl 11 přidání a 11 odebrání
  1. +11
    -11
      src/components/Report/ReportSearchBox/SearchBox.tsx

+ 11
- 11
src/components/Report/ReportSearchBox/SearchBox.tsx Zobrazit soubor

@@ -123,22 +123,22 @@ function SearchBox<T extends string>({
const handleDownload = async () => {
try {
// Create a request object, which includes the projectId
console.log(inputs)
const abc = await fetchTeamCombo()
// console.log(inputs)
// const abc = await fetchTeamCombo()

//console.log(abc.records)
const requestData: LateStartReportRequest = {
team: 'Your Team Name', // Example value, adjust as necessary
customer: 'Client Name', // Example value, adjust as necessary
project: new Date().toISOString() // Current date in ISO format, adjust as necessary
};
// const requestData: LateStartReportRequest = {
// team: 'Your Team Name', // Example value, adjust as necessary
// customer: 'Client Name', // Example value, adjust as necessary
// project: new Date().toISOString() // Current date in ISO format, adjust as necessary
// };
// Call fetchLateStartReport and wait for the blob
//const responseBlob = await fetchLateStartReport(requestData);
const fileResponse = await fetchLateStartReport(requestData);
if (fileResponse) {
downloadFile(new Uint8Array(fileResponse.blobValue), fileResponse.filename!!)
}
// const fileResponse = await fetchLateStartReport(requestData);
// if (fileResponse) {
// downloadFile(new Uint8Array(fileResponse.blobValue), fileResponse.filename!!)
// }
// const blob = fileResponse.fileBlob;
// // Create a URL from the Blob response


Načítá se…
Zrušit
Uložit