From 0debc79530482bcca6204ec089b51728fbfdb944 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Sun, 3 Jul 2022 03:25:30 +0900 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=EC=8B=AC=EC=9D=98=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=20=EC=82=AD=EC=A0=9C=EC=8B=9C=20=EC=98=A4=EB=A5=98=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/biz/admin/judge/JudgeReview.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/biz/admin/judge/JudgeReview.jsx b/src/views/biz/admin/judge/JudgeReview.jsx index 845d38c..e00b005 100644 --- a/src/views/biz/admin/judge/JudgeReview.jsx +++ b/src/views/biz/admin/judge/JudgeReview.jsx @@ -77,9 +77,10 @@ const JudgeReview = ({ msDatagb, menuName }) => { const deleteJudge = useCallback( (row) => () => { let res = {}; + const datagb = row.msDatagb; removeAlert(async () => { - if (msDatagb) { + if (datagb) { res = await removeJudge(row); } else { res = await removeParkingJudge(row); From cc887b842c1889773d7e3711e7e25174b0de6b9c Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Sun, 3 Jul 2022 20:08:47 +0900 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=EC=A7=80=EB=A3=8C=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/biz/admin/judge/JudgeDataModifyForm.jsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/biz/admin/judge/JudgeDataModifyForm.jsx b/src/views/biz/admin/judge/JudgeDataModifyForm.jsx index 364017e..433c99e 100644 --- a/src/views/biz/admin/judge/JudgeDataModifyForm.jsx +++ b/src/views/biz/admin/judge/JudgeDataModifyForm.jsx @@ -28,7 +28,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav const [scWdate, setScWdate] = useState(rowData?.scWdate); const [scCdate, setScCdate] = useState(rowData?.scCdate); const [scJbtime, setScJbtime] = useState(rowData?.scJbtime); - const [scPos, setScPos] = useState(''); + const [scPos, setScPos] = useState(rowData?.scPos ?? ''); const [picads, setPicads] = useState({}); const [frecads, setFrecads] = useState({}); @@ -123,7 +123,10 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav alert.show('우편번호는 필수입니다.'); return; } - + if (scPos.length < 1) { + alert.show('위반장소는 필수입니다.'); + return; + } if (rowData.scPicad1 === null || rowData.scPicad1 === '') { alert.show('단속사진 하나는 필수입니다.'); return; @@ -317,7 +320,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav required label="위반장소" fullWidth - value={rowData.scPos || ''} + value={scPos} onChange={(e) => setScPos(e?.target?.value)} /> From 78973e995af9209c96774c2bef799f403aeedfd6 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Sun, 3 Jul 2022 21:23:32 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=EC=A7=80=EB=A3=8C=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=20=EC=8B=A0=EA=B7=9C/=EB=B3=80=EA=B2=BD=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/admin/judge/JudgeDataModifyForm.jsx | 16 +++++++-------- .../biz/admin/judge/JudgeDataNewForm.jsx | 20 ++++++++----------- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/src/views/biz/admin/judge/JudgeDataModifyForm.jsx b/src/views/biz/admin/judge/JudgeDataModifyForm.jsx index 433c99e..547f7b5 100644 --- a/src/views/biz/admin/judge/JudgeDataModifyForm.jsx +++ b/src/views/biz/admin/judge/JudgeDataModifyForm.jsx @@ -95,35 +95,35 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav // } // 필수항목 빈값 체크 - if (scCarnum.length < 1) { + if (scCarnum.length < 4) { alert.show('차량번호는 필수입니다.'); return; } - if (scName.length < 1) { + if (scName.length < 2) { alert.show('성명은 필수입니다.'); return; } - if (scDong.length < 1) { + if (scDong.length < 2) { alert.show('동명은(는) 필수입니다.'); return; } - if (scCdate.length < 1) { + if (scCdate.length < 8) { alert.show('접수일자는 필수입니다.'); return; } - if (scWdate.length < 1) { + if (scWdate.length < 8) { alert.show('위반일자는 필수입니다.'); return; } - if (scJbtime.length < 1) { + if (scJbtime.length < 4) { alert.show('위반시간은 필수입니다.'); return; } - if (zipcode1.length < 1) { + if (zipcode1.length < 5) { alert.show('우편번호는 필수입니다.'); return; } - if (scPos.length < 1) { + if (scPos.length < 2) { alert.show('위반장소는 필수입니다.'); return; } diff --git a/src/views/biz/admin/judge/JudgeDataNewForm.jsx b/src/views/biz/admin/judge/JudgeDataNewForm.jsx index 3c88426..d0e0565 100644 --- a/src/views/biz/admin/judge/JudgeDataNewForm.jsx +++ b/src/views/biz/admin/judge/JudgeDataNewForm.jsx @@ -68,39 +68,35 @@ const JudgeDataNewForm = ({ scDatagb, contDocs, ingbs, handleModalSave, setOpen, }); // 필수항목 빈값 체크 - if (scCarnum.length < 1) { - // Toast.fire({ - // icon: 'warning', - // title: '차량번호는 필수입니다.' - // }); + if (scCarnum.length < 4) { alert.show('차량번호는 필수입니다.'); return; } - if (scName.length < 1) { + if (scName.length < 2) { alert.show('성명은 필수입니다.'); return; } - if (scDong.length < 1) { + if (scDong.length < 2) { alert.show('동명은(는) 필수입니다.'); return; } - if (scCdate.length < 1) { + if (scCdate.length < 8) { alert.show('접수일자는 필수입니다.'); return; } - if (scWdate === null || scWdate === '') { + if (scWdate.length < 8) { alert.show('위반일자는 필수입니다.'); return; } - if (scJbtime === null || scJbtime === '') { + if (scJbtime.length < 4) { alert.show('위반시간은 필수입니다.'); return; } - if (scPos.length < 1) { + if (scPos.length < 2) { alert.show('위반장소는 필수입니다.'); return; } - if (zipcode1 === null || zipcode1 === '') { + if (zipcode1.length < 5) { alert.show('우편번호는 필수입니다.'); return; }