최정임 최정임 2023-04-04
230404 최정임 건강관리 페이지 연결2
@40b884e0e275730e05924037feb9c5cebb1216a2
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
@@ -13,10 +13,10 @@
     const navigate = useNavigate();
     const [tapName, setTapName] = useState("복약관리")
     const thead = [
-        "No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", "최근 복약률","상세페이지"
+        "No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", "최근 복약률",
     ];
     const key = [
-        "No", "name", "number", "birth", "phone", "address", "average","detail"
+        "No", "name", "number", "birth", "phone", "address", "average",
     ];
     const content = [
         {
@@ -29,23 +29,23 @@
             agency: "A복지관",
             protect: "홍길동",
             average: "0%",
-            detail: (
-                <Button
-                    className={"btn-small gray-btn"}
-                    btnName={"보기"}
-                    onClick={() => {
-                        navigate("/MedicineCareSelectOne");
-                    }}
-                />
-            ),
+            // detail: (
+            //     <Button
+            //         className={"btn-small gray-btn"}
+            //         btnName={"보기"}
+            //         onClick={() => {
+            //             navigate("/MedicineCareSelectOne");
+            //         }}
+            //     />
+            // ),
         },
 
     ];
 
     const thead1 = [
-        "No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", "최근 최저 온도", "최근 최고 온도","상세페이지"
+        "No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", "최근 최저 온도", "최근 최고 온도",
     ];
-    const key1 = ["No", "name", "number", "birth", "phone", "address", "low", "high","detail"
+    const key1 = ["No", "name", "number", "birth", "phone", "address", "low", "high",
     ];
     const content1 = [
         {
@@ -59,22 +59,22 @@
             protect: "홍길동",
             high: "18°C",
             low: "18°C",
-            detail: (
-                <Button
-                    className={"btn-small gray-btn"}
-                    btnName={"보기"}
-                    onClick={() => {
-                        navigate("/TemperatureManagementSelectOne");
-                    }}
-                />
-            ),
+            // detail: (
+            //     <Button
+            //         className={"btn-small gray-btn"}
+            //         btnName={"보기"}
+            //         onClick={() => {
+            //             navigate("/TemperatureManagementSelectOne");
+            //         }}
+            //     />
+            // ),
         }
     ];
     const thead2 = [
-        "No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", , "최근 방문일", "방문목적", "상세사유","방문기록"
+        "No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", , "최근 방문일", "방문목적", "상세사유",
     ];
     const key2 = [
-        "No", "name", "number", "birth", "phone", "address", "visit", "reason", "reason_detail","detail"
+        "No", "name", "number", "birth", "phone", "address", "visit", "reason", "reason_detail",
     ];
     const content2 = [
         {
@@ -87,15 +87,15 @@
             visit: "2023.02.08",
             reason: "정기방문",
             reason_detail: "정기방문일",
-            detail: (
-                <Button
-                    className={"btn-small gray-btn"}
-                    btnName={"보기"}
-                    onClick={() => {
-                        navigate("/VisitSelectOne");
-                    }}
-                />
-            ),
+            // detail: (
+            //     <Button
+            //         className={"btn-small gray-btn"}
+            //         btnName={"보기"}
+            //         onClick={() => {
+            //             navigate("/VisitSelectOne");
+            //         }}
+            //     />
+            // ),
         },
     ];
     const data = [
@@ -108,6 +108,7 @@
                     head={thead}
                     contents={content}
                     contentKey={key}
+                    view={"mySeniorMedicine"}
                     onClick={() => {
                         navigate("/MedicineCareSelectOne");
                     }}
@@ -123,6 +124,7 @@
                     head={thead1}
                     contents={content1}
                     contentKey={key1}
+                    view={"mySeniorTemperature"}
                     onClick={() => {
                         navigate("/TemperatureManagementSelectOne");
                     }}
@@ -138,6 +140,7 @@
                     head={thead2}
                     contents={content2}
                     contentKey={key2}
+                    view={"mySeniorVisit"}
                     onClick={() => {
                         navigate("/VisitSelectOne");
                     }}
@@ -173,8 +176,8 @@
                                     <div className="search-management flex-start margin-bottom2">
                                         <DetailSearch />
                                     </div>
-                                    <div className="flex-end">
-                                        {/* <SubTitle explanation={"대상자 클릭 시 상세페이지로 이동합니다."} className="margin-bottom" /> */}
+                                    <div className="flex">
+                                        <SubTitle explanation={"대상자 클릭 시 상세페이지로 이동합니다."} className="margin-bottom" />
                                         <div className="flex searchselect">
                                             <input type="radio"/>
                                             <label htmlFor="">나의 대상자 보기</label>
Add a comment
List