瀏覽代碼

EX01 Financial Report,

tags/Baseline_30082024_FRONTEND_UAT
MSI\2Fi 1 年之前
父節點
當前提交
cc0418f547
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/components/Report/FinancialStatusReportGen/FinancialStatusReportGen.tsx

+ 2
- 1
src/components/Report/FinancialStatusReportGen/FinancialStatusReportGen.tsx 查看文件

@@ -43,7 +43,7 @@ const GenFinancialStatusReport: React.FC<Props> = ({ projects, teamCombo }) => {
if (query.code.length > 0 && query.code.toLocaleLowerCase() !== "all") {
const projectIndex = teamCombo.findIndex((project) => `${project.code} - ${project.name}` === query.code)
console.log(teamCombo[projectIndex].id)
const response = await fetchProjectsFinancialStatusReport({ teamLeadId: projects[projectIndex].id })
const response = await fetchProjectsFinancialStatusReport({ teamLeadId: teamCombo[projectIndex].id })
if (response) {
downloadFile(new Uint8Array(response.blobValue), response.filename!!)
}
@@ -55,6 +55,7 @@ const GenFinancialStatusReport: React.FC<Props> = ({ projects, teamCombo }) => {
}
}
}}
formType="download"
/>
{/* <DownloadReportButton /> */}
</>


Loading…
取消
儲存