Skip to content

Commit

Permalink
fix: renderização encontros pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnypaulino committed Jan 20, 2025
1 parent 03cf740 commit ec43c2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Pages/Classroom/ClassroomOne/Report/Pdf/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const ReportClassroom = () => {
const headerRow = [
"Nº",
"NOME COMPLETO",
...meetingSubset.map((item: any) => item.name),
...meetingSubset.map((item: any, index: number) => item.name.substring(0,3) + item.name.slice(-2)),
"FREQUÊNCIA",
"STATUS",
];
Expand Down
9 changes: 6 additions & 3 deletions src/Pages/Classroom/ClassroomOne/Report/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,13 @@ const ReportPage = () => {
<div id="center" style={{width: "90%", maxWidth: "95vw"}}>
<DataTable
value={data?.register_classroom}
scrollable
header={header}
tableStyle={{ width: "50rem" }}
paginator
rows={10}
// tableStyle={{ width: window.innerWidth > 1000 ? "" :"50rem" }}
>
<Column field={"registration.name"} header={"Beneficiário"} />
<Column field={"registration.name"} frozen header={"Beneficiário"} />
{data?.meeting?.map((item: any, index: number) => (
<Column
align={"center"}
Expand All @@ -98,7 +101,7 @@ const ReportPage = () => {
header={item.name}
/>
))}
<Column body={bodyTotal} header={"Total"} />
<Column body={bodyTotal} frozen header={"Total"} />
</DataTable>
</div>
</ContentPage>
Expand Down

0 comments on commit ec43c2a

Please sign in to comment.