diff --git a/ruoyi-note/src/main/java/com/ruoyi/note/domain/NmNote.java b/ruoyi-note/src/main/java/com/ruoyi/note/domain/NmNote.java index 7fb7ecf5e..85cc0a307 100644 --- a/ruoyi-note/src/main/java/com/ruoyi/note/domain/NmNote.java +++ b/ruoyi-note/src/main/java/com/ruoyi/note/domain/NmNote.java @@ -69,8 +69,8 @@ public class NmNote /** 便签状态 */ @Excel(name = "便签状态") - @Column(name = "is_state") - private Integer isState; + @Column(name = "note_state") + private Integer noteState; /** 阅读进度 */ @Excel(name = "阅读进度") @@ -79,13 +79,13 @@ public class NmNote /** 是否星标 */ @Excel(name = "是否星标") - @Column(name = "is_star") - private Integer isStar; + @Column(name = "note_star") + private Integer noteStar; /** 是否删除 */ @Excel(name = "是否删除") - @Column(name = "is_delete") - private Integer isDelete; + @Column(name = "note_delete") + private Integer noteDelete; /** 是否置顶 */ @Excel(name = "是否置顶") @@ -94,13 +94,13 @@ public class NmNote /** 是否分享(判断是否可以随意访问) */ @Excel(name = "是否分享(判断是否可以随意访问)") - @Column(name = "is_share") - private Integer isShare; + @Column(name = "note_share") + private Integer noteShare; /** 是否加密 */ @Excel(name = "是否加密") - @Column(name = "is_encryption") - private Integer isEncryption; + @Column(name = "note_encryption") + private Integer noteEncryption; /** 创建时间 */ @Column(name = "create_time") diff --git a/ruoyi-note/src/main/resources/mapper/note/NmNoteMapper.xml b/ruoyi-note/src/main/resources/mapper/note/NmNoteMapper.xml index 986937d3a..6cdcec51f 100644 --- a/ruoyi-note/src/main/resources/mapper/note/NmNoteMapper.xml +++ b/ruoyi-note/src/main/resources/mapper/note/NmNoteMapper.xml @@ -13,13 +13,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + - - + + - - + + @@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select note_id, user_id, title, description, menu_id, background, note_count, note_sort, is_state, read_progress, is_star, is_delete, top_flag, is_share, is_encryption, create_time, update_time,tiymce_ueditor from nm_note + select note_id, user_id, title, description, menu_id, background, note_count, note_sort, note_state, read_progress, note_star, note_delete, top_flag, note_share, note_encryption, create_time, update_time,tiymce_ueditor from nm_note @@ -41,13 +41,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and background = #{background} and note_count = #{noteCount} and note_sort = #{noteSort} - and is_state = #{isState} + and note_state = #{noteState} and read_progress = #{readProgress} - and is_star = #{isStar} - and is_delete = #{isDelete} + and note_star = #{noteStar} + and note_delete = #{noteDelete} and top_flag = #{topFlag} - and is_share = #{isShare} - and is_encryption = #{isEncryption} + and note_share = #{noteShare} + and note_encryption = #{noteEncryption} and tiymce_ueditor = #{tiymceUeditor} order by create_time desc @@ -69,13 +69,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" background, note_count, note_sort, - is_state, + note_state, read_progress, - is_star, - is_delete, + note_star, + note_delete, top_flag, - is_share, - is_encryption, + note_share, + note_encryption, create_time, update_time, tiymce_ueditor, @@ -89,13 +89,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{background}, #{noteCount}, #{noteSort}, - #{isState}, + #{noteState}, #{readProgress}, - #{isStar}, - #{isDelete}, + #{noteStar}, + #{noteDelete}, #{topFlag}, - #{isShare}, - #{isEncryption}, + #{noteShare}, + #{noteEncryption}, #{createTime}, #{updateTime}, #{tiymceUeditor}, @@ -112,13 +112,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" background = #{background}, note_count = #{noteCount}, note_sort = #{noteSort}, - is_state = #{isState}, + note_state = #{noteState}, read_progress = #{readProgress}, - is_star = #{isStar}, - is_delete = #{isDelete}, + note_star = #{noteStar}, + note_delete = #{noteDelete}, top_flag = #{topFlag}, - is_share = #{isShare}, - is_encryption = #{isEncryption}, + note_share = #{noteShare}, + note_encryption = #{noteEncryption}, create_time = #{createTime}, update_time = #{updateTime}, tiymce_ueditor = #{tiymceUeditor}, diff --git a/ruoyi-ui/src/components/BookmarkList/index.vue b/ruoyi-ui/src/components/BookmarkList/index.vue index e4979138c..fa58c800d 100644 --- a/ruoyi-ui/src/components/BookmarkList/index.vue +++ b/ruoyi-ui/src/components/BookmarkList/index.vue @@ -2,8 +2,8 @@ - - + + {{bm.title}} @@ -39,9 +39,14 @@ - - - + + + + + + + + @@ -63,6 +68,8 @@ noteTime:true, isBookmarkIcon:false, Ueditor:undefined, + seen:false, + current:0 } }, mounted(){ @@ -166,6 +173,15 @@ }, /**搜索高亮 结束**/ + enter(index){ + this.seen = true; + this.current = index; + }, + leave(){ + this.seen = false; + this.current = null; + }, + } } @@ -246,5 +262,16 @@ height: 15px; } + .editAllBookMark{ + width: 200px; + height: inherit; + position: absolute; + right: 0px; + top: 10px; + bottom: 10px; + display:inline-flex; + justify-content:flex-end; + align-items:center; + } diff --git a/ruoyi-yunbookmark/src/main/resources/mapper/bookmark/SqBookmarkMapper.xml b/ruoyi-yunbookmark/src/main/resources/mapper/bookmark/SqBookmarkMapper.xml index c53e4d375..95fe596fd 100644 --- a/ruoyi-yunbookmark/src/main/resources/mapper/bookmark/SqBookmarkMapper.xml +++ b/ruoyi-yunbookmark/src/main/resources/mapper/bookmark/SqBookmarkMapper.xml @@ -12,11 +12,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + - - + + @@ -42,11 +42,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and urls = #{urls} and description = #{description} and image = #{image} - and Label = #{label} + and label = #{label} and menu_id = #{menuId} and zcount = #{zcount} - and IDelete = #{idelete} - and Start = #{start} + and idelete = #{idelete} + and start = #{start} @@ -64,11 +64,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" urls, description, image, - Label, + label, menu_id, zcount, - IDelete, - Start, + idelete, + start, create_time, @@ -96,11 +96,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" urls = #{urls}, description = #{description}, image = #{image}, - Label = #{label}, + label = #{label}, menu_id = #{menuId}, zcount = #{zcount}, - IDelete = #{idelete}, - Start = #{start}, + idelete = #{idelete}, + start = #{start}, create_time = #{createTime}, where bookmark_id = #{bookmarkId}