提交 477ee4a5 authored 作者: 龙菲's avatar 龙菲

修复我的笔记无法编辑笔记的问题

上级 e0d5a9e8
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
v-show="isShowInput" v-show="isShowInput"
@blur="handleInputBlurEnter" @blur="handleInputBlurEnter"
@change="handleInputBlurEnter" @change="handleInputBlurEnter"
></el-input> ></el-input> -->
123 -->
<div <div
class="breadcrumb-box" class="breadcrumb-box"
@click.self="handleClickBreadCrumbSelf" @click.self="handleClickBreadCrumbSelf"
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</div> </div>
<div :span="19" class="right"> <div :span="19" class="right">
<div class="note-container"> <div class="note-container">
<div class="card-group"> <div class="card-group" v-if="noteList.records.length>0">
<el-card <el-card
class="card-item" class="card-item"
shadow="hover" shadow="hover"
...@@ -136,6 +136,7 @@ ...@@ -136,6 +136,7 @@
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<AddOrUpdateNoteDialog <AddOrUpdateNoteDialog
...@@ -396,6 +397,7 @@ export default { ...@@ -396,6 +397,7 @@ export default {
margin-bottom: 16px; margin-bottom: 16px;
.card-head { .card-head {
margin-bottom: 16px; margin-bottom: 16px;
height: 24px;
.tag { .tag {
float: left; float: left;
} }
......
...@@ -20,9 +20,7 @@ ...@@ -20,9 +20,7 @@
> >
</div> </div>
<div class="total"> <div class="total">共计{{ tagList.total }}条数据</div>
共计{{ tagList.total }}条数据
</div>
<el-row class="list"> <el-row class="list">
<el-col <el-col
v-for="(item, index) in tagList.records" v-for="(item, index) in tagList.records"
...@@ -136,6 +134,11 @@ ...@@ -136,6 +134,11 @@
</div> </div>
</div> </div>
</div> </div>
<AddOrUpdateNoteDialog
:formData="form"
ref="AddOrUpdateNoteDialog"
@update="handleUpdateNoteList"
/>
</div> </div>
</template> </template>
<script> <script>
...@@ -162,6 +165,12 @@ export default { ...@@ -162,6 +165,12 @@ export default {
total: 0, total: 0,
}, },
loading: false, loading: false,
form: {
docId: "", //文档Id
bookmarkContent: "", //原文内容
noteContent: "", //笔记内容
tagsArr: [], //标签
},
}; };
}, },
computed: { computed: {
...@@ -284,6 +293,11 @@ export default { ...@@ -284,6 +293,11 @@ export default {
this.tagList.currentPage = value; this.tagList.currentPage = value;
this.loadNoteList(); this.loadNoteList();
}, },
// 更新右侧获取笔记
handleUpdateNoteList() {
this.loadNoteList();
},
}, },
}; };
</script> </script>
...@@ -375,17 +389,18 @@ export default { ...@@ -375,17 +389,18 @@ export default {
margin-bottom: 16px; margin-bottom: 16px;
.card-head { .card-head {
margin-bottom: 16px; margin-bottom: 16px;
height: 24px;
// display: flex; // display: flex;
// justify-content: space-between; // justify-content: space-between;
.tag{ .tag {
float: left; float: left;
} }
.oprations { .oprations {
float: right; float: right;
// display: flex; // display: flex;
// justify-content: flex-end; // justify-content: flex-end;
margin-bottom: 8px; margin-bottom: 8px;
.el-link { .el-link {
margin-right: 16px; margin-right: 16px;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论