笔记代码还原

This commit is contained in:
zhaofang
2022-09-29 12:27:21 +08:00
parent 123f27d1fc
commit 06c9623e53
2 changed files with 64 additions and 16 deletions

View File

@@ -39,7 +39,7 @@
<el-button>
全部课程<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-menu slot="dropdown" style="height: 150px;overflow-y: auto !important;">
<el-dropdown-item v-for="cou in couresna" :command="cou.courseId">{{cou.courseName}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
@@ -107,7 +107,7 @@
<el-dialog
:visible.sync="importDialogVisible"
width="785px"
:before-close="handleClose">
:close-on-click-modal="false">
<div class="import-info">
<p class="import-info-tip">导入笔记</p>
<div class="import-info-enclosure">
@@ -132,8 +132,8 @@
<el-dialog
width="860px"
title="王明"
:visible.sync="dialogVisible"
:before-close="handleClose">
:close-on-click-modal="false"
:visible.sync="dialogVisible">
<div class="Exportbox">
<div class="Export-info" style="border-bottom: 1px solid #ddd;padding-bottom:30px;margin-bottom:35px">
<div class="all-title">
@@ -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 {
</script>
<style lang="scss" scoped>
::v-deep .note-sift{
.el-dropdown-menu{
}
}
.note-info-index{
::v-deep .el-upload-dragger{
width: 500px;