From 66eab0126120084a14318e199d55b9c537108735 Mon Sep 17 00:00:00 2001 From: hbzgyjh Date: Fri, 24 Dec 2021 10:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/project/ProjectStepForm.vue | 19 +++++++++++++------ src/views/project/form/ProjectCourseList.vue | 9 ++++++--- .../ProjectTestPaperFormationStrategy.vue | 2 +- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/views/project/ProjectStepForm.vue b/src/views/project/ProjectStepForm.vue index e5e8bc3..ffbdb6a 100644 --- a/src/views/project/ProjectStepForm.vue +++ b/src/views/project/ProjectStepForm.vue @@ -13,7 +13,7 @@ - + 0) { if (childValue) { this.form = childValue diff --git a/src/views/project/form/ProjectCourseList.vue b/src/views/project/form/ProjectCourseList.vue index 68942be..4522915 100644 --- a/src/views/project/form/ProjectCourseList.vue +++ b/src/views/project/form/ProjectCourseList.vue @@ -77,6 +77,9 @@ export default { projectForm: { type: Object, }, + courseChange: { + type: Boolean, + } }, data() { //这里存放数据 @@ -86,7 +89,7 @@ export default { labelCol: {}, wrapperCol: {}, vertical: 'vertical', - beChange: false, //被编辑过标识 + beChange: this.courseChange || false, //被编辑过标识 totalCourseHours: 0, //总课时 totalLearnHours: 0, //总学时 totalTopicNumber: 0, //题目数量 @@ -167,7 +170,7 @@ export default { this.form.lessonIds.push({ ids: id, sort: index }) }) if (this.form.lessonIds.length > 0) { - this.$emit('nextStep', this.form) + this.$emit('nextStep', this.form,this.beChange) } else { this.$message.warning('培训课程不能为空') } @@ -181,7 +184,7 @@ export default { }) // console.log('toPrep', this.form) - this.$emit('prevStep', this.form) + this.$emit('prevStep', this.form,this.beChange) }, //初始化ids initIds() { diff --git a/src/views/project/form/ProjectTestPaperFormationStrategy.vue b/src/views/project/form/ProjectTestPaperFormationStrategy.vue index fc0ac3e..749d348 100644 --- a/src/views/project/form/ProjectTestPaperFormationStrategy.vue +++ b/src/views/project/form/ProjectTestPaperFormationStrategy.vue @@ -200,7 +200,7 @@ export default { // 生命周期 - 销毁完成 destroyed() { }, // 如果页面有keep-alive缓存功能,这个函数会触发 - activated() { }, + activated() {}, }