diff --git a/src/pages/AssignTeachers.vue b/src/pages/AssignTeachers.vue index ec65598..06a1437 100644 --- a/src/pages/AssignTeachers.vue +++ b/src/pages/AssignTeachers.vue @@ -261,7 +261,7 @@ export default { http() .put("/assignTeacherToCourse", payload) .then((response) => { - console.log("===response===", response); + // console.log("===response===", response); this.snackbar = true; this.color = "success"; this.text = response.data.message; @@ -288,7 +288,7 @@ export default { this.snackbar = true; this.color = "success"; this.text = response.data.message; - this.getParticularCourse(); + this.getParticularCourse("noSnackbar"); }) .catch((error) => { this.snackbar = true; diff --git a/src/pages/Course/courseDetail.vue b/src/pages/Course/courseDetail.vue index c8fe63e..f6daded 100644 --- a/src/pages/Course/courseDetail.vue +++ b/src/pages/Course/courseDetail.vue @@ -139,7 +139,7 @@ @@ -394,6 +395,45 @@ + + + + + + + + + + + + + + cancel + + + + + + +
@@ -597,6 +637,23 @@ /> Delete Chapter + + + + +
{{editedItem.pdfFileUrl}}
+
+
+
@@ -725,11 +782,12 @@ @@ -813,6 +871,7 @@ export default { editCourseDetailDialog: false, editChapterDetailDialog: false, viewProfileGallery: false, + viewDocument: false, valid: true, editLoading: false, addclass: [], @@ -942,6 +1001,7 @@ export default { this.addChapterDialog = true; }, submitChapter() { + console.log("addChapterItem", this.addChapterItem); this.addChapterItem.chapterPoints = []; for (let i = 0; i < this.findsChapterPoint.length; i++) { this.addChapterItem.chapterPoints.push(this.findsChapterPoint[i].value); @@ -986,6 +1046,10 @@ export default { } this.editChapterDetailDialog = true; }, + documents(item) { + this.editedItem = Object.assign({}, item); + this.viewDocument = true; + }, deleteItem(item) { let deleteGallery = { courseDetailId: item._id, @@ -1043,6 +1107,9 @@ export default { closeProfileGallery() { this.viewProfileGallery = false; }, + closeviewDocument() { + this.viewDocument = false; + }, submit() { let chapters = []; var chapterPoints = []; @@ -1054,7 +1121,7 @@ export default { chapterName: this.addCourseDetail.chapterName, description: this.addCourseDetail.description, chapterPoints: chapterPoints, - uploadPdf: this.pdfFile, + fileName: this.pdfFile, uploadPpt: this.pptFile, }, ]; @@ -1134,7 +1201,7 @@ export default { chapterName: this.editChapter.chapterName, description: this.editChapter.description, chapterPoints: chapterPoints, - uploadPdf: this.pdfFile, + fileName: this.pdfFile, uploadPpt: this.pptFile, }; this.editLoading = true;