

Merge branch 'front-end' of http://210.180.118.83/yjryu/senior_care_system into front-end
@3e80113773b17556c55d2de4b8bb6d083854abe4
--- client/views/component/Modal_Guardian.jsx
+++ client/views/component/Modal_Guardian.jsx
... | ... | @@ -1,5 +1,5 @@ |
1 | 1 |
import React from "react"; |
2 |
-import SubTitle from "./SubTitle.jsx"; |
|
2 |
+import SubTitle2 from "./SubTitle2.jsx"; |
|
3 | 3 |
import CommonUtil from "../../resources/js/CommonUtil.js"; |
4 | 4 |
import { JUSO_API_KEY, JUSO_CORRD_API_KEY } from "../../../Global.js"; |
5 | 5 |
|
... | ... | @@ -383,7 +383,9 @@ |
383 | 383 |
<button className={"close"} onClick={() => { close() }}>X</button> |
384 | 384 |
</div> |
385 | 385 |
<div className="modal-main"> |
386 |
- <SubTitle explanation={"최초 ID는 연락처, PW는 생년월일입니다."} className="margin-bottom" /> |
|
386 |
+ <SubTitle2 explanation={"회원 등록 시 최초로 등록된 전화번호 뒷자리 4자리와 생년월일 중 연도 2자리, 월 2자리가 조합되어 ID가 만들어집니다. 패스워드는 qwer1234!입니다."} /> |
|
387 |
+ <SubTitle2 explanation={"(단, 중복된 ID가 나올 경우에는 뒤에 하이픈(-)과 숫자가 붙여집니다.)"} /> |
|
388 |
+ <SubTitle2 explanation={"ex. 전화번호가 010-1234-5678, 생년월일 1990.01.01일 경우, 아이디는 56789001입니다."} className="margin-bottom" /> |
|
387 | 389 |
{CommonUtil.isEmpty(guardian['guardian_id']) ? |
388 | 390 |
<div className="flex-end margin-bottom"> |
389 | 391 |
<div className="flex searchselect" style={{ width: 'auto' }}> |
--- client/views/component/Modal_SeniorInsert.jsx
+++ client/views/component/Modal_SeniorInsert.jsx
... | ... | @@ -1,6 +1,6 @@ |
1 | 1 |
import React from "react"; |
2 | 2 |
import { useSelector } from "react-redux"; |
3 |
-import SubTitle from "./SubTitle.jsx"; |
|
3 |
+import SubTitle2 from "./SubTitle2.jsx"; |
|
4 | 4 |
|
5 | 5 |
import CommonUtil from "../../resources/js/CommonUtil.js"; |
6 | 6 |
import {JUSO_API_KEY, JUSO_CORRD_API_KEY} from "../../../Global.js"; |
... | ... | @@ -382,7 +382,9 @@ |
382 | 382 |
</div> |
383 | 383 |
<div className="modal-main"> |
384 | 384 |
<div className="board-wrap"> |
385 |
- <SubTitle explanation={"회원 등록 시 ID는 생년월일 + 전화번호 뒤 4자리, 패스워드는 qwer1234!입니다."} className="margin-bottom" /> |
|
385 |
+ <SubTitle2 explanation={"회원 등록 시 최초로 등록된 전화번호 뒷자리 4자리와 생년월일 중 연도 2자리, 월 2자리가 조합되어 ID가 만들어집니다. 패스워드는 qwer1234!입니다."} /> |
|
386 |
+ <SubTitle2 explanation={"(단, 중복된 ID가 나올 경우에는 뒤에 하이픈(-)과 숫자가 붙여집니다.)"} /> |
|
387 |
+ <SubTitle2 explanation={"ex. 전화번호가 010-1234-5678, 생년월일 1990.01.01일 경우, 아이디는 56789001입니다."} className="margin-bottom" /> |
|
386 | 388 |
<table className="margin-bottom2 senior-insert"> |
387 | 389 |
<tr> |
388 | 390 |
<th><span style={{color : "red"}}>*</span>관리기관</th> |
+++ client/views/component/SubTitle2.jsx
... | ... | @@ -0,0 +1,24 @@ |
1 | +import styled from "styled-components"; | |
2 | +import React from "react"; | |
3 | + | |
4 | +export default function Title({subtitle, explanation, className,color}) { | |
5 | + return ( | |
6 | + <div className={className} color={color}> | |
7 | + <Explanation>{explanation}</Explanation> | |
8 | + </div> | |
9 | + ); | |
10 | +} | |
11 | + | |
12 | +const Explanation = styled.p` | |
13 | + word-break: keep-all; | |
14 | + width: auto; | |
15 | + font-size: 1.4rem; | |
16 | + padding: 0.5rem; | |
17 | + font-weight: bold; | |
18 | + color: ${(color) => color ? color : "#733c1d"}; | |
19 | + &::before { | |
20 | + content: ""; | |
21 | + border-left: #f25430 5px solid; | |
22 | + padding-right: 1rem; | |
23 | + } | |
24 | +`; |
--- client/views/pages/main/Main_agencyAdmin.jsx
+++ client/views/pages/main/Main_agencyAdmin.jsx
... | ... | @@ -326,19 +326,19 @@ |
326 | 326 |
</div> |
327 | 327 |
<div style={{ height: 'calc(100% - 60px)' }}> |
328 | 328 |
{ |
329 |
- visit.length > 0 ? |
|
329 |
+ medicationSelectListByNew.length > 0 ? |
|
330 | 330 |
<Chart8 data={medicationSelectListByNew} /> |
331 | 331 |
: <div className="no-data"><p>데이터가 없습니다.</p></div> |
332 | 332 |
} |
333 | 333 |
</div> |
334 | 334 |
</div> |
335 |
- <div className="content-box combine-left-government2"> |
|
335 |
+ <div className="content-box combine-left-government2" style={{ minHeight: '300px' }}> |
|
336 | 336 |
<div className="flex"> |
337 | 337 |
<Title title={`${cityName} 복약률 평균`} explanation={"해당 지역의 대상자 복약률이 그래프로 보여집니다."} /> |
338 | 338 |
</div> |
339 | 339 |
<div style={{ height: 'calc(100% - 60px)' }}> |
340 | 340 |
{ |
341 |
- visit.length > 0 ? |
|
341 |
+ medicationSelectListByMonth.length > 0 ? |
|
342 | 342 |
<Chart2_govern data={medicationSelectListByMonth} /> |
343 | 343 |
: <div className="no-data"><p>데이터가 없습니다.</p></div> |
344 | 344 |
} |
--- client/views/pages/senior_management/SeniorEdit.jsx
+++ client/views/pages/senior_management/SeniorEdit.jsx
... | ... | @@ -201,11 +201,13 @@ |
201 | 201 |
|
202 | 202 |
return true; |
203 | 203 |
} |
204 |
- //시니어 등록 |
|
204 |
+ //시니어 수정 |
|
205 | 205 |
const seniorUpdate = () => { |
206 | 206 |
if (seniorUpdatetValidation() == false) { |
207 | 207 |
return; |
208 | 208 |
} |
209 |
+ |
|
210 |
+ console.log("변경할 정보: ", senior); |
|
209 | 211 |
|
210 | 212 |
fetch("/user/seniorUpdate.json", { |
211 | 213 |
method: "POST", |
... | ... | @@ -389,7 +391,7 @@ |
389 | 391 |
<tr> |
390 | 392 |
<th><span style={{ color: "red" }}>*</span>연락처</th> |
391 | 393 |
<td colSpan={3}> |
392 |
- <input type="number" maxLength="11" disabled |
|
394 |
+ <input type="number" maxLength="11" |
|
393 | 395 |
value={senior['user_phonenumber']} |
394 | 396 |
onChange={(e) => { seniorValueChange('user_phonenumber', e.target.value) }} |
395 | 397 |
ref={el => seniorRef.current['user_phonenumber'] = el} |
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?