From b8690bbc9ef4e8c9c32d070942ea9e1797811e49 Mon Sep 17 00:00:00 2001 From: Neeraj Sharma Date: Mon, 11 Nov 2019 19:06:23 +0530 Subject: [PATCH] implement create issue in library --- src/Services/http.js | 2 +- src/pages/Library/books.vue | 11 +- src/pages/Library/eBook.vue | 3 +- src/pages/Library/issue.vue | 257 +++++++++++++++++++++++--------------------- 4 files changed, 145 insertions(+), 128 deletions(-) diff --git a/src/Services/http.js b/src/Services/http.js index 9c3448e..40d6e16 100644 --- a/src/Services/http.js +++ b/src/Services/http.js @@ -3,7 +3,7 @@ import store from '@/store/store' export default () => { return axios.create({ - // baseURL: 'http://192.168.4.220:3002/v1', + // baseURL: 'http://192.168.2.221:3002/v1',/ baseURL: 'http://13.234.251.173:8001/v1', headers: { Authorization: `Bearer ${store.state.token}` diff --git a/src/pages/Library/books.vue b/src/pages/Library/books.vue index b44c94e..5fea4f9 100644 --- a/src/pages/Library/books.vue +++ b/src/pages/Library/books.vue @@ -62,7 +62,7 @@ - + @@ -218,7 +219,7 @@ {{ props.index + 1}} {{ props.item.name }} {{ props.item.author }} - {{ props.item.subjectCode }} + {{ props.item.subjectCode }} {{ props.item.price }} {{ props.item.quantity }} {{ props.item.rackNo }} @@ -282,7 +283,7 @@ { if ((this.snackbar = true)) { - this.text = "Successfully delete Existing feetype"; + this.text = "Successfully delete Existing Delete Student "; } this.getBookData(); }) @@ -528,6 +528,7 @@ export default { this.dialog2 = false; }, submit() { + this.BooksData.quantity = Number(this.BooksData.quantity); if (this.$refs.form.validate()) { this.loading = true; http() diff --git a/src/pages/Library/eBook.vue b/src/pages/Library/eBook.vue index 93d8877..a307b3c 100644 --- a/src/pages/Library/eBook.vue +++ b/src/pages/Library/eBook.vue @@ -270,7 +270,7 @@ - + @@ -702,6 +702,7 @@ export default { this.token = this.$store.state.token; this.getEBooksList(); this.getAllClass(); + this.getBookData(); // this.editItem; }, created() { diff --git a/src/pages/Library/issue.vue b/src/pages/Library/issue.vue index 5ec05a3..a342ce9 100644 --- a/src/pages/Library/issue.vue +++ b/src/pages/Library/issue.vue @@ -17,7 +17,7 @@ class="subheading" >Add Issue - + {{ text }} - + - +