This commit is contained in:
daihh
2022-09-28 11:45:00 +08:00
4 changed files with 116 additions and 33 deletions

View File

@@ -26,7 +26,7 @@
<div style="border-bottom:1px solid #4444;padding-bottom:25px;" v-for="note in noteList"
:key="note.id">
<span class="mycote-time">{{note.sysCreateTime}}
<span class="sm">{{note.openType == 1?'公开':'私密'}}</span>
<span class="sm">{{note.openType == 9?'公开':'私密'}}</span>
<span class="more">
<el-dropdown>
<span class="el-dropdown-link">
@@ -227,6 +227,7 @@ export default {
// }
},
saveNote() {
let that = this;
if (this.mynoteData.content == '') {
this.$message({ type: 'info', message: '您还没有书写笔记!', offset: 50 });
return;
@@ -240,15 +241,15 @@ export default {
this.inAnimation = true;
this.isEdit = false;
setTimeout(() => {
this.getMyNote();
this.mynoteData = {
that.getMyNote();
that.mynoteData = {
type: 1, //我发布的是1 我导入的是2
content: '',
playTime: '',
// courseId: '',// 课程id
// contentId: '',//课程内容id
// courseName: '',// 课程名称
openType: 1,// 1表不公开 9表完全公开
openType: 9,// 1表不公开 9表完全公开
};
}, 2000)
}
@@ -262,19 +263,19 @@ export default {
if(this.mynoteData.openType != 9){
return
}
setTimeout(() => {
setTimeout(() => {
localStorage.setItem("NOTE_TEXT", '');
// clearInterval(this.autoSave);
this.getMyNote();
this.notetabType(2);
this.mynoteData = {
that.getMyNote();
that.notetabType(2);
that.mynoteData = {
type: 1, //我发布的是1 我导入的是2
content: '',
playTime: '',
// courseId: '',// 课程id
// contentId: '',//课程内容id
// courseName: '',// 课程名称
openType: 1,// 1表不公开 9表完全公开
openType: 9,// 1表不公开 9表完全公开
};
}, 2000)