diff --git a/src/pages/buecher-eintragen.vue b/src/pages/buecher-eintragen.vue index b0100c1..58c446e 100644 --- a/src/pages/buecher-eintragen.vue +++ b/src/pages/buecher-eintragen.vue @@ -86,6 +86,9 @@ clear-icon="tabler-x" /> + + + + - - Wurde dein Buch nicht gefunden? Dann trage es jetzt ein! - +
+ Buchtitel: {{ book.title }} +
+ Untertitel: {{ book.subtitle }} +
+ +
+ Buch wurde nicht gefunden? Jetzt + + eintragen + +
+ + +
@@ -121,7 +136,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Kurzbeschreibung* + + + + + + + + + + + +
+ + Buch eintragen + + + + Löschen + + +
+
+
+
+
+ + + + +
@@ -177,8 +398,8 @@ cols="12" md="6" > + + + + + + @@ -305,6 +530,7 @@ import { ref, watch } from 'vue' import AppTextField from "@core/components/app-form-elements/AppTextField.vue" import DropZone from "@core/components/DropZone.vue" import AppCombobox from "@core/components/app-form-elements/AppCombobox.vue" +import BookService from "@/pages/BookService.js"; const inputValueTitle = ref('') const inputValueISBN = ref('') @@ -325,8 +551,25 @@ watch(inputValueISBN, newValue => { } }) +let book = ref(null) +function searchForISBN() { + // const isbn = '9783898798822' + // const isbn = inputValueISBN + + BookService.getBookByIsbn(inputValueISBN.value) + .then(response => { + // book = response.data + console.log("response", response) + book.value = response + }) + .catch(error => { + console.error(error) + }) +} + function displayBook() { displayedBooks.value = true + searchForISBN() } //////////////////