修改笔记的选择状态

This commit is contained in:
weinan2087
2022-10-19 17:59:41 +08:00
parent e1a78f3a9a
commit d26ef76ffc

View File

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