Quellcode durchsuchen

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek vor 1 Jahr
Ursprung
Commit
817fb486e1
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  1. +2
    -4
      src/components/GenerateMonthlyWorkHoursReport/GenerateMonthlyWorkHoursReport.tsx

+ 2
- 4
src/components/GenerateMonthlyWorkHoursReport/GenerateMonthlyWorkHoursReport.tsx Datei anzeigen

@@ -45,11 +45,9 @@ return (
<SearchBox <SearchBox
criteria={searchCriteria} criteria={searchCriteria}
onSearch={async (query: any) => { 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) 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 }) const response = await fetchMonthlyWorkHoursReport({ id: staffs[index].id, yearMonth: query.date })
if (response) { if (response) {
downloadFile(new Uint8Array(response.blobValue), response.filename!!) downloadFile(new Uint8Array(response.blobValue), response.filename!!)


Laden…
Abbrechen
Speichern