From 76f83cbae9cc50eb5ec9b521a5bf0d2e3c815317 Mon Sep 17 00:00:00 2001 From: MCMichinator Date: Wed, 2 Apr 2025 20:17:21 +0200 Subject: [PATCH] =?UTF-8?q?Neue=20B=C3=BCchereintragen=20Seite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/buecher-eintragen.vue | 263 ++++++++++++++++++++++++++++++-- 1 file changed, 253 insertions(+), 10 deletions(-) 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() } //////////////////