diff --git a/src/components/basis/dron/BasisIdntform.js b/src/components/basis/dron/BasisIdntform.js index cf06d84..13b87ed 100644 --- a/src/components/basis/dron/BasisIdntform.js +++ b/src/components/basis/dron/BasisIdntform.js @@ -64,9 +64,15 @@ export const BasisIdntfForm = props => { {i => (
- + + { const check_kor = /^[가-힣a-zA-Z0-9][^!@#$%^&*()+\=\[\]{};':"\\|,.<>\/?\s]*$/; - if (!idntf.idntfNum && idntf.idntfNum === '') { + if (idntf.idntfNum === 'PA') { setModal({ isOpen: true, title: '필수값 입력 오류', @@ -185,46 +185,52 @@ export const BasisIdntfContainer = props => { if (!isSave) { setIdntfDataList(idntDataList.filter(item => item.id !== id)); } else { - dispatch(Actions.IDNTF_DELETE.request('PALDRONE-' + id)); + dispatch(Actions.IDNTF_DELETE.request(id)); } }; const handlerInput = (event, index) => { const { name, value } = event.target; - let newArr = [...idntDataList]; // copying the old datas array newArr[index] = { ...newArr[index], [name]: value }; + // if (newArr[index].idntfNum.length < 2) { + // setModal({ + // isOpen: true, + // title: '필수값 입력 오류', + // desc: '식별 장치 기본값입니다.' + // }); + newArr[index] = { ...newArr[index], idntfNum: 'PA' }; + } + setIdntfDataList(newArr); +}; - setIdntfDataList(newArr); - }; - - return !detail ? ( - - - - -
- 기체정보 등록후 식별장치 등록이 가능합니다. -
-
-
- -
- ) : ( - - - - - - - ); +return !detail ? ( + + + + +
+ 기체정보 등록후 식별장치 등록이 가능합니다. +
+
+
+ +
+) : ( + + + + + + +); };