mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
修改笔记的选择状态
This commit is contained in:
@@ -140,6 +140,7 @@ export default {
|
|||||||
courseName: '',// 课程名称
|
courseName: '',// 课程名称
|
||||||
openType: 9,// 1表不公开 9表完全公开
|
openType: 9,// 1表不公开 9表完全公开
|
||||||
},
|
},
|
||||||
|
editNodeOpenType:9, // 1表不公开 9表完全公开
|
||||||
content_new: '',
|
content_new: '',
|
||||||
editRadio: 9 , // 单选按钮(笔记公开状态)状态值 : 1- 私密 9-公开
|
editRadio: 9 , // 单选按钮(笔记公开状态)状态值 : 1- 私密 9-公开
|
||||||
noteList: [],
|
noteList: [],
|
||||||
@@ -241,6 +242,7 @@ export default {
|
|||||||
console.log(note,'note');
|
console.log(note,'note');
|
||||||
this.isEdit = true;
|
this.isEdit = true;
|
||||||
this.mynoteData = note;
|
this.mynoteData = note;
|
||||||
|
this.editNodeOpenType = note.openType;
|
||||||
this.content_new = note.content;
|
this.content_new = note.content;
|
||||||
this.editRadio = this.mynoteData.openType; // 设置默认的单选按钮选中状态
|
this.editRadio = this.mynoteData.openType; // 设置默认的单选按钮选中状态
|
||||||
// this.notetabType(1);
|
// this.notetabType(1);
|
||||||
@@ -293,7 +295,16 @@ export default {
|
|||||||
if(num == 1) {
|
if(num == 1) {
|
||||||
this.content_new = ''; // 清空内容
|
this.content_new = ''; // 清空内容
|
||||||
this.btnPlayTime=true; // 显示添加视频时间
|
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() {
|
saveNote() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user