|
|
@ -120,6 +120,13 @@ const Dashboard = () => {
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 95,
|
|
|
|
width: 95,
|
|
|
|
valueGetter: (params) => `${params.row.jcnt} / ${params.row.tcnt}`
|
|
|
|
valueGetter: (params) => `${params.row.jcnt} / ${params.row.tcnt}`
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
headerName: '종료일',
|
|
|
|
|
|
|
|
headerAlign: 'center',
|
|
|
|
|
|
|
|
field: 'msEdate',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
width: 95
|
|
|
|
}
|
|
|
|
}
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
@ -138,17 +145,17 @@ const Dashboard = () => {
|
|
|
|
|
|
|
|
|
|
|
|
const parkRows = res.data.parkJudgeList.map((d, idx) => ({ ...d, rowId: idx + 1 }));
|
|
|
|
const parkRows = res.data.parkJudgeList.map((d, idx) => ({ ...d, rowId: idx + 1 }));
|
|
|
|
setMsEdate1(parkRows[0]?.msEdate);
|
|
|
|
setMsEdate1(parkRows[0]?.msEdate);
|
|
|
|
setTotalCount1(parkRows.count);
|
|
|
|
setTotalCount1(parkRows.length);
|
|
|
|
setRowsState1((prevState) => ({ ...prevState, rows: parkRows }));
|
|
|
|
setRowsState1((prevState) => ({ ...prevState, rows: parkRows }));
|
|
|
|
|
|
|
|
|
|
|
|
const residentRows = res.data.residentJudgeList.map((d, idx) => ({ ...d, rowId: idx + 1 }));
|
|
|
|
const residentRows = res.data.residentJudgeList.map((d, idx) => ({ ...d, rowId: idx + 1 }));
|
|
|
|
setMsEdate2(residentRows[0]?.msEdate);
|
|
|
|
setMsEdate2(residentRows[0]?.msEdate);
|
|
|
|
setTotalCount2(residentRows.count);
|
|
|
|
setTotalCount2(residentRows.length);
|
|
|
|
setRowsState2((prevState) => ({ ...prevState, rows: residentRows }));
|
|
|
|
setRowsState2((prevState) => ({ ...prevState, rows: residentRows }));
|
|
|
|
|
|
|
|
|
|
|
|
const disabledRows = res.data.disabledJudgeList.map((d, idx) => ({ ...d, rowId: idx + 1 }));
|
|
|
|
const disabledRows = res.data.disabledJudgeList.map((d, idx) => ({ ...d, rowId: idx + 1 }));
|
|
|
|
setMsEdate3(disabledRows[0]?.msEdate);
|
|
|
|
setMsEdate3(disabledRows[0]?.msEdate);
|
|
|
|
setTotalCount3(disabledRows.count);
|
|
|
|
setTotalCount3(disabledRows.length);
|
|
|
|
setRowsState3((prevState) => ({ ...prevState, rows: disabledRows }));
|
|
|
|
setRowsState3((prevState) => ({ ...prevState, rows: disabledRows }));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
showAlert.show(res.data.methodName);
|
|
|
|
showAlert.show(res.data.methodName);
|
|
|
|