--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
... | ... | @@ -292,11 +292,8 @@ |
292 | 292 |
</div> |
293 | 293 |
</div> |
294 | 294 |
</article> |
295 |
- |
|
296 | 295 |
</div> |
297 |
- |
|
298 | 296 |
</div> |
299 |
- |
|
300 | 297 |
</template> |
301 | 298 |
|
302 | 299 |
<script> |
--- client/views/pages/teacher/C_Textbook.vue
+++ client/views/pages/teacher/C_Textbook.vue
... | ... | @@ -117,20 +117,23 @@ |
117 | 117 |
} |
118 | 118 |
}, |
119 | 119 |
bookDataSearch() { |
120 |
- const vm = this; |
|
121 |
- const searchPayload = { |
|
122 |
- keyword: vm.searchKeyword, |
|
123 |
- }; |
|
124 |
- axios.post("/book/search.json", searchPayload) |
|
125 |
- .then(function (res) { |
|
126 |
- console.log("bookDataSearch - response : ", res.data); |
|
127 |
- vm.searchResults = res.data.result; // 검색 결과 저장 |
|
128 |
- }) |
|
129 |
- .catch(function (error) { |
|
130 |
- console.log("bookSearch - error : ", error); |
|
131 |
- alert("책이 존재하지 않습니다."); |
|
132 |
- }); |
|
133 |
- }, |
|
120 |
+ const vm = this; |
|
121 |
+ console.log("Search keyword:", vm.searchKeyword); |
|
122 |
+ |
|
123 |
+ const searchPayload = { |
|
124 |
+ keyword: vm.searchKeyword, |
|
125 |
+ }; |
|
126 |
+ |
|
127 |
+ axios.post("/book/searchBookInClass.json", searchPayload) |
|
128 |
+ .then(function (res) { |
|
129 |
+ console.log("bookDataSearch - response : ", res.data); |
|
130 |
+ vm.searchResults = res.data.result; // 검색 결과 저장 |
|
131 |
+ }) |
|
132 |
+ .catch(function (error) { |
|
133 |
+ console.log("bookSearch - error : ", error); |
|
134 |
+ alert("책이 존재하지 않습니다."); |
|
135 |
+ }); |
|
136 |
+}, |
|
134 | 137 |
stdClassesSelectList() { |
135 | 138 |
const vm = this; |
136 | 139 |
axios({ |
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?