mey021123 2023-08-07
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
+++ client/views/component/Modal_Guardian.jsx
@@ -1,5 +1,5 @@
 import React from "react";
-import SubTitle from "./SubTitle.jsx";
+import SubTitle2 from "./SubTitle2.jsx";
 import CommonUtil from "../../resources/js/CommonUtil.js";
 import { JUSO_API_KEY, JUSO_CORRD_API_KEY } from "../../../Global.js";
 
@@ -383,7 +383,9 @@
             <button className={"close"} onClick={() => { close() }}>X</button>
           </div>
           <div className="modal-main">
-            <SubTitle explanation={"최초 ID는 연락처, PW는 생년월일입니다."} className="margin-bottom" />
+            <SubTitle2 explanation={"회원 등록 시 최초로 등록된 전화번호 뒷자리 4자리와 생년월일 중 연도 2자리, 월 2자리가 조합되어 ID가 만들어집니다. 패스워드는 qwer1234!입니다."} />
+            <SubTitle2 explanation={"(단, 중복된 ID가 나올 경우에는 뒤에 하이픈(-)과 숫자가 붙여집니다.)"} />
+            <SubTitle2 explanation={"ex. 전화번호가 010-1234-5678, 생년월일 1990.01.01일 경우, 아이디는 56789001입니다."} className="margin-bottom" />
             {CommonUtil.isEmpty(guardian['guardian_id']) ?
               <div className="flex-end margin-bottom">
                 <div className="flex searchselect" style={{ width: 'auto' }}>
client/views/component/Modal_SeniorInsert.jsx
--- client/views/component/Modal_SeniorInsert.jsx
+++ client/views/component/Modal_SeniorInsert.jsx
@@ -1,6 +1,6 @@
 import React from "react";
 import { useSelector } from "react-redux";
-import SubTitle from "./SubTitle.jsx";
+import SubTitle2 from "./SubTitle2.jsx";
 
 import CommonUtil from "../../resources/js/CommonUtil.js";
 import {JUSO_API_KEY, JUSO_CORRD_API_KEY} from "../../../Global.js";
@@ -382,7 +382,9 @@
           </div>
           <div className="modal-main">
             <div className="board-wrap">
-              <SubTitle explanation={"회원 등록 시 ID는 생년월일 + 전화번호 뒤 4자리, 패스워드는 qwer1234!입니다."} className="margin-bottom" />
+              <SubTitle2 explanation={"회원 등록 시 최초로 등록된 전화번호 뒷자리 4자리와 생년월일 중 연도 2자리, 월 2자리가 조합되어 ID가 만들어집니다. 패스워드는 qwer1234!입니다."} />
+              <SubTitle2 explanation={"(단, 중복된 ID가 나올 경우에는 뒤에 하이픈(-)과 숫자가 붙여집니다.)"} />
+              <SubTitle2 explanation={"ex. 전화번호가 010-1234-5678, 생년월일 1990.01.01일 경우, 아이디는 56789001입니다."} className="margin-bottom" />
               <table className="margin-bottom2 senior-insert">
                 <tr>
                   <th><span style={{color : "red"}}>*</span>관리기관</th>
 
client/views/component/SubTitle2.jsx (added)
+++ client/views/component/SubTitle2.jsx
@@ -0,0 +1,24 @@
+import styled from "styled-components";
+import React from "react";
+
+export default function Title({subtitle, explanation, className,color}) {
+  return (
+      <div className={className} color={color}>
+        <Explanation>{explanation}</Explanation>
+      </div>
+  );
+}
+
+const Explanation = styled.p`
+ word-break: keep-all;
+  width: auto;
+  font-size: 1.4rem;
+  padding: 0.5rem;
+  font-weight: bold;
+  color: ${(color) => color ? color : "#733c1d"};
+  &::before {
+    content: "";
+    border-left: #f25430 5px solid;
+    padding-right: 1rem;
+  } 
+`;
client/views/pages/main/Main_agencyAdmin.jsx
--- client/views/pages/main/Main_agencyAdmin.jsx
+++ client/views/pages/main/Main_agencyAdmin.jsx
@@ -326,19 +326,19 @@
           </div>
           <div style={{ height: 'calc(100% - 60px)' }}>
             {
-              visit.length > 0 ?
+              medicationSelectListByNew.length > 0 ?
                 <Chart8 data={medicationSelectListByNew} />
                 : <div className="no-data"><p>데이터가 없습니다.</p></div>
             }
           </div>
         </div>
-        <div className="content-box combine-left-government2">
+        <div className="content-box combine-left-government2" style={{ minHeight: '300px' }}>
           <div className="flex">
             <Title title={`${cityName} 복약률 평균`} explanation={"해당 지역의 대상자 복약률이 그래프로 보여집니다."} />
           </div>
           <div style={{ height: 'calc(100% - 60px)' }}>
             {
-              visit.length > 0 ?
+              medicationSelectListByMonth.length > 0 ?
                 <Chart2_govern data={medicationSelectListByMonth} />
                 : <div className="no-data"><p>데이터가 없습니다.</p></div>
             }
client/views/pages/senior_management/SeniorEdit.jsx
--- client/views/pages/senior_management/SeniorEdit.jsx
+++ client/views/pages/senior_management/SeniorEdit.jsx
@@ -201,11 +201,13 @@
 
     return true;
   }
-  //시니어 등록
+  //시니어 수정
   const seniorUpdate = () => {
     if (seniorUpdatetValidation() == false) {
       return;
     }
+
+    console.log("변경할 정보: ", senior);
 
     fetch("/user/seniorUpdate.json", {
       method: "POST",
@@ -389,7 +391,7 @@
             <tr>
               <th><span style={{ color: "red" }}>*</span>연락처</th>
               <td colSpan={3}>
-                <input type="number" maxLength="11" disabled
+                <input type="number" maxLength="11"
                   value={senior['user_phonenumber']}
                   onChange={(e) => { seniorValueChange('user_phonenumber', e.target.value) }}
                   ref={el => seniorRef.current['user_phonenumber'] = el}
Add a comment
List