|
|
|
@ -98,7 +98,7 @@ export const BasisIdntfContainer = props => {
|
|
|
|
|
const check_kor = |
|
|
|
|
/^[가-힣a-zA-Z0-9][^!@#$%^&*()+\=\[\]{};':"\\|,.<>\/?\s]*$/; |
|
|
|
|
|
|
|
|
|
if (!idntf.idntfNum && idntf.idntfNum === '') { |
|
|
|
|
if (idntf.idntfNum === 'PA') { |
|
|
|
|
setModal({ |
|
|
|
|
isOpen: true, |
|
|
|
|
title: '필수값 입력 오류', |
|
|
|
@ -185,16 +185,22 @@ 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); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|