diff --git a/src/views/biz/admin/judge/ModalJudgeResult.jsx b/src/views/biz/admin/judge/ModalJudgeResult.jsx
index e1ba1b9..5398ba5 100644
--- a/src/views/biz/admin/judge/ModalJudgeResult.jsx
+++ b/src/views/biz/admin/judge/ModalJudgeResult.jsx
@@ -6,11 +6,11 @@ import TableContainer from '@mui/material/TableContainer';
import TableHead from '@mui/material/TableHead';
import TableRow from '@mui/material/TableRow';
import { styled } from '@mui/material/styles';
-import { Divider, FormControl, Grid, InputLabel, MenuItem, Select, TableFooter, Typography } from '@mui/material';
+import { Card, Divider, FormControl, Grid, InputLabel, MenuItem, Select, Stack, TableFooter, Typography } from '@mui/material';
import PropTypes from 'prop-types';
import Box from '@mui/material/Box';
import combo from 'commons/combo_data';
-import { useCallback, useRef, useState } from 'react';
+import { useCallback, useState } from 'react';
import Button from '@mui/material/Button';
import { IconSearch } from '@tabler/icons';
import { findJudgeResults } from 'apis/judge';
@@ -43,7 +43,7 @@ const totLabel = ['부과', '서손', '미부과', '계'];
const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUserData, selectedRow, judgeTeam, judgeData, dataGb }) => {
const alert = useAlert();
const [open, setOpen] = useState(false);
- const [title, setTitle] = useState('심사 처리');
+ const [title] = useState('심사 처리');
const [judgeResult, setJudgeResult] = useState({
totJudgeUsers,
totJudgeUserData,
@@ -163,9 +163,9 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
- {/* */}
- {/* 민원코드 */}
- {/* */}
+
+ No.
+
접수번호
@@ -185,31 +185,31 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
+
{/* 심사 통계 */}
{judgeResult?.totJudgeUserData.map((totData, idx) => (
-
+
+
{totLabel[idx]}
{totData.map((data, totIdx) => (
-
+
{data}
))}
))}
-
-
-
-
-
+
{/* 접수번호별 심사 결과 */}
{judgeResult?.judgeCars.map((row, carIdx) => (
- {/* {row.msMaincode} */}
+
+ {carIdx + 1}
+
{row.msSeq}
@@ -240,11 +240,12 @@ const ModalJudgeResult = ({ totJudgeUsers, totJudgeUserData, judgeCars, judgeUse
))}
+
{/* {judgeResult && `총 ${selectedRow.cnt} 건중 ${judgeResult.judgeCars.length} 건`} */}
-
{judgeResult && `총 ${selectedRow.cnt} 건중 ${judgeResult.judgeCars.length} 건`}
-
+
+ {/* */}
+
{
+ const showAlert = useAlert();
+
// eslint-disable-next-line react/prop-types
const { setOpen, handleModalSave, rowData = {}, owner = false, handleNewBoard } = props;
const quillRef = useRef();
@@ -34,15 +36,15 @@ const ModifyBoardForm = (props) => {
const replaceContents = contents.replace('
', '').length;
if (subject.length < 1) {
- alert('제목은 필수입니다.');
+ showAlert.show('제목은 필수입니다.');
return;
}
if (replaceContents < 1) {
- alert('내용은 필수입니다.');
+ showAlert.show('내용은 필수입니다.');
return;
}
if (pass === undefined || pass === '') {
- alert('비밀번호는 필수입니다.');
+ showAlert.show('비밀번호는 필수입니다.');
return;
}
diff --git a/src/views/biz/board/NewBoardForm.jsx b/src/views/biz/board/NewBoardForm.jsx
index 1a9d6a2..2eb769f 100644
--- a/src/views/biz/board/NewBoardForm.jsx
+++ b/src/views/biz/board/NewBoardForm.jsx
@@ -10,10 +10,12 @@ import 'react-quill/dist/quill.snow.css';
// project imports
import { List, Save } from '@mui/icons-material';
import PropTypes from 'prop-types';
+import { useAlert } from 'react-alert';
const BoardForm = (props) => {
// eslint-disable-next-line react/prop-types
const { setOpen, handleModalSave, rowData = {} } = props;
+ const showAlert = useAlert();
const quillRef = useRef();
const [subject, setSubject] = useState('');
const [contents, setContents] = useState('');
@@ -34,15 +36,15 @@ const BoardForm = (props) => {
};
const replaceContents = contents.replace('
', '').length;
if (subject.length < 1) {
- alert('제목은 필수입니다.');
+ showAlert.alert('제목은 필수입니다.');
return;
}
if (replaceContents < 1) {
- alert('내용은 필수입니다.');
+ showAlert.show('내용은 필수입니다.');
return;
}
if (pass === undefined || pass === '') {
- alert('비밀번호는 필수입니다.');
+ showAlert.show('비밀번호는 필수입니다.');
return;
}
diff --git a/src/views/biz/judge/ParkingJudgeByUserReview.jsx b/src/views/biz/judge/ParkingJudgeByUserReview.jsx
index cad912e..7657b08 100644
--- a/src/views/biz/judge/ParkingJudgeByUserReview.jsx
+++ b/src/views/biz/judge/ParkingJudgeByUserReview.jsx
@@ -31,7 +31,7 @@ const ParkingJudgeByUserReview = () => {
});
const [open, setOpen] = useState(false);
const [title, setTitle] = useState('');
- const [rowDatas, setRowDatas] = useState([]);
+ const [rowDatas] = useState([]);
const [minSdate, setMinSdate] = useState('');
const [maxEdate, setMaxEdate] = useState('');
const [minSeq, setMinSeq] = useState(0);
diff --git a/src/views/biz/judge/ProcessParkingJudge.jsx b/src/views/biz/judge/ProcessParkingJudge.jsx
index 0f9487e..cfc8f0a 100644
--- a/src/views/biz/judge/ProcessParkingJudge.jsx
+++ b/src/views/biz/judge/ProcessParkingJudge.jsx
@@ -1,7 +1,7 @@
import { useEffect, useRef, useState } from 'react';
import PropTypes from 'prop-types';
-import { Button, CardMedia, Divider, FormControl, Grid, ImageList, InputLabel, MenuItem, Select, TextField } from '@mui/material';
+import { Button, Divider, FormControl, Grid, ImageList, InputLabel, MenuItem, Select, TextField } from '@mui/material';
import { findImages, saveJudgeResult } from 'apis/judge';
import { SkipNext, SkipPrevious, Save } from '@mui/icons-material';
import ImgItem from '../../cmm/ImgItem';
diff --git a/src/views/biz/pboard/ModifyPublicBoardForm.jsx b/src/views/biz/pboard/ModifyPublicBoardForm.jsx
index d3e238e..486e4cc 100644
--- a/src/views/biz/pboard/ModifyPublicBoardForm.jsx
+++ b/src/views/biz/pboard/ModifyPublicBoardForm.jsx
@@ -17,7 +17,7 @@ import PropTypes from 'prop-types';
const ModifyPublicBoardForm = (props) => {
// eslint-disable-next-line react/prop-types
- const { setOpen, handleModalSave, rowData = {}, owner } = props;
+ const { setOpen, handleModalSave, rowData = {}, owner = false } = props;
const alert = useAlert();
const quillRef = useRef();
const [dept, setDept] = useState(rowData?.inDept);
@@ -223,7 +223,7 @@ ModifyPublicBoardForm.propTypes = {
rowData: PropTypes.object.isRequired,
handleModalSave: PropTypes.func.isRequired,
setOpen: PropTypes.func.isRequired,
- owner: PropTypes.bool.isRequired
+ owner: PropTypes.bool
};
export default ModifyPublicBoardForm;