
--- client/views/component/Modal_SeniorInsert.jsx
+++ client/views/component/Modal_SeniorInsert.jsx
... | ... | @@ -161,43 +161,6 @@ |
161 | 161 |
} |
162 | 162 |
} |
163 | 163 |
|
164 |
- //아이디 중복 확인 |
|
165 |
- const [isIdCheck, setIsIdCheck] = React.useState(false); |
|
166 |
- //로그인 아이디 중복 검사 |
|
167 |
- const userIdCheck = () => { |
|
168 |
- if (CommonUtil.isEmpty(senior['user_phonenumber']) == true) { |
|
169 |
- seniorRef.current['user_phonenumber'].focus(); |
|
170 |
- alert("연락처를 입력해 주세요."); |
|
171 |
- return false; |
|
172 |
- } |
|
173 |
- if (senior['user_phonenumber'].length < 7) { |
|
174 |
- seniorRef.current['user_phonenumber'].focus(); |
|
175 |
- alert("연락처를 7자리 이상 입력해 주세요."); |
|
176 |
- return false; |
|
177 |
- } |
|
178 |
- |
|
179 |
- senior['user_id'] = senior['user_phonenumber']; |
|
180 |
- fetch("/user/userSelectOne.json", { |
|
181 |
- method: "POST", |
|
182 |
- headers: { |
|
183 |
- 'Content-Type': 'application/json; charset=UTF-8' |
|
184 |
- }, |
|
185 |
- body: JSON.stringify(senior), |
|
186 |
- }).then((response) => response.json()).then((data) => { |
|
187 |
- console.log("로그인 아이디 중복 검사(아이디를 통한 사용자 조회) : ", data); |
|
188 |
- if (CommonUtil.isEmpty(data) == true) { |
|
189 |
- setIsIdCheck(true); |
|
190 |
- seniorRef.current['user_address'].focus(); |
|
191 |
- alert("사용가능한 연락처 입니다."); |
|
192 |
- } else { |
|
193 |
- setIsIdCheck(false); |
|
194 |
- seniorRef.current['user_phonenumber'].focus(); |
|
195 |
- alert("이미 존재하는 연락처 입니다."); |
|
196 |
- } |
|
197 |
- }).catch((error) => { |
|
198 |
- console.log('userIdCheck() /user/userSelectOne.json error : ', error); |
|
199 |
- }); |
|
200 |
- } |
|
201 | 164 |
//시니어 등록 유효성 검사 |
202 | 165 |
const seniorInsertValidation = () => { |
203 | 166 |
if (CommonUtil.isEmpty(senior['government_id']) == true) { |
... | ... | @@ -459,6 +422,7 @@ |
459 | 422 |
<td colSpan={3}> |
460 | 423 |
<input type="number" maxLength="11" style={{ width: '100%' }} |
461 | 424 |
value={senior['user_phonenumber']} |
425 |
+ onChange={(e) => { seniorValueChange('user_phonenumber', e.target.value) }} |
|
462 | 426 |
ref={el => seniorRef.current['user_phonenumber'] = el} |
463 | 427 |
/> |
464 | 428 |
</td> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?