From 06c9623e535e00a14fa1f93a5c3b517d4598d819 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Thu, 29 Sep 2022 12:27:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AE=B0=E4=BB=A3=E7=A0=81=E8=BF=98?= =?UTF-8?q?=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/Mynotes.vue | 28 ++++++++++---------- src/views/user/Noteedit.vue | 52 ++++++++++++++++++++++++++++++++++--- 2 files changed, 64 insertions(+), 16 deletions(-) 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 {