From 65d5475b667d37ef597e1f2d200a6acd86a776bf Mon Sep 17 00:00:00 2001 From: shikha Date: Tue, 25 Feb 2020 19:03:16 +0530 Subject: [PATCH] changes in api and ui --- src/pages/Dashboard/dashboard.vue | 19 ++++++++++++++++++- src/pages/Exam/examSchedule.vue | 26 ++++++++++++++------------ 2 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/pages/Dashboard/dashboard.vue b/src/pages/Dashboard/dashboard.vue index 8856d6d..2a353b4 100644 --- a/src/pages/Dashboard/dashboard.vue +++ b/src/pages/Dashboard/dashboard.vue @@ -138,7 +138,7 @@

Expences

- Rs 3000 + Rs. {{ expenseData.sum }} @@ -338,6 +338,7 @@ export default { teachers: "", classes: "", noticeData: [], + expenseData: [], attrs: [ { key: "today", @@ -447,6 +448,7 @@ export default { this.getClasses(); this.getNoticeData(); this.getUserData(); + this.getExpensesData(); // this.getUsersList(); }, methods: { @@ -604,6 +606,21 @@ export default { // this.$store.dispatch("Id", null); // } }); + }, + getExpensesData() { + http() + .get("/getTotalExpenses", { + headers: { + Authorization: "Bearer " + this.token + } + }) + .then(response => { + this.expenseData = response.data.data; + this.showLoader = false; + }) + .catch(error => { + this.showLoader = false; + }) } } }; diff --git a/src/pages/Exam/examSchedule.vue b/src/pages/Exam/examSchedule.vue index aa12749..834f187 100644 --- a/src/pages/Exam/examSchedule.vue +++ b/src/pages/Exam/examSchedule.vue @@ -20,12 +20,12 @@ @@ -233,7 +233,7 @@ -
{{ editedItem.examName }}
+
{{ editedItem.examId}}
@@ -367,7 +367,7 @@