|
|
@ -24,7 +24,29 @@ const ModalDetails = ({ msDatagb, msSdate, msEdate, msChasu, msuTeam }) => {
|
|
|
|
|
|
|
|
|
|
|
|
findJudgeDetails(params).then((response) => {
|
|
|
|
findJudgeDetails(params).then((response) => {
|
|
|
|
if (response && response.data) {
|
|
|
|
if (response && response.data) {
|
|
|
|
setTotalCount(response.count);
|
|
|
|
console.log(response.data);
|
|
|
|
|
|
|
|
const totUserList = response.data?.totUserList;
|
|
|
|
|
|
|
|
const resultList = response.data?.resultList;
|
|
|
|
|
|
|
|
const gridRows = [];
|
|
|
|
|
|
|
|
const aaa = resultList.map((m) => {
|
|
|
|
|
|
|
|
// const users = m.simsa.map((u) => ({ ...m, name: u.NAME, msResult: u.msResult, msuResult: u.msuResult }));
|
|
|
|
|
|
|
|
m.simsa.reduce((pre, cur) => {
|
|
|
|
|
|
|
|
console.log(pre, cur);
|
|
|
|
|
|
|
|
// return pre.concat(cur);
|
|
|
|
|
|
|
|
return { pre, ...cur };
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return m;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
gridRows.push({
|
|
|
|
|
|
|
|
msMainCode: m.msMainCode,
|
|
|
|
|
|
|
|
msSeq: m.msSeq,
|
|
|
|
|
|
|
|
msCarnum: m.msCarnum,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTotalCount(totUserList.length);
|
|
|
|
setRowsState((prevState) => ({ ...prevState, rows: response.data }));
|
|
|
|
setRowsState((prevState) => ({ ...prevState, rows: response.data }));
|
|
|
|
// apiRef.current.forceUpdate(); // .updateRowData([]);
|
|
|
|
// apiRef.current.forceUpdate(); // .updateRowData([]);
|
|
|
|
// apiRef.current.updateRowData([]);
|
|
|
|
// apiRef.current.updateRowData([]);
|
|
|
|