From 5ceb88b4443fe6dede631114f0a9402cd8b704ec Mon Sep 17 00:00:00 2001 From: shikha Date: Mon, 27 Apr 2020 11:23:47 +0530 Subject: [PATCH] added pdf option while uploading file in assignment and ser roution option in academic --- src/pages/Academic/assignment.vue | 92 +++- src/pages/Academic/routine.vue | 985 +++++++++++++++++++------------------- 2 files changed, 556 insertions(+), 521 deletions(-) diff --git a/src/pages/Academic/assignment.vue b/src/pages/Academic/assignment.vue index 137074c..91e0ea2 100644 --- a/src/pages/Academic/assignment.vue +++ b/src/pages/Academic/assignment.vue @@ -12,6 +12,34 @@ + + + + + + + + + + @@ -114,18 +142,11 @@ - @@ -253,10 +274,22 @@ {{ props.item.description }} {{ props.item.deadline }} {{ props.item.sectionId.name }} - {{ props.item.teacherId.name }} - {{ props.item.schoolId .name }} + {{ props.item.teacherId.name }} + {{ props.item.schoolId .name }} + + + + + + + + + + + + + + @@ -442,7 +488,7 @@ ", this.upload); + console.log("imageData-upload========>", this.upload); if (files[0] !== undefined) { this.imageName = files[0].name; if (this.imageName.lastIndexOf(".") <= 0) { @@ -820,9 +866,9 @@ export default { fr.addEventListener("load", () => { this.imageUrl = fr.result; this.imageFile = files[0]; // this is an image file that can be sent to server... - this.imageData.imageUrl = URL.createObjectURL(this.imageFile); - // console.log("upload=======>", this.imageData.imageUrl); - // console.log("imageFile", this.imageUrl); + // this.imageData.imageUrl = URL.createObjectURL(this.imageFile); + // console.log("upload=======>", this.imageData.imageUrl); + console.log("imageFile", this.imageUrl); }); } else { this.imageName = ""; diff --git a/src/pages/Academic/routine.vue b/src/pages/Academic/routine.vue index a98ab4e..e967c3d 100644 --- a/src/pages/Academic/routine.vue +++ b/src/pages/Academic/routine.vue @@ -5,25 +5,85 @@ - + cancel - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -47,174 +107,116 @@ - + - + + + + - + - + + + + - - + + - + - + - - - - - + + + + Update Routine + - - - - Update Subject - - - - - - - + @@ -285,168 +289,136 @@
- +
+
+
+