diff --git a/src/components/Course/myNote.vue b/src/components/Course/myNote.vue index a1fa83c1..ed8c74e0 100644 --- a/src/components/Course/myNote.vue +++ b/src/components/Course/myNote.vue @@ -140,6 +140,7 @@ export default { courseName: '',// 课程名称 openType: 9,// 1表不公开 9表完全公开 }, + editNodeOpenType:9, // 1表不公开 9表完全公开 content_new: '', editRadio: 9 , // 单选按钮(笔记公开状态)状态值 : 1- 私密 9-公开 noteList: [], @@ -241,6 +242,7 @@ export default { console.log(note,'note'); this.isEdit = true; this.mynoteData = note; + this.editNodeOpenType = note.openType; this.content_new = note.content; this.editRadio = this.mynoteData.openType; // 设置默认的单选按钮选中状态 // this.notetabType(1); @@ -293,7 +295,16 @@ export default { if(num == 1) { this.content_new = ''; // 清空内容 this.btnPlayTime=true; // 显示添加视频时间 + this.mynoteData.openType = 9; // 公开单选按钮 + this.editRadio = 9; // 设置默认的单选按钮选中状态 + }else { + if(this.editNodeOpenType == 1){ + this.mynoteData.openType = 1; // 公开单选按钮 + this.editRadio = 1; + this.content_new = this.mynoteData.content; + } } + }, saveNote() { let that = this;