|
@@ -630,12 +630,13 @@ const ProjectResourceConsumptionRanking: React.FC = () => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const handleSearchSelectionChange = (newSelectionModel: GridRowSelectionModel) => { |
|
|
const handleSearchSelectionChange = (newSelectionModel: GridRowSelectionModel) => { |
|
|
|
|
|
|
|
|
const selectedRowsData = projectData.filter((row: any) => |
|
|
const selectedRowsData = projectData.filter((row: any) => |
|
|
newSelectionModel.includes(row.id), |
|
|
newSelectionModel.includes(row.id), |
|
|
); |
|
|
); |
|
|
const teamIdList = [] |
|
|
const teamIdList = [] |
|
|
for (var i=0; i<selectedRowsData.length; i++){ |
|
|
for (var i=0; i<selectedRowsData.length; i++){ |
|
|
teamIdList.push(selectedRowsData[i].id) |
|
|
|
|
|
|
|
|
teamIdList.push(selectedRowsData[i].teamId) |
|
|
} |
|
|
} |
|
|
setSelectedTeamIdList(teamIdList) |
|
|
setSelectedTeamIdList(teamIdList) |
|
|
}; |
|
|
}; |
|
|