|
|
|
@ -17,14 +17,23 @@ import { findJudgeResults } from 'apis/judge';
|
|
|
|
|
import _ from 'lodash';
|
|
|
|
|
import { useAlert } from 'react-alert';
|
|
|
|
|
import JudgeModal from './JudgeModal';
|
|
|
|
|
import PerfectScrollbar from 'react-perfect-scrollbar';
|
|
|
|
|
|
|
|
|
|
const StyledTableCell = styled(TableCell)(({ theme }) => ({
|
|
|
|
|
[`&.${tableCellClasses.head}`]: {
|
|
|
|
|
backgroundColor: theme.palette.common.black,
|
|
|
|
|
color: theme.palette.common.white
|
|
|
|
|
color: theme.palette.common.white,
|
|
|
|
|
border: '1px solid #525a73', // #525a73;
|
|
|
|
|
overflow: 'initial',
|
|
|
|
|
borderWidth: '3px 1px 3px 0px'
|
|
|
|
|
},
|
|
|
|
|
[`&.${tableCellClasses.body}`]: {
|
|
|
|
|
// fontSize: 14
|
|
|
|
|
borderRight: '1px solid #525a73 !important',
|
|
|
|
|
borderBottom: '1px solid #525a73 !important',
|
|
|
|
|
padding: '8px'
|
|
|
|
|
// border: '1px solid #525a73', // #525a73;
|
|
|
|
|
// overflow: 'initial',
|
|
|
|
|
// borderWidth: '0px 1px 1px 0px'
|
|
|
|
|
}
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
@ -38,6 +47,16 @@ const StyledTableRow = styled(TableRow)(({ theme }) => ({
|
|
|
|
|
}
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
// const StyledTableHead = styled(TableHead)(({ theme }) => ({
|
|
|
|
|
// [`&.${tableCellClasses.head}`]: {
|
|
|
|
|
// backgroundColor: theme.palette.common.black,
|
|
|
|
|
// color: theme.palette.common.white
|
|
|
|
|
// },
|
|
|
|
|
// [`&.${tableCellClasses.body}`]: {
|
|
|
|
|
// // fontSize: 14
|
|
|
|
|
// }
|
|
|
|
|
// }));
|
|
|
|
|
|
|
|
|
|
const totLabel = ['부과', '서손', '미부과', '계'];
|
|
|
|
|
|
|
|
|
|
const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUserData, selectedRow, judgeTeam, judgeData, dataGb }) => {
|
|
|
|
@ -130,7 +149,13 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
|
|
|
|
|
<Grid item xs={6} style={{ marginLeft: 'auto' }}>
|
|
|
|
|
<FormControl fullWidth>
|
|
|
|
|
<InputLabel required>팀</InputLabel>
|
|
|
|
|
<Select defaultValue={msuTeam} value={msuTeam} onChange={(e) => setMsuTeam(e.target.value)}>
|
|
|
|
|
<Select
|
|
|
|
|
sx={{ marginTop: 1 }}
|
|
|
|
|
defaultValue={msuTeam}
|
|
|
|
|
value={msuTeam}
|
|
|
|
|
onChange={(e) => setMsuTeam(e.target.value)}
|
|
|
|
|
size="small"
|
|
|
|
|
>
|
|
|
|
|
{combo.teams.map((team, idx) => (
|
|
|
|
|
<MenuItem key={idx} value={team.code}>
|
|
|
|
|
{team.value}
|
|
|
|
@ -158,12 +183,13 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
<Paper sx={{ width: '100%', overflow: 'hidden' }}>
|
|
|
|
|
<Paper sx={{ width: '100%' }}>
|
|
|
|
|
{/* <PerfectScrollbar style={{ height: '100%', maxHeight: 'calc(100vh - 205px)', overflowX: 'hidden' }}> */}
|
|
|
|
|
<TableContainer sx={{ maxwidth: 950, maxHeight: 700 }}>
|
|
|
|
|
<Table stickyHeader aria-label="sticky table">
|
|
|
|
|
<Table stickyHeader>
|
|
|
|
|
<TableHead>
|
|
|
|
|
<TableRow>
|
|
|
|
|
<StyledTableCell align="center" style={{ minWidth: 45 }} hidden>
|
|
|
|
|
<StyledTableCell align="center" style={{ minWidth: 45 }}>
|
|
|
|
|
No.
|
|
|
|
|
</StyledTableCell>
|
|
|
|
|
<StyledTableCell align="center" style={{ width: 95 }}>
|
|
|
|
@ -244,6 +270,7 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
|
|
|
|
|
{/* <TableFooter>{judgeResult && `총 ${selectedRow.cnt} 건중 ${judgeResult.judgeCars.length} 건`}</TableFooter> */}
|
|
|
|
|
</Table>
|
|
|
|
|
</TableContainer>
|
|
|
|
|
{/* </PerfectScrollbar> */}
|
|
|
|
|
</Paper>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|