@@ -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;