From 78973e995af9209c96774c2bef799f403aeedfd6 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Sun, 3 Jul 2022 21:23:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A7=80=EB=A3=8C=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=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; }