From 368bfc5c85099177dc715cf1b0e363b1c0535b00 Mon Sep 17 00:00:00 2001
From: WangHao <43278047@qq.com>
Date: Sun, 18 Oct 2020 00:43:29 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E8=AF=BB=E5=8F=96=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/com/ruoyi/note/domain/NmNote.java | 2 +-
.../src/components/BookmarkList/index.vue | 10 +-
ruoyi-ui/src/components/TinyMCE/index.vue | 2 +-
.../src/views/bookmark/bookmark/index.vue | 53 +++----
ruoyi-ui/src/views/bookmark/common/NqEdit.vue | 133 +++++++++++-------
5 files changed, 107 insertions(+), 93 deletions(-)
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 96cc86d59..7fb7ecf5e 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
@@ -118,7 +118,7 @@ public class NmNote
/**富文本文章内容*/
@Transient
- private String UeditorContent;
+ private String ueditorContent;
}
diff --git a/ruoyi-ui/src/components/BookmarkList/index.vue b/ruoyi-ui/src/components/BookmarkList/index.vue
index c0eb8797c..1c2231002 100644
--- a/ruoyi-ui/src/components/BookmarkList/index.vue
+++ b/ruoyi-ui/src/components/BookmarkList/index.vue
@@ -56,12 +56,12 @@
this.showView(this.property);
},
updated(){
- this.showView(this.property);
+ // this.showView(this.property);
},
created() {
- var that=this;
- //便签ID
- that.Ueditor = that.$route.query.Ueditor;
+ // var that=this;
+ // //便签ID
+ // that.Ueditor = that.$route.query.Ueditor;
},
filters: {
@@ -121,7 +121,7 @@
}
.bookmark:hover {
- background-color: #D4D4D4;
+ background-color: #E8E8E8;
}
diff --git a/ruoyi-ui/src/components/TinyMCE/index.vue b/ruoyi-ui/src/components/TinyMCE/index.vue
index e21a1cb32..94e6a33f2 100644
--- a/ruoyi-ui/src/components/TinyMCE/index.vue
+++ b/ruoyi-ui/src/components/TinyMCE/index.vue
@@ -72,7 +72,7 @@
language: 'zh_CN',
skin_url: '/tinymce/skins/ui/oxide',
// skin_url: 'tinymce/skins/ui/oxide-dark',//暗色系
- height: 300,
+ height: 600,
menubar: 'file edit insert view format table',//菜单 //
// 配置每个菜单栏的子菜单项(如下是默认配置)
menu: {
diff --git a/ruoyi-ui/src/views/bookmark/bookmark/index.vue b/ruoyi-ui/src/views/bookmark/bookmark/index.vue
index bfc78fe0f..c3ba476ba 100644
--- a/ruoyi-ui/src/views/bookmark/bookmark/index.vue
+++ b/ruoyi-ui/src/views/bookmark/bookmark/index.vue
@@ -126,7 +126,7 @@
- 此目录还未添加书签
+ 此目录还未添加收藏
@@ -199,10 +199,10 @@
-
+
加载中...
-
没有更多了
+
没有更多了
@@ -286,15 +286,16 @@
-
-
+
+
-
+
+
@@ -311,6 +312,7 @@
import {listMenuByUserId} from "@/api/bookmark/menu";
import Treeselect from "@riophae/vue-treeselect";
import BookmarkOne from "../../../components/BookmarkList";
+ import TinyMceEdit from "../../../views/bookmark/common/NqEdit";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import {
selectBymenuIdUserID,
@@ -331,7 +333,7 @@
export default {
components: {
- format, Treeselect,BookmarkOne
+ format, Treeselect,BookmarkOne,TinyMceEdit
},
data: function () {
@@ -436,6 +438,11 @@
isMain:true,
menuId:undefined,//当前目录
+ Ueditor:undefined,//点击的编辑器文章id
+ noteId:undefined, //点击的noteId
+
+
+
}
},
@@ -534,7 +541,6 @@
that.$set(that.queryParams, 'pageNum', i)
that.$set(that.noteParams, 'pageNum', m)
- // console.log("this.queryParams.pageNum:" + that.queryParams.pageNum)
var listcount = Math.ceil(that.total / 15);
@@ -543,10 +549,8 @@
that.noMore = true;
that.listnoMore = true;
that.listloading = false
- // console.log("禁止滚动了")
return;
} else {
-
this.listloading = true
setTimeout(() => {
switch(this.property) {
@@ -817,9 +821,6 @@
this.bookmarkList = response.rows;
this.total = response.total;
this.loading = false;
- // if (this.total>0){
- // this.gourl=this.bookmarkList[0].url;
- // }
if (this.bookmarkList==null||this.bookmarkList.length==0) {
this.showimg=true;
}
@@ -880,22 +881,9 @@
}
});
},
- // /**网站内打开*/
- // windowurl(url,bookmarkId) {
- // var that=this;
- // //网站内打开
- // that.iframeLoading=true;
- // this.gourl=url;
- // setTimeout(function(){
- // that.iframeLoading=false;
- // },1000);
- // },
/**网站内便签打开 网页*/
windowurl(noteId, tiymceueditor,bookmarkId,url) {
var that=this;
- console.log("noteId:"+noteId)
- console.log("tiymceueditor:"+tiymceueditor)
- this.openIsMain();
switch (that.property) {
case 0:
/**网页新窗口打开*/
@@ -903,16 +891,9 @@
break;
case 1:
/**编辑器内部打开*/
- that.$router.push({
- path: "/NqEdit",
- query: {
- Ueditor: tiymceueditor,
- noteId:noteId,
- // menuId:that.noteParams.menuId,
- property:that.property,
- t:Date.now(),
- }
- })
+ this.openIsMain();
+ that.Ueditor=tiymceueditor;//点击的编辑器文章id
+ that.noteId=noteId; //点击的noteId
break;
default:
}
diff --git a/ruoyi-ui/src/views/bookmark/common/NqEdit.vue b/ruoyi-ui/src/views/bookmark/common/NqEdit.vue
index 91b83c53f..ca0136a18 100644
--- a/ruoyi-ui/src/views/bookmark/common/NqEdit.vue
+++ b/ruoyi-ui/src/views/bookmark/common/NqEdit.vue
@@ -1,41 +1,40 @@
-
+
-
-
-
-
-
文章标题不能为空
+
-
+
-
+
-
-
-
-