최정우 최정우 2023-04-04
Merge branch 'front-end' of http://210.180.118.83/yjryu/senior_care_system into front-end
@a2bfcca52dda07cad7717f9d2aeb3ce210f64401
client/resources/css/common.css
--- client/resources/css/common.css
+++ client/resources/css/common.css
@@ -1,6 +1,6 @@
 
 /* layout 공통 */
-textarea{border: 1px solid #d8d3c7; border-radius: 5px;}
+textarea{border: 1px solid #d8d3c7; border-radius: 5px; padding: 0.5rem;}
 em{font-style: normal;}
 main img{margin-right: 1rem; 
   width: unset;}
@@ -366,7 +366,7 @@
 input[type='radio'],
 input[type='radio']:checked {
   width: 0.9rem;
-  height: 0.9rem;
+  height: 1.5rem;
   border-radius: 100%;
   margin-right: 1rem;
 }
client/resources/css/main.css
--- client/resources/css/main.css
+++ client/resources/css/main.css
@@ -408,7 +408,7 @@
   font-size: 1.5rem;
   color: #cbc9c9;
 }
-
+.statistics-grid > div{height: 35rem;}
 .statistics-grid .statistics-guardian {
   height: 41vh;
 }
client/views/component/Table.jsx
--- client/views/component/Table.jsx
+++ client/views/component/Table.jsx
@@ -132,6 +132,15 @@
                           else if (view == "qna") {
                             navigate(`/QuestionConfirm/${i.qna_idx}`);
                           }
+                          else if (view == "mySeniorMedicine") {
+                            navigate("/MedicineCareSelectOne");
+                          }
+                          else if (view == "mySeniorTemperature") {
+                            navigate("/TemperatureManagementSelectOne");
+                          }
+                          else if (view == "mySeniorVisit") {
+                            navigate("/VisitSelectOne");
+                          }
                           else {
                             return;
                           }
client/views/pages/healthcare/Healthcare.jsx
--- client/views/pages/healthcare/Healthcare.jsx
+++ client/views/pages/healthcare/Healthcare.jsx
@@ -9,14 +9,14 @@
 import DetailSearch from "../../component/DetailSearch.jsx";
 import DetailTitle from "../../component/DetailTitle.jsx";
 
-export default function UserAuthoriySelect() {
+export default function Healthcare() {
     const navigate = useNavigate();
     const [tapName, setTapName] = useState("복약관리")
     const thead = [
         "No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", "최근 복약률",
     ];
     const key = [
-        "No", "name", "number", "birth", "phone", "address", "average"
+        "No", "name", "number", "birth", "phone", "address", "average",
     ];
     const content = [
         {
@@ -29,6 +29,15 @@
             agency: "A복지관",
             protect: "홍길동",
             average: "0%",
+            // detail: (
+            //     <Button
+            //         className={"btn-small gray-btn"}
+            //         btnName={"보기"}
+            //         onClick={() => {
+            //             navigate("/MedicineCareSelectOne");
+            //         }}
+            //     />
+            // ),
         },
 
     ];
@@ -36,7 +45,7 @@
     const thead1 = [
         "No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", "최근 최저 온도", "최근 최고 온도",
     ];
-    const key1 = ["No", "name", "number", "birth", "phone", "address", "low", "high"
+    const key1 = ["No", "name", "number", "birth", "phone", "address", "low", "high",
     ];
     const content1 = [
         {
@@ -50,13 +59,22 @@
             protect: "홍길동",
             high: "18°C",
             low: "18°C",
+            // detail: (
+            //     <Button
+            //         className={"btn-small gray-btn"}
+            //         btnName={"보기"}
+            //         onClick={() => {
+            //             navigate("/TemperatureManagementSelectOne");
+            //         }}
+            //     />
+            // ),
         }
     ];
     const thead2 = [
         "No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", , "최근 방문일", "방문목적", "상세사유",
     ];
     const key2 = [
-        "No", "name", "number", "birth", "phone", "address", "visit", "reason", "reason_detail"
+        "No", "name", "number", "birth", "phone", "address", "visit", "reason", "reason_detail",
     ];
     const content2 = [
         {
@@ -69,6 +87,15 @@
             visit: "2023.02.08",
             reason: "정기방문",
             reason_detail: "정기방문일",
+            // detail: (
+            //     <Button
+            //         className={"btn-small gray-btn"}
+            //         btnName={"보기"}
+            //         onClick={() => {
+            //             navigate("/VisitSelectOne");
+            //         }}
+            //     />
+            // ),
         },
     ];
     const data = [
@@ -81,6 +108,7 @@
                     head={thead}
                     contents={content}
                     contentKey={key}
+                    view={"mySeniorMedicine"}
                     onClick={() => {
                         navigate("/MedicineCareSelectOne");
                     }}
@@ -96,6 +124,7 @@
                     head={thead1}
                     contents={content1}
                     contentKey={key1}
+                    view={"mySeniorTemperature"}
                     onClick={() => {
                         navigate("/TemperatureManagementSelectOne");
                     }}
@@ -111,6 +140,7 @@
                     head={thead2}
                     contents={content2}
                     contentKey={key2}
+                    view={"mySeniorVisit"}
                     onClick={() => {
                         navigate("/VisitSelectOne");
                     }}
client/views/pages/healthcare/medicinecare/MedicineCareSelectOne.jsx
--- client/views/pages/healthcare/medicinecare/MedicineCareSelectOne.jsx
+++ client/views/pages/healthcare/medicinecare/MedicineCareSelectOne.jsx
@@ -99,8 +99,8 @@
               </td>
             </tr>
           </table>
-          <div>
-            <Button className={"btn-100 green-btn"} btnName={"등록"} />
+          <div className="flex-center">
+            <Button className={"btn-small red-btn"} btnName={"등록"} />
           </div>
         </div>
       </Modal>
@@ -211,11 +211,11 @@
                 <td>
                   <div className="btn-wrap flex-center">
                     <Button
-                      className={"btn-small green-btn"}
+                      className={"btn-small lightgray-btn"}
                       btnName={"수정"}
                       onClick={openModal}
                     />
-                    <Button className={"btn-small gray-btn"} btnName={"삭제"} />
+                    <Button className={"btn-small gray-btn"} btnName={"삭제"} onClick={function() {alert('정말 삭제하시겠습니까?')}}/>
                   </div>
                 </td>
               </tr>
@@ -233,11 +233,11 @@
                 <td>
                   <div className="btn-wrap flex-center">
                     <Button
-                      className={"btn-small green-btn"}
+                      className={"btn-small lightgray-btn"}
                       btnName={"수정"}
                       onClick={openModal}
                     />
-                    <Button className={"btn-small gray-btn"} btnName={"삭제"} />
+                    <Button className={"btn-small gray-btn"} btnName={"삭제"} onClick={function() {alert('정말 삭제하시겠습니까?')}}/>
                   </div>
                 </td>
               </tr>
@@ -248,7 +248,7 @@
               className={"btn-large gray-btn"}
               btnName={"이전"}
               onClick={() => {
-                navigate("/MedicineCareSelect");
+                navigate("/Healthcare");
               }}
             />
           </div>
client/views/pages/visit/visit/VisitSelectOne.jsx
--- client/views/pages/visit/visit/VisitSelectOne.jsx
+++ client/views/pages/visit/visit/VisitSelectOne.jsx
@@ -116,7 +116,7 @@
               className={"btn-large gray-btn"}
               btnName={"이전"}
               onClick={() => {
-                navigate("/VisitSelect");
+                navigate("/Healthcare");
               }}
             />
           </div>
Add a comment
List