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