diff --git a/src/views/user/Mynotes.vue b/src/views/user/Mynotes.vue index 5c5f3539..de325ea6 100644 --- a/src/views/user/Mynotes.vue +++ b/src/views/user/Mynotes.vue @@ -39,7 +39,7 @@ 全部课程 - + {{cou.courseName}} @@ -107,7 +107,7 @@ + :close-on-click-modal="false">

导入笔记

@@ -132,8 +132,8 @@ + :close-on-click-modal="false" + :visible.sync="dialogVisible">
@@ -276,18 +276,19 @@ export default { this.$message.warning('请填写标题!'); return } - if(this.noteFile.filePath == '') { - this.$message.warning('您还没有上传文件!'); - return - } this.noteFile.contentType = this.upNoteFile.contentType; if(this.upNoteFile.content.length > 0) { this.noteFile.filePath = this.upNoteFile.content.join(); } + if(this.noteFile.filePath == '') { + this.$message.warning('您还没有上传文件!'); + return + } apiNote.save(this.noteFile).then(res=>{ if(res.status == 200) { this.$message.success('导入笔记成功'); this.importDialogVisible = false; + this.noteFile.courseName = ''; this.noteData(this.num); } }) @@ -381,11 +382,6 @@ export default { this.orderField = 'praises'; this.orderType = !this.orderType; this.noteData(this.num) - }, - handleClose(done) { - - - }, edit(item){ this.$router.push({ path: `/user/Noteedit?id=${item.id}` }); @@ -441,6 +437,12 @@ export default {