Commit b8258078b9ac2b5a34092570e0c287d3548bf9eb
1 parent
c3af2406b7
Exists in
master
and in
2 other branches
upload pdf section completed and clear data after getting response in idcard and…
… enroll student screen
Showing
3 changed files
with
16 additions
and
5 deletions
Show diff stats
src/pages/Course/courseDetail.vue
... | ... | @@ -957,11 +957,14 @@ export default { |
957 | 957 | this.addChapterDialog = true; |
958 | 958 | }, |
959 | 959 | submitChapter() { |
960 | - console.log("addChapterItem", this.addChapterItem); | |
960 | + // console.log("addChapterItem", this.addChapterItem); | |
961 | 961 | this.addChapterItem.chapterPoints = []; |
962 | 962 | for (let i = 0; i < this.findsChapterPoint.length; i++) { |
963 | 963 | this.addChapterItem.chapterPoints.push(this.findsChapterPoint[i].value); |
964 | 964 | } |
965 | + this.addChapterItem.uploadPdf = this.pdfFile; | |
966 | + this.addChapterItem.uploadPpt = this.pptFile; | |
967 | + this.addChapterItem.fileName = this.pdfFileName; | |
965 | 968 | this.loading = true; |
966 | 969 | http() |
967 | 970 | .put("/addChapters", this.addChapterItem) | ... | ... |
src/pages/Course/enrollStudents.vue
src/pages/Report/idCard.vue
... | ... | @@ -131,11 +131,11 @@ |
131 | 131 | label="Select View Type" |
132 | 132 | type="text" |
133 | 133 | :items="typeList" |
134 | - v-model="getReport.form" | |
134 | + v-model="getReport.viewType" | |
135 | 135 | item-text="name" |
136 | 136 | item-value="value" |
137 | 137 | :rules="typeRules" |
138 | - @change="getReportType(getReport.form)" | |
138 | + @change="getReportType(getReport.viewType)" | |
139 | 139 | required |
140 | 140 | ></v-autocomplete> |
141 | 141 | </v-flex> |
... | ... | @@ -495,11 +495,11 @@ export default { |
495 | 495 | return date; |
496 | 496 | }, |
497 | 497 | getReportType() { |
498 | - if (this.getReport.form === "frontPart") { | |
498 | + if (this.getReport.viewType === "frontPart") { | |
499 | 499 | this.frontPart = true; |
500 | 500 | this.backPart = false; |
501 | 501 | } |
502 | - if (this.getReport.form === "backPart") { | |
502 | + if (this.getReport.viewType === "backPart") { | |
503 | 503 | this.frontPart = false; |
504 | 504 | this.backPart = true; |
505 | 505 | } |
... | ... | @@ -509,6 +509,12 @@ export default { |
509 | 509 | this.showReport = false; |
510 | 510 | this.getReport._id = ""; |
511 | 511 | this.getCard = ""; |
512 | + this.classList = []; | |
513 | + this.addSection = []; | |
514 | + this.getReport.classId = ""; | |
515 | + this.getReport.sectionId = ""; | |
516 | + this.getReport._id = ""; | |
517 | + this.getSelectUserData = []; | |
512 | 518 | if (role.name === "STUDENT") { |
513 | 519 | // console.log("role", role); |
514 | 520 | this.showClass = true; | ... | ... |