Estado funcional do relatório de atendimento por usuário passando: id, dataInicio, dataFim

pull/1/head
adriano 2022-01-25 12:09:27 -03:00
parent dd06ac45c9
commit 3b4bef8266
1 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,12 @@ const MTable = (props) => {
const [selectedRow, setSelectedRow] = useState(null); const [selectedRow, setSelectedRow] = useState(null);
console.log('rederizou....................: ',props.data) console.log('rederizou....................: ',props.data)
const dataLoad = props.data.map((dt) => { return { ...dt }});
const columnsLoad = props.columns.map((column) => { return { ...column }});
console.log('dataLoad....................: ',dataLoad)
console.log('columnsLoad....................: ',columnsLoad)
useEffect(() => { useEffect(() => {
@ -22,8 +28,8 @@ const MTable = (props) => {
<MaterialTable <MaterialTable
title='Relatorio' title='Relatorio'
columns={props.columns} columns={columnsLoad}
data={props.data} data={dataLoad}
onRowClick={(evt, selectedRow) => { onRowClick={(evt, selectedRow) => {