소스 검색

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek 1 년 전
부모
커밋
817fb486e1
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. +2
    -4
      src/components/GenerateMonthlyWorkHoursReport/GenerateMonthlyWorkHoursReport.tsx

+ 2
- 4
src/components/GenerateMonthlyWorkHoursReport/GenerateMonthlyWorkHoursReport.tsx 파일 보기

@@ -45,11 +45,9 @@ return (
<SearchBox
criteria={searchCriteria}
onSearch={async (query: any) => {
console.log(query)
console.log(query.date.length)
if (query.staff.length > 0 && query.staff.toLocaleLowerCase() !== "all" && query.date.length > 0) {
const index = staffCombo.findIndex(staff => staff === query.staff)
console.log(index)
if (query.staff.length > 0 && query.staff.toLocaleLowerCase() !== "all" && query.date.length > 0) {
const index = staffCombo.findIndex(staff => staff === query.staff)
const response = await fetchMonthlyWorkHoursReport({ id: staffs[index].id, yearMonth: query.date })
if (response) {
downloadFile(new Uint8Array(response.blobValue), response.filename!!)


불러오는 중...
취소
저장