jichoi / lms_front star
구자현 구자현 08-13
240813 반페이지 수정
@bce85aa93ab52f2e52d193b14e6d6c97549e1dad
client/views/pages/main/Dashboard.vue
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
@@ -292,11 +292,8 @@
                     </div>
                 </div>
             </article>
-
         </div>
-
     </div>
-
 </template>
 
 <script>
client/views/pages/teacher/C_Textbook.vue
--- client/views/pages/teacher/C_Textbook.vue
+++ client/views/pages/teacher/C_Textbook.vue
@@ -117,20 +117,23 @@
             }
         },
         bookDataSearch() {
-            const vm = this;
-            const searchPayload = {
-                keyword: vm.searchKeyword,
-            };
-            axios.post("/book/search.json", searchPayload)
-                .then(function (res) {
-                    console.log("bookDataSearch - response : ", res.data);
-                    vm.searchResults = res.data.result; // 검색 결과 저장
-                })
-                .catch(function (error) {
-                    console.log("bookSearch - error : ", error);
-                    alert("책이 존재하지 않습니다.");
-                });
-        },
+    const vm = this;
+    console.log("Search keyword:", vm.searchKeyword);
+    
+    const searchPayload = {
+        keyword: vm.searchKeyword,
+    };
+    
+    axios.post("/book/searchBookInClass.json", searchPayload)
+        .then(function (res) {
+            console.log("bookDataSearch - response : ", res.data);
+            vm.searchResults = res.data.result; // 검색 결과 저장
+        })
+        .catch(function (error) {
+            console.log("bookSearch - error : ", error);
+            alert("책이 존재하지 않습니다.");
+        });
+},
         stdClassesSelectList() {
             const vm = this;
             axios({
Add a comment
List