diff --git a/src/pages/product/show/index.vue b/src/pages/product/show/index.vue index 65cf449..70db126 100644 --- a/src/pages/product/show/index.vue +++ b/src/pages/product/show/index.vue @@ -253,19 +253,6 @@ export default { this.$router.push(`/station/preview?courseId=${this.form.mall.associatedProduct}&curriculumName=${this.form.mall.productName}&mallId=${this.id}&chapter=${i}§ion=${j}&admin=1`) : this.toTrail() }, - // 勾选/取消勾选学习进度 - studySection (item) { - item.whetherToStudyOrNot ? - this.$post(`${this.api.deleteLearningProgress}?id=${item.learningProgressId}`).then(res => { - this.getChapter() - }).catch(res => { }) : - this.$post(this.api.saveLearningProgress, { - cid: this.form.mall.associatedProduct, - projectId: item.projectId, - }).then(res => { - this.getChapter() - }).catch(res => { }) - }, // 续费 async toRenew () { try { diff --git a/src/pages/project/list/index.vue b/src/pages/project/list/index.vue index 3f81b0a..352fb30 100644 --- a/src/pages/project/list/index.vue +++ b/src/pages/project/list/index.vue @@ -74,11 +74,12 @@ + style="margin: 0 10px 0 10px" :disabled="scope.row.type === 3" + @change="switchOffTips(scope.row, scope.row.hintOpen)"> @@ -88,14 +89,15 @@ 查看 编辑 + type="text" :disabled="scope.row.type === 3" @click="edit(scope.row)">编辑 删除 - 复制 + type="text" :disabled="scope.row.type === 3" @click="handleDelete(scope.row.projectId)">删除 + 复制 + :disabled="scope.row.type === 3" style="margin: 0 10px 0 10px" @change="switchOff(scope.row)"> @@ -120,16 +122,28 @@ + + +
+ +
+ +
- \ No newline at end of file + \ No newline at end of file diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue index 1607de2..859349f 100644 --- a/src/pages/station/preview/index.vue +++ b/src/pages/station/preview/index.vue @@ -52,7 +52,8 @@
续费 - 进 入 实 验 + 进入理论 + 进入实训

{{ curriculumName || courseName }}

@@ -259,7 +260,7 @@
练习成绩排行
+ :value="item.uuid">
@@ -333,6 +334,8 @@ export default { teachingObjectives: "", // 课程目标 assessmentList: "", // 考核列表 systemIds: '', + practicePracticeProject: 0, + practiceTheoreticalPaper: 0, curLink: "", // 当前选中 playAuth: "", player: null, @@ -448,6 +451,8 @@ export default { this.teachingObjectives = data.teachingObjectives; this.assessmentList = data.assessmentConfig; this.systemIds = data.systemIds + this.practicePracticeProject = data.practicePracticeProject + this.practiceTheoreticalPaper = data.practiceTheoreticalPaper this.queryProject() } this.getStatus() @@ -484,8 +489,11 @@ export default { async getProgress () { if (this.courseId) { let res = await this.$post(`${this.api.courseLearningProgress}?courseId=${this.courseId}&systemId=${this.systemIds}&mallId=${this.mallId}`); + res.list.forEach(e => { + e.uuid = e.projectId || e.paperId + }) this.progressList = res.list - if (res.list.length) this.archProject = res.list[0].projectId + if (res.list.length) this.archProject = res.list[0].uuid this.maximumScores.length || this.getMaximumScore() this.plan = res.plan this.schedule = +(res.schedule.replace('%', '')) @@ -493,7 +501,8 @@ export default { }, // 获取最高分列表 async getMaximumScore () { - let { message } = await this.$post(`${this.api.maximumPracticeScoreList}?projectId=${this.archProject}&pageNum=1&pageSize=1000&mallId=${this.mallId}&cid=${this.courseId}`); + const item = this.progressList.find(e => e.uuid === this.archProject) + let { message } = await this.$post(`${this.api.maximumPracticeScoreList}?projectId=${item.projectId || ''}&paperId=${item.paperId || ''}&pageNum=1&pageSize=1000&mallId=${this.mallId}&cid=${this.courseId}`); const list = message.records list.forEach(e => { if (!e.userAvatars) e.userAvatars = 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png' @@ -681,7 +690,8 @@ export default { }).catch(res => { }) : this.$post(this.api.saveLearningProgress, { cid: this.courseId, - projectId: item.projectId, + projectId: item.projectId || '', + paperId: item.paperId || '', }).then(res => { this.getProgress() }).catch(res => { }) @@ -996,9 +1006,13 @@ $height: 700px; background-color: #252528; .entry { - width: 100%; + width: 48%; height: 40px; font-size: 17px; + + &:only-child { + width: 100%; + } } .types {