修复回收站和全部书签查看
This commit is contained in:
parent
60f25fc199
commit
87b4e38462
@ -9,7 +9,7 @@ ruoyi:
|
|||||||
# 实例演示开关
|
# 实例演示开关
|
||||||
demoEnabled: true
|
demoEnabled: true
|
||||||
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
||||||
profile: D:/ruoyi/uploadPath
|
profile: /home/ruoyi/uploadPath
|
||||||
# 获取ip地址开关
|
# 获取ip地址开关
|
||||||
addressEnabled: false
|
addressEnabled: false
|
||||||
# 验证码类型 math 数组计算 char 字符验证
|
# 验证码类型 math 数组计算 char 字符验证
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
|
<!-- STYLE="position: relative"-->
|
||||||
<div v-for="bm in bookmarkList" class="bookmark" @click="winurl(bm.noteId,bm.tiymceUeditor,bm.bookmarkId,bm.url)">
|
<div v-for="bm in bookmarkList" class="bookmark" @click="winurl(bm.noteId,bm.tiymceUeditor,bm.bookmarkId,bm.url)">
|
||||||
<div class="bookmark-item">
|
<div class="bookmark-item">
|
||||||
<span class="bookmark-title" v-if="highlighted" v-html="highLight(bm.title,sousuo)"/>
|
<span class="bookmark-title" v-if="highlighted" v-html="highLight(bm.title,sousuo)"/>
|
||||||
@ -9,12 +9,18 @@
|
|||||||
<span class="bookmark-title" v-if="!highlighted">{{bm.title}}</span>
|
<span class="bookmark-title" v-if="!highlighted">{{bm.title}}</span>
|
||||||
<div class="bookmark-time" v-if="noteTime">{{bm.createTime|changeTime}}</div>
|
<div class="bookmark-time" v-if="noteTime">{{bm.createTime|changeTime}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bookmark-description" v-if="isdescription">
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="bookmark-description" v-if="isdescription" >
|
||||||
|
|
||||||
<span v-if="highlighted" v-html="highLight(bm.description,sousuo)"></span>
|
<span v-if="highlighted" v-html="highLight(bm.description,sousuo)"></span>
|
||||||
|
|
||||||
<span v-if="!highlighted">{{bm.description}}</span>
|
<span v-if="!highlighted">{{bm.description}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="info-wrap" v-if="isBookmarkIcon">
|
<div class="info-wrap" v-if="isBookmarkIcon">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="bookmark-icon">
|
<div class="bookmark-icon">
|
||||||
@ -33,8 +39,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <div style="width: 300px;height: inherit;background-color: red;position: absolute;right: 0px;top: 10px;bottom: 10px">-->
|
||||||
|
<!-- 2222222222222222222222-->
|
||||||
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -239,4 +246,5 @@
|
|||||||
height: 15px;
|
height: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -280,7 +280,7 @@
|
|||||||
</el-aside>
|
</el-aside>
|
||||||
|
|
||||||
<el-main class="isBookmarkMain" v-if="isMain">
|
<el-main class="isBookmarkMain" v-if="isMain">
|
||||||
<el-header class="mianUrl-top" style="height: 50px">
|
<el-header class="mianUrl-top" >
|
||||||
<div class="mianUrl-top-left">
|
<div class="mianUrl-top-left">
|
||||||
<i class="el-icon-folder-delete" @click="closeIsMain"></i>
|
<i class="el-icon-folder-delete" @click="closeIsMain"></i>
|
||||||
<i class="el-icon-rank" ></i>
|
<i class="el-icon-rank" ></i>
|
||||||
@ -563,7 +563,7 @@
|
|||||||
this.getListConcat();
|
this.getListConcat();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
this.getNoteListConcat();
|
this.getListNoteConcat();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
@ -578,12 +578,11 @@
|
|||||||
//缓存状态
|
//缓存状态
|
||||||
that.$store.state.property=e;
|
that.$store.state.property=e;
|
||||||
this.showimg=false;
|
this.showimg=false;
|
||||||
// console.log("缓存property:"+that.$store.state.property)
|
|
||||||
// console.log("缓存property:"+store.state.property)
|
|
||||||
//初始化
|
//初始化
|
||||||
this.queryParams.pageNum=1;
|
this.queryParams.pageNum=1;
|
||||||
this.noteParams.pageNum=1;
|
this.noteParams.pageNum=1;
|
||||||
this.bookmarkList=[];
|
this.bookmarkList=[];
|
||||||
|
|
||||||
this.getBypropertyList(e);
|
this.getBypropertyList(e);
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -752,15 +751,17 @@
|
|||||||
getrecycleList() {
|
getrecycleList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
selectBydelete(this.queryParams).then(response => {
|
selectBydelete(this.queryParams).then(response => {
|
||||||
if (response.total != 0 && response.code == 200) {
|
if (response.total != 0 &&response.code == 200) {
|
||||||
this.bookmarkList = response.rows;
|
this.bookmarkList = this.bookmarkList.concat(response.rows);
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
|
this.listloading = false
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.listloading = false
|
console.log("请求完毕" + that.queryParams.pageNum)
|
||||||
} else {
|
} else {
|
||||||
this.showbookmark = false;
|
//出错了加载完毕了 禁止滚动
|
||||||
this.showimg = true;
|
this.noMore = true;
|
||||||
this.listloading = false
|
this.listloading = false
|
||||||
|
this.loading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -768,15 +769,17 @@
|
|||||||
getBookmarkList() {
|
getBookmarkList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
selectByUseridList(this.queryParams).then(response => {
|
selectByUseridList(this.queryParams).then(response => {
|
||||||
if (response.total != 0 && response.code == 200) {
|
if (response.total != 0 &&response.code == 200) {
|
||||||
this.bookmarkList = response.rows;
|
this.bookmarkList = this.bookmarkList.concat(response.rows);
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
|
this.listloading = false
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.listloading = false
|
console.log("请求完毕" + that.queryParams.pageNum)
|
||||||
} else {
|
} else {
|
||||||
this.showbookmark = false;
|
//出错了加载完毕了 禁止滚动
|
||||||
this.showimg = true;
|
this.noMore = true;
|
||||||
this.listloading = false
|
this.listloading = false
|
||||||
|
this.loading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -784,10 +787,10 @@
|
|||||||
getBypropertyList(e){
|
getBypropertyList(e){
|
||||||
switch(e) {
|
switch(e) {
|
||||||
case 0:
|
case 0:
|
||||||
this.getList();
|
this.getListConcat();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
this.getNoteList();
|
this.getListNoteConcat();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@ -818,8 +821,6 @@
|
|||||||
this.getNoteList();
|
this.getNoteList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 查询书签管理列表 */
|
/** 查询书签管理列表 */
|
||||||
@ -846,15 +847,35 @@
|
|||||||
if(this.queryParams.menuId=='BOOKMARK'){
|
if(this.queryParams.menuId=='BOOKMARK'){
|
||||||
//全部书签
|
//全部书签
|
||||||
this.getBookmarkList();
|
this.getBookmarkList();
|
||||||
return;
|
}else if (this.queryParams.menuId == 'RECYCLE') {
|
||||||
}else if (routedata == 'RECYCLE') {
|
//回收站书签
|
||||||
//回收站
|
|
||||||
this.getrecycleList();
|
this.getrecycleList();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
//查看目录下的书签
|
||||||
|
this.getlistByMenuId();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**查询便签 滚动加载分页拼接*/
|
||||||
|
getListNoteConcat(){
|
||||||
|
var that=this;
|
||||||
|
this.loading = true;
|
||||||
|
if(this.queryParams.menuId=='BOOKMARK'){
|
||||||
|
//全部便签
|
||||||
|
this.loading = false;
|
||||||
|
this.showimg = true;
|
||||||
|
}else if (this.queryParams.menuId == 'RECYCLE') {
|
||||||
|
//回收站便签
|
||||||
|
this.loading = false;
|
||||||
|
this.showimg = true;
|
||||||
|
}else{
|
||||||
|
//查看目录下的便签
|
||||||
|
this.getNoteListConcat();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//查看目录下的书签
|
||||||
|
getlistByMenuId(){
|
||||||
selectBymenuIdUserID(this.queryParams).then(response => {
|
selectBymenuIdUserID(this.queryParams).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.total != 0 &&response.code == 200) {
|
||||||
this.bookmarkList = this.bookmarkList.concat(response.rows);
|
this.bookmarkList = this.bookmarkList.concat(response.rows);
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.listloading = false
|
this.listloading = false
|
||||||
@ -867,12 +888,9 @@
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/** 查询便签管理列表 */
|
/** 查询便签管理列表 */
|
||||||
getNoteList() {
|
getNoteList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@ -889,12 +907,11 @@
|
|||||||
getNoteListConcat(){
|
getNoteListConcat(){
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
selectBymenuNote(this.noteParams).then(response => {
|
selectBymenuNote(this.noteParams).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.total != 0 && response.code == 200) {
|
||||||
this.bookmarkList = this.bookmarkList.concat(response.rows);
|
this.bookmarkList = this.bookmarkList.concat(response.rows);
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.listloading = false
|
this.listloading = false
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
//出错了加载完毕了 禁止滚动
|
//出错了加载完毕了 禁止滚动
|
||||||
this.noMore = true;
|
this.noMore = true;
|
||||||
@ -1208,6 +1225,7 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding-bottom: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bookmark-title:hover {
|
.bookmark-title:hover {
|
||||||
@ -1471,6 +1489,7 @@
|
|||||||
.mianUrl-top{
|
.mianUrl-top{
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 0px!important;
|
padding: 0px!important;
|
||||||
|
height: 50px;
|
||||||
}
|
}
|
||||||
.mianUrl-top div{
|
.mianUrl-top div{
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
@ -27,14 +27,14 @@
|
|||||||
<ul id="treeDemo" class="ztree"></ul>
|
<ul id="treeDemo" class="ztree"></ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="reminder">工具箱</div>
|
<div class="reminder">工具箱</div>
|
||||||
<div class="aside-title"><i class="el-icon-s-flag" style="color: red"></i><span>RSS订阅</span></div>
|
<div class="aside-title"><i class="el-icon-s-flag" style="color: #569cd5"></i><span>RSS订阅</span></div>
|
||||||
<div class="aside-title" @click="goUserTagAll"><i class="el-icon-s-management"></i><span>标签管理</span></div>
|
<div class="aside-title" @click="goUserTagAll"><i class="el-icon-s-management"></i><span>标签管理</span></div>
|
||||||
<div class="aside-title" @click="gorecycle"><i class="el-icon-delete-solid"></i><span>回收站</span></div>
|
<div class="aside-title" @click="gorecycle"><i class="el-icon-delete-solid" style="color: red"></i><span>垃圾桶</span></div>
|
||||||
<div class="aside-title" @click="importHtml"><i class="el-icon-s-platform"></i><span>导入书签</span></div>
|
<div class="aside-title" @click="importHtml"><i class="el-icon-s-platform"></i><span>导入书签</span></div>
|
||||||
<div class="aside-title"><i class="el-icon-s-comment"></i><span>意见反馈</span></div>
|
<div class="aside-title"><i class="el-icon-s-comment"></i><span>意见反馈</span></div>
|
||||||
<div class="aside-title" @click="ceshi"><i class="el-icon-s-comment"></i><span>测试页面</span></div>
|
<!-- <div class="aside-title" @click="ceshi"><i class="el-icon-s-comment"></i><span>测试页面</span></div>-->
|
||||||
<div class="aside-title" @click="NqEdit"><i class="el-icon-s-comment"></i><span>NqQuillEdit编辑器</span></div>
|
<!-- <div class="aside-title" @click="NqEdit"><i class="el-icon-s-comment"></i><span>NqQuillEdit编辑器</span></div>-->
|
||||||
<div class="aside-title " style="margin-bottom: 100px"><i class="el-icon-s-grid"></i><span>其他设置</span></div>
|
<div class="aside-title " style="margin-bottom: 100px"><i class="el-icon-s-grid"></i><span>工具箱</span></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1766,11 +1766,11 @@
|
|||||||
|
|
||||||
/*拖拽区div样式*/
|
/*拖拽区div样式*/
|
||||||
.isresize {
|
.isresize {
|
||||||
/* width: 5px; */
|
width: 5px;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: red;
|
/*background-color: red;*/
|
||||||
color: red;
|
color: red;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
@ -79,5 +79,10 @@ public interface SqBookmarkMapper extends MyMapper<SqBookmark>
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public void updateSqBookmarkBymenuId(Long menuId);
|
public void updateSqBookmarkBymenuId(Long menuId);
|
||||||
|
/**
|
||||||
|
* 查询用户全部书签不包含删除的书签
|
||||||
|
* @param
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public List<SqBookmark> selectByUseridList(Long userId);
|
||||||
}
|
}
|
||||||
|
@ -261,10 +261,7 @@ public class SqBookmarkServiceImpl implements ISqBookmarkService
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<SqBookmark> selectByUseridList(Long userId) {
|
public List<SqBookmark> selectByUseridList(Long userId) {
|
||||||
SqBookmark sqBookmark= new SqBookmark();
|
return sqBookmarkMapper.selectByUseridList(userId);
|
||||||
sqBookmark.setUserid(userId);
|
|
||||||
sqBookmark.setIdelete(0); //未删除的书签
|
|
||||||
return sqBookmarkMapper.select(sqBookmark);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -121,6 +121,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<select id="selectByUseridList" parameterType="Long" resultMap="SqBookmarkResult">
|
||||||
|
<include refid="selectSqBookmarkVo"/>
|
||||||
|
where userid = #{userId} and idelete = 0 order by create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<select id="selectBymenuIdUserID" parameterType="SqBookmark" resultMap="SqBookmarkResult">
|
<select id="selectBymenuIdUserID" parameterType="SqBookmark" resultMap="SqBookmarkResult">
|
||||||
<include refid="selectSqBookmarkVo"/>
|
<include refid="selectSqBookmarkVo"/>
|
||||||
where userid=#{userID}
|
where userid=#{userID}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user