移除mongodb 新增前端个人中心管理

This commit is contained in:
WangHao
2021-04-11 02:13:20 +08:00
parent eccdfddd9a
commit b546760a6f
19 changed files with 564 additions and 231 deletions

View File

@ -5,7 +5,7 @@ import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.redis.RedisCache; import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.note.domain.NoteContentMgDb; import com.ruoyi.note.domain.NoteContentMgDb;
import com.ruoyi.note.service.INoteRepositoryService; import com.ruoyi.note.service.INoteRepositoryService;
import org.bson.types.ObjectId; //import org.bson.types.ObjectId;
import org.junit.Test; import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -36,43 +36,43 @@ public class MongdbApplicationTests extends BaseSpringBootTest{
/** /**
* 查询所有信息 * 查询所有信息
*/ */
@Test // @Test
public void findAll() { // public void findAll() {
List<NoteContentMgDb> all = noteRepositoryService.findAll(); // List<NoteContentMgDb> all = noteRepositoryService.findAll();
System.out.println(all.size()); // System.out.println(all.size());
} // }
/** /**
* 新增信息 * 新增信息
*/ */
@Test // @Test
public void save() { // public void save() {
NoteContentMgDb noteContentMgDb = new NoteContentMgDb(); // NoteContentMgDb noteContentMgDb = new NoteContentMgDb();
noteContentMgDb.setId(15108230363503104L); // noteContentMgDb.setId(15108230363503104L);
noteContentMgDb.setNoteContent("宋人头"); // noteContentMgDb.setNoteContent("宋人头");
noteRepositoryService.save(noteContentMgDb); // noteRepositoryService.save(noteContentMgDb);
} // }
/** /**
* 修改信息 * 修改信息
*/ */
@Test // @Test
public void update() { // public void update() {
NoteContentMgDb noteContentMgDb = new NoteContentMgDb(); // NoteContentMgDb noteContentMgDb = new NoteContentMgDb();
// noteContentMgDb.setId(2L); //// noteContentMgDb.setId(2L);
noteContentMgDb.setNoteContent("吴很帅"); // noteContentMgDb.setNoteContent("吴很帅");
noteRepositoryService.update(noteContentMgDb); // noteRepositoryService.update(noteContentMgDb);
} // }
/** /**
* 删除信息 * 删除信息
*/ */
@Test // @Test
public void delete() { // public void delete() {
noteRepositoryService.delete(3); // noteRepositoryService.delete(3);
} // }
//
@ -102,37 +102,37 @@ public class MongdbApplicationTests extends BaseSpringBootTest{
* @param * @param
* @return * @return
*/ */
@Test // @Test
public void redisToMgDB(){ // public void redisToMgDB(){
//模糊查询 获取所有的key // //模糊查询 获取所有的key
Collection<String> listNote= redisCache.keys(Constants.NM_NOTE_CONTENT+"*"); // Collection<String> listNote= redisCache.keys(Constants.NM_NOTE_CONTENT+"*");
for(String str:listNote){ // for(String str:listNote){
//文章UUID // //文章UUID
String mgDbContentUUID=str.replace(Constants.NM_NOTE_CONTENT,""); // String mgDbContentUUID=str.replace(Constants.NM_NOTE_CONTENT,"");
System.out.println("str:"+str); // System.out.println("str:"+str);
//文章 // //文章
String redisContent= redisCache.getCacheObject(str).toString(); // String redisContent= redisCache.getCacheObject(str).toString();
//查询mongoDb 存在就修改 不存在就新增 // //查询mongoDb 存在就修改 不存在就新增
List<NoteContentMgDb> listMgDbContent = noteRepositoryService.findById(mgDbContentUUID); // List<NoteContentMgDb> listMgDbContent = noteRepositoryService.findById(mgDbContentUUID);
if (listMgDbContent!=null&&!listMgDbContent.isEmpty()){ // if (listMgDbContent!=null&&!listMgDbContent.isEmpty()){
//修改 // //修改
NoteContentMgDb noteContentMgDb = new NoteContentMgDb(); // NoteContentMgDb noteContentMgDb = new NoteContentMgDb();
noteContentMgDb.setId(Long.valueOf(mgDbContentUUID)); // noteContentMgDb.setId(Long.valueOf(mgDbContentUUID));
noteContentMgDb.setNoteContent(redisContent); // noteContentMgDb.setNoteContent(redisContent);
noteRepositoryService.update(noteContentMgDb); // noteRepositoryService.update(noteContentMgDb);
}else { // }else {
//新增 // //新增
NoteContentMgDb noteContentMgDb = new NoteContentMgDb(); // NoteContentMgDb noteContentMgDb = new NoteContentMgDb();
noteContentMgDb.setId(Long.valueOf(mgDbContentUUID)); // noteContentMgDb.setId(Long.valueOf(mgDbContentUUID));
noteContentMgDb.setNoteContent(redisContent); // noteContentMgDb.setNoteContent(redisContent);
noteRepositoryService.save(noteContentMgDb); // noteRepositoryService.save(noteContentMgDb);
} // }
//删除对应缓存 // //删除对应缓存
//redisCache.deleteObject(str); // //redisCache.deleteObject(str);
} // }
//
//
} // }

View File

@ -58,9 +58,9 @@ spring:
#mongodb #mongodb
data: # data:
mongodb: # mongodb:
uri: mongodb://localhost:27017/ChangQuYun # uri: mongodb://localhost:27017/ChangQuYun
#设置了密码 #设置了密码
# spring.data.mongodb.uri=mongodb://admin:123456@192.168.56.128:27017/admin # spring.data.mongodb.uri=mongodb://admin:123456@192.168.56.128:27017/admin
#格式: mongodb://账号:密码@ip:端口/数据库?认证数据库 #格式: mongodb://账号:密码@ip:端口/数据库?认证数据库

View File

@ -161,12 +161,12 @@
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<version>1.18.12</version> <version>1.18.12</version>
</dependency> </dependency>
<!-- lombok 实体类工具--> <!-- mongodb工具-->
<dependency> <!-- <dependency>-->
<groupId>org.springframework.boot</groupId> <!-- <groupId>org.springframework.boot</groupId>-->
<artifactId>spring-boot-starter-data-mongodb</artifactId> <!-- <artifactId>spring-boot-starter-data-mongodb</artifactId>-->
<version>2.3.4.RELEASE</version> <!-- <version>2.3.4.RELEASE</version>-->
</dependency> <!-- </dependency>-->

View File

@ -1,6 +1,6 @@
package com.ruoyi.note.domain; package com.ruoyi.note.domain;
import org.springframework.data.mongodb.core.mapping.Document; //import org.springframework.data.mongodb.core.mapping.Document;
import javax.persistence.Id; import javax.persistence.Id;
import java.io.Serializable; import java.io.Serializable;
@ -10,7 +10,7 @@ import java.io.Serializable;
* @Date: 2020/10/08 19:07 * @Date: 2020/10/08 19:07
* 功能描述: * 功能描述:
*/ */
@Document(collection = "NoteContent") //@Document(collection = "NoteContent")
public class NoteContentMgDb implements Serializable { public class NoteContentMgDb implements Serializable {
@Id @Id

View File

@ -1,10 +1,10 @@
package com.ruoyi.note.service; package com.ruoyi.note.service;
import com.mongodb.client.MongoCollection; //import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.Filters; //import com.mongodb.client.model.Filters;
import com.ruoyi.note.domain.NoteContentMgDb; import com.ruoyi.note.domain.NoteContentMgDb;
import com.sun.corba.se.spi.ior.ObjectId; import com.sun.corba.se.spi.ior.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document; //import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List; import java.util.List;
@ -15,14 +15,14 @@ import java.util.List;
*/ */
public interface INoteRepositoryService { public interface INoteRepositoryService {
void save(NoteContentMgDb noteContentMgDb); // void save(NoteContentMgDb noteContentMgDb);
//
void update(NoteContentMgDb noteContentMgDb); // void update(NoteContentMgDb noteContentMgDb);
//
List<NoteContentMgDb> findAll(); // List<NoteContentMgDb> findAll();
//
void delete(Integer id); // void delete(Integer id);
//
//根据id查询 // //根据id查询
List<NoteContentMgDb> findById(String id); // List<NoteContentMgDb> findById(String id);
} }

View File

@ -6,10 +6,10 @@ import java.util.Map;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import com.github.wujun234.uid.UidGenerator; import com.github.wujun234.uid.UidGenerator;
import com.mongodb.BasicDBObject; //import com.mongodb.BasicDBObject;
import com.mongodb.DBObject; //import com.mongodb.DBObject;
import com.mongodb.client.MongoCollection; //import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoCursor; //import com.mongodb.client.MongoCursor;
import com.ruoyi.common.constant.Constants; import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.redis.RedisCache; import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
@ -18,7 +18,7 @@ import com.ruoyi.note.domain.NoteContentMgDb;
import com.ruoyi.note.service.INmNoteContentService; import com.ruoyi.note.service.INmNoteContentService;
import com.ruoyi.note.service.INoteRepositoryService; import com.ruoyi.note.service.INoteRepositoryService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.mapping.Document; //import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ruoyi.note.mapper.NmNoteMapper; import com.ruoyi.note.mapper.NmNoteMapper;
import com.ruoyi.note.domain.NmNote; import com.ruoyi.note.domain.NmNote;
@ -167,31 +167,31 @@ public class NmNoteServiceImpl implements INmNoteService {
*/ */
@Override @Override
public void redisToMongonDB() { public void redisToMongonDB() {
//模糊查询 获取所有的key // //模糊查询 获取所有的key
Collection<String> listNote= redisCache.keys(Constants.NM_NOTE_CONTENT+"*"); // Collection<String> listNote= redisCache.keys(Constants.NM_NOTE_CONTENT+"*");
for(String str:listNote){ // for(String str:listNote){
//文章UUID // //文章UUID
String mgDbContentUUID=str.replace(Constants.NM_NOTE_CONTENT,""); // String mgDbContentUUID=str.replace(Constants.NM_NOTE_CONTENT,"");
//文章 // //文章
String redisContent= redisCache.getCacheObject(str).toString(); // String redisContent= redisCache.getCacheObject(str).toString();
//查询mongoDb 存在就修改 不存在就新增 // //查询mongoDb 存在就修改 不存在就新增
List<NoteContentMgDb> listMgDbContent = noteRepositoryService.findById(mgDbContentUUID); // List<NoteContentMgDb> listMgDbContent = noteRepositoryService.findById(mgDbContentUUID);
if (listMgDbContent!=null&&!listMgDbContent.isEmpty()){ // if (listMgDbContent!=null&&!listMgDbContent.isEmpty()){
//修改 // //修改
NoteContentMgDb noteContentMgDb = new NoteContentMgDb(); // NoteContentMgDb noteContentMgDb = new NoteContentMgDb();
noteContentMgDb.setId(Long.valueOf(mgDbContentUUID)); // noteContentMgDb.setId(Long.valueOf(mgDbContentUUID));
noteContentMgDb.setNoteContent(redisContent); // noteContentMgDb.setNoteContent(redisContent);
noteRepositoryService.update(noteContentMgDb); // noteRepositoryService.update(noteContentMgDb);
}else { // }else {
//新增 // //新增
NoteContentMgDb noteContentMgDb = new NoteContentMgDb(); // NoteContentMgDb noteContentMgDb = new NoteContentMgDb();
noteContentMgDb.setId(Long.valueOf(mgDbContentUUID)); // noteContentMgDb.setId(Long.valueOf(mgDbContentUUID));
noteContentMgDb.setNoteContent(redisContent); // noteContentMgDb.setNoteContent(redisContent);
noteRepositoryService.save(noteContentMgDb); // noteRepositoryService.save(noteContentMgDb);
} // }
//删除对应缓存 // //删除对应缓存
redisCache.deleteObject(str); // redisCache.deleteObject(str);
} // }
} }

View File

@ -1,18 +1,18 @@
package com.ruoyi.note.service.impl; package com.ruoyi.note.service.impl;
import com.mongodb.client.MongoCollection; //import com.mongodb.client.MongoCollection;
import com.mongodb.client.model.Filters; //import com.mongodb.client.model.Filters;
import com.ruoyi.note.domain.NoteContentMgDb; import com.ruoyi.note.domain.NoteContentMgDb;
import com.ruoyi.note.service.INoteRepositoryService; import com.ruoyi.note.service.INoteRepositoryService;
import org.bson.types.ObjectId; //import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate; //import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.mapping.Document; //import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.query.Criteria; //import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query; //import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update; //import org.springframework.data.mongodb.core.query.Update;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
@ -25,64 +25,64 @@ import java.util.List;
@Service @Service
public class NoteRepositoryServiceImpl implements INoteRepositoryService { public class NoteRepositoryServiceImpl implements INoteRepositoryService {
@Autowired // @Autowired
private MongoTemplate mongoTemplate; // private MongoTemplate mongoTemplate;
//
//
//
/** // /**
* 新增信息 // * 新增信息
* @param student // * @param student
*/ // */
@Override // @Override
public void save(NoteContentMgDb student) { // public void save(NoteContentMgDb student) {
mongoTemplate.save(student); // mongoTemplate.save(student);
} // }
//
/** // /**
* 修改信息 // * 修改信息
* @param noteContentMgDb // * @param noteContentMgDb
*/ // */
@Override // @Override
public void update(NoteContentMgDb noteContentMgDb) { // public void update(NoteContentMgDb noteContentMgDb) {
//修改的条件 // //修改的条件
Query query = new Query(Criteria.where("id").is(noteContentMgDb.getId())); // Query query = new Query(Criteria.where("id").is(noteContentMgDb.getId()));
//
//修改的内容 // //修改的内容
Update update = new Update(); // Update update = new Update();
update.set("name", noteContentMgDb.getNoteContent()); // update.set("name", noteContentMgDb.getNoteContent());
//
mongoTemplate.updateFirst(query,update, NoteContentMgDb.class); // mongoTemplate.updateFirst(query,update, NoteContentMgDb.class);
} // }
//
/** // /**
* 查询所有信息 // * 查询所有信息
* @return // * @return
*/ // */
@Override // @Override
public List<NoteContentMgDb> findAll() { // public List<NoteContentMgDb> findAll() {
return mongoTemplate.findAll(NoteContentMgDb.class); // return mongoTemplate.findAll(NoteContentMgDb.class);
} // }
//
/** // /**
* 根据id查询所有信息 // * 根据id查询所有信息
* @param id // * @param id
*/ // */
@Override // @Override
public void delete(Integer id) { // public void delete(Integer id) {
NoteContentMgDb byId = mongoTemplate.findById(1, NoteContentMgDb.class); // NoteContentMgDb byId = mongoTemplate.findById(1, NoteContentMgDb.class);
mongoTemplate.remove(byId); // mongoTemplate.remove(byId);
} // }
//
//
//
@Override // @Override
public List<NoteContentMgDb> findById(String id) { // public List<NoteContentMgDb> findById(String id) {
//修改的条件 // //修改的条件
Query query = new Query(Criteria.where("_id").is(Long.valueOf(id))); // Query query = new Query(Criteria.where("_id").is(Long.valueOf(id)));
//修改的内容 // //修改的内容
return mongoTemplate.find(query, NoteContentMgDb.class); // return mongoTemplate.find(query, NoteContentMgDb.class);
} // }
} }

View File

@ -8,6 +8,7 @@
font-size: 22px!important; font-size: 22px!important;
} }
} }
@ -20,6 +21,11 @@
.sousouright-icon{ .sousouright-icon{
margin-right: 18px; margin-right: 18px;
} }
/*个人中心的导航点击*/
.head-tag-button{
width: 60%!important;
}
} }
/* >>> md*/ /* >>> md*/
@ -43,6 +49,11 @@
/* ipad >>> xs*/ /* ipad >>> xs*/
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
/*个人中心的导航点击*/
.head-tag-button{
width: 95%!important;
}
.transition-box{ .transition-box{
display: none; display: none;
} }

View File

@ -63,23 +63,62 @@ export const constantRoutes = [
children:[ children:[
{ {
path: '/bkindex', path: '/bkindex',
component: resolve => require(['../views/system/user/profile/bkindex.vue'], resolve), component: resolve => require(['../views/bookmark/bkuser/tool/bkindex.vue'], resolve),
hidden: true, hidden: true,
meta:{ meta:{
title: '个人中心',icon:'user', title: '个人中心',icon:'user',
requireAuth: true,//加该字段,表示进入这个路由是需要登录的true requireAuth: true,//加该字段,表示进入这个路由是需要登录的true
}, },
} },
,
{ {
path: '/importHtml', path: '/importHtml',
name: 'importHtml', name: 'importHtml',
component: resolve => require(['../views/bookmark/common/ImportHtml.vue'], resolve), component: resolve => require(['../views/bookmark/bkuser/tool/ImportHtml.vue'], resolve),
hidden: true, hidden: true,
meta:{ meta:{
title: '导入书签',icon:'user', title: '导入书签',icon:'user',
requireAuth: true,//加该字段,表示进入这个路由是需要登录的true requireAuth: true,//加该字段,表示进入这个路由是需要登录的true
}, },
},
{
path: '/issueLog',
name: 'issueLog',
component: resolve => require(['../views/bookmark/bkuser/tool/issueLog.vue'], resolve),
hidden: true,
meta:{
title: '更新日志',icon:'user',
requireAuth: true,//加该字段,表示进入这个路由是需要登录的true
},
},
{
path: '/aboutUs',
name: 'aboutUs',
component: resolve => require(['../views/bookmark/bkuser/tool/aboutUs.vue'], resolve),
hidden: true,
meta:{
title: '导入书签',icon:'user',
requireAuth: true,//加该字段,表示进入这个路由是需要登录的true
},
},
{
path: '/exportHtml',
name: 'exportHtml',
component: resolve => require(['../views/bookmark/bkuser/tool/exportHtml.vue'], resolve),
hidden: true,
meta:{
title: '备份导出',icon:'user',
requireAuth: true,//加该字段,表示进入这个路由是需要登录的true
},
},
{
path: '/userSettings',
name: 'userSettings',
component: resolve => require(['../views/bookmark/bkuser/tool/userSettings.vue'], resolve),
hidden: true,
meta:{
title: '用户系统设置',icon:'user',
requireAuth: true,//加该字段,表示进入这个路由是需要登录的true
},
} }
] ]

View File

@ -4,7 +4,7 @@
<div class="head-top"> <div class="head-top">
<div class="goIndex"> <div class="goIndex">
<el-page-header @back="goBack" content=""> <el-page-header @back="goRouter(9)" content="">
</el-page-header> </el-page-header>
</div> </div>
<div style="position: absolute;left: 47.5%;margin-top:-20px"> <div style="position: absolute;left: 47.5%;margin-top:-20px">
@ -17,15 +17,14 @@
<div class="head-tag"> <div class="head-tag">
<div class="mdui-btn-group head-tag-button"> <div class="mdui-btn-group head-tag-button">
<button type="button" <!-- <div :class="['classification',property=='0'?' classification-click':'']" @click="showopen(0)"><span>网页</span></div>-->
class="mdui-btn mdui-color-theme-accent mdui-ripple mdui-btn-active mdui-color-blue-50 mdui-text-color-blue-600"> <button @click="goRouter(1)" :class="['mdui-btn mdui-color-theme-accent mdui-ripple ',property=='1'?' mdui-btn-active mdui-color-blue-50 mdui-text-color-blue-600':'']">个人中心</button>
个人中心 <button @click="goRouter(2)" :class="['mdui-btn mdui-color-theme-accent mdui-ripple ',property=='2'?' mdui-btn-active mdui-color-blue-50 mdui-text-color-blue-600':'']">系统设置</button>
</button> <button @click="goRouter(3)" :class="['mdui-btn mdui-color-theme-accent mdui-ripple ',property=='3'?' mdui-btn-active mdui-color-blue-50 mdui-text-color-blue-600':'']">导入书签</button>
<button type="button" class="mdui-btn mdui-color-theme-accent mdui-ripple">系统设置</button> <button @click="goRouter(4)" :class="['mdui-btn mdui-color-theme-accent mdui-ripple ',property=='4'?' mdui-btn-active mdui-color-blue-50 mdui-text-color-blue-600':'']">备份导出</button>
<button class="mdui-btn mdui-color-theme-accent mdui-ripple">导入书签</button> <button @click="goRouter(5)" :class="['mdui-btn mdui-color-theme-accent mdui-ripple ',property=='5'?' mdui-btn-active mdui-color-blue-50 mdui-text-color-blue-600':'']">更新日志</button>
<button class="mdui-btn mdui-color-theme-accent mdui-ripple">备份导出</button> <button @click="goRouter(6)" :class="['mdui-btn mdui-color-theme-accent mdui-ripple ',property=='6'?' mdui-btn-active mdui-color-blue-50 mdui-text-color-blue-600':'']">关于我们</button>
<button class="mdui-btn mdui-color-theme-accent mdui-ripple">更新日志</button>
<button class="mdui-btn mdui-color-theme-accent mdui-ripple">关于我们</button>
</div> </div>
</div> </div>
@ -43,25 +42,79 @@
</template> </template>
<script> <script>
import bkindex from "../../system/user/profile/bkindex.vue"; import bkindex from "./tool/bkindex.vue";
import userAvatar from "../../system/user/profile/userAvatar.vue"; import userAvatar from "../../system/user/profile/userAvatar.vue";
export default { export default {
name: 'areaTree', name: 'areaTree',
components: {bkindex,userAvatar}, components: {bkindex,userAvatar},
data: function () { data: function () {
return {} return {
property:1,
}
}, },
methods: { methods: {
goBack() {
goRouter(e){
var that = this; var that = this;
//全部书签 //样式选中
if (0<e&&e<7) {
this.property=e;
}
switch (e) {
case 9:
//全部书签 返回
that.$router.push({ that.$router.push({
path: "/content", path: "/content",
query: { query: {
menuId: 'BOOKMARK' menuId: 'BOOKMARK'
} }
}) })
break;
case 1:
//个人信息
that.$router.push({
path: "/bkindex",
})
break;
case 2:
that.$router.push({
path: "/userSettings",
})
break;
case 3:
that.$router.push({
path: "/importHtml",
})
break;
case 4:
that.$router.push({
path: "/exportHtml",
})
break;
case 5:
that.$router.push({
path: "/issueLog",
})
break;
case 6:
that.$router.push({
path: "/aboutUs",
})
break;
default:
that.$router.push({
path: "/ceshi",
})
}
},
goBack() {
var that = this;
} }
}, },
mounted() { mounted() {
@ -78,6 +131,7 @@
</style> </style>
<style scoped> <style scoped>
.goIndex{ .goIndex{
padding-left: 18px;padding-top: 18px; padding-left: 18px;padding-top: 18px;
} }
@ -91,9 +145,17 @@
.head-tag-button { .head-tag-button {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 50%; width: 40%;
align-items: center;
margin: 0 auto; margin: 0 auto;
} }
.head-tag-button button{
border-radius: 3px;
font-weight: 600;
height: 30px;
line-height: 30px;
}
.head-top { .head-top {
width: 100%; width: 100%;

View File

@ -42,7 +42,8 @@
<el-row >
<el-col :xs="{span: 22, push: 1}" :sm="{span: 16, push: 4}" :md="{span: 16, push: 4}" :xl="{span: 12, push: 6}" >
<div class="text"> <div class="text">
<ul> <ul>
<li>注意事项</li> <li>注意事项</li>
@ -56,6 +57,8 @@
<li>4支持浏览器的目录结构,本站目录支持无限级别分类</li> <li>4支持浏览器的目录结构,本站目录支持无限级别分类</li>
</ul> </ul>
</div> </div>
</el-col>
</el-row>
</div> </div>
@ -63,7 +66,7 @@
</template> </template>
<script > <script >
import Bkhead from "../../../components/Bkhead"; import Bkhead from "../../../../components/Bkhead/index";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
export default { export default {
name: "", name: "",
@ -123,9 +126,8 @@
.text{ .text{
border: #cecece 1px solid; border: #cecece 1px solid;
border-radius: 10px; border-radius: 10px;
margin: 20px;
background-color: #fafcff; background-color: #fafcff;
margin-top: 30px; margin-top: 40px;
} }
.structure { .structure {
@ -139,17 +141,12 @@
.Import el-button { .Import el-button {
width: 200px; width: 200px;
} }
ul{
margin-left: 5px;
}
li{ li{
list-style:none; list-style:none;
} }
.main{
}
.upload-demo{
}
.title { .title {
color: red; color: red;
width: 360px; width: 360px;

View File

@ -0,0 +1,59 @@
<template>
<div class="app-container ">
<el-row >
<el-col :xs="24" :sm="{span: 18, push: 3}" :md="{span: 18, push: 3}" :xl="{span: 18, push: 3}" >
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>关于我们</span>
</div>
<p class="text item" v-html = 'hello'>
</p>
</el-card>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
name: 'areaTree',
components: {},
data: function () {
return {
hello:' 京东致力于为用户打造极致购物体验。京东是中国消费者信赖的家电购买平台为大中城市和乡镇市场的消费者提供丰富多元、满足各种个性化需求的高品质家电和一站式优质服务。京东手机与品牌商、运营商保持了长期紧密的合作共同推动了5G生态发展为消费者打造一站式购机服务体验。\n' +
'\n' +
' 京东超市目前已经成为众多知名国际快消品牌的全渠道零售商。京东超市打造的“全城购”项目拓展全渠道业务,已经成功在全国多个城市、区域建立起了完善的全品类即时消费的零售生态。\n' +
'\n' +
' 全品类发展的京东生鲜通过七鲜超市、七鲜生活等业态,线上线下相结合,为消费者创造最佳体验。\n' +
'\n'
}
},
methods: {}
}
</script>
<style scoped>
.text {
font-size: 14px;
}
.item {
margin-bottom: 18px;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both
}
</style>

View File

@ -16,25 +16,33 @@
<div class="pull-right">{{ user.userName }}</div> <div class="pull-right">{{ user.userName }}</div>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<svg-icon icon-class="phone" />手机号码 <svg-icon icon-class="phone" />绑定手机
<div class="pull-right">{{ user.phonenumber }}</div> <div class="pull-right">{{ user.phonenumber }}</div>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<svg-icon icon-class="email" />用户邮箱 <svg-icon icon-class="email" />绑定邮箱
<div class="pull-right">{{ user.email }}</div> <div class="pull-right">{{ user.email }}</div>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<svg-icon icon-class="tree" />所属部门 <svg-icon icon-class="peoples" />身份角色
<div class="pull-right" v-if="user.dept">{{ user.dept.deptName }} / {{ postGroup }}</div>
</li>
<li class="list-group-item">
<svg-icon icon-class="peoples" />所属角色
<div class="pull-right">{{ roleGroup }}</div> <div class="pull-right">{{ roleGroup }}</div>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<svg-icon icon-class="date" />创建日期 <svg-icon icon-class="date" />注册日期
<div class="pull-right">{{ user.createTime }}</div> <div class="pull-right">{{ user.createTime }}</div>
</li> </li>
<!-- <li class="list-group-item">-->
<!-- <svg-icon icon-class="date" />上次登陆时间-->
<!-- <div class="pull-right">{{ user.login_date }}</div>-->
<!-- </li>-->
<!-- <li class="list-group-item">-->
<!-- <svg-icon icon-class="date" />上次登陆IP-->
<!-- <div class="pull-right">{{ user.login_ip }}</div>-->
<!-- </li>-->
<!-- <li class="list-group-item">-->
<!-- <svg-icon icon-class="date" />登陆账号-->
<!-- <div class="pull-right">{{ user.user_name }}</div>-->
<!-- </li>-->
</ul> </ul>
</div> </div>
</el-card> </el-card>
@ -59,9 +67,9 @@
</template> </template>
<script> <script>
import userAvatar from "./userAvatar"; import userAvatar from "../../../system/user/profile/userAvatar";
import userInfo from "./userInfo"; import userInfo from "../../../system/user/profile/userInfo";
import resetPwd from "./resetPwd"; import resetPwd from "../../../system/user/profile/resetPwd";
import { getUserProfile } from "@/api/system/user"; import { getUserProfile } from "@/api/system/user";
export default { export default {

View File

@ -0,0 +1,33 @@
<template>
<div class="app-container ">
<el-row :gutter="20" >
<el-col :xs="24" :sm="{span: 16, push: 4}" :md="{span: 14, push: 5}" :xl="{span: 10, push: 7}" >
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>备份导出</span>
</div>
<div>
<ul class="list-group list-group-striped">
</ul>
</div>
</el-card>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
name: 'areaTree',
components: {},
data: function () {
return {}
},
methods: {}
}
</script>
<style>
</style>

View File

@ -0,0 +1,67 @@
<template>
<div class="app-container ">
<el-row :gutter="20" >
<el-col :xs="24" :sm="{span: 16, push: 4}" :md="{span: 14, push: 5}" :xl="{span: 10, push: 7}" >
<div class="block">
<el-timeline>
<el-timeline-item timestamp="2018/4/12" placement="top">
<el-card>
<h4>V1.5 更新日志</h4>
<ul>
<li>新增IE浏览器版本过低提示页面</li>
<li>新增详细信息tab页签方式</li>
<li>新增解锁屏幕打开上次页签</li>
<li>数据监控默认账户密码防止越权访问</li>
<li>新增表格示例导出选择列</li>
<li>个人信息添加手机&邮箱重复验证</li>
</ul>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="2018/4/3" placement="top">
<el-card>
<h4>V1.4 更新日志</h4>
<ul>
<li>个人中心刷新后样式问题</li>
<li>操作日志返回参数添加非空验证</li>
<li>velocity剔除commons-collections版本防止3.2.1版本的反序列化漏洞</li>
<li>子表模板默认日期格式化</li>
<li>代码生成预览语言根据后缀名高亮显示</li>
</ul>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="2018/4/2" placement="top">
<el-card>
<h4>V1.3 更新日志</h4>
<ul>
<li>代码生成主子表相同字段导致数据问题</li>
<li>升级SpringBoot到最新版本2.2.13</li>
<li>升级shiro到最新版1.7.1 阻止身份认证绕过漏洞</li>
<li>升级bootstrapTable到最新版本v1.18.2</li>
<li>升级bootstrapTable相关组件到最新版本v1.18.2</li>
</ul>
</el-card>
</el-timeline-item>
</el-timeline>
</div>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
name: 'areaTree',
components: {},
data: function () {
return {}
},
methods: {}
}
</script>
<style>
</style>

View File

@ -0,0 +1,33 @@
<template>
<div class="app-container ">
<el-row :gutter="20" >
<el-col :xs="24" :sm="{span: 16, push: 4}" :md="{span: 14, push: 5}" :xl="{span: 10, push: 7}" >
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>系统设置</span>
</div>
<div>
<ul class="list-group list-group-striped">
</ul>
</div>
</el-card>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
name: 'areaTree',
components: {},
data: function () {
return {}
},
methods: {}
}
</script>
<style>
</style>

View File

@ -37,6 +37,7 @@
<div class="header-list"> <div class="header-list">
<el-dropdown trigger="click" size="small" :hide-on-click="false"> <el-dropdown trigger="click" size="small" :hide-on-click="false">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
<el-avatar :size="28" <el-avatar :size="28"
src="https://up.raindrop.io/collection/templates/social-media-logos-6/97social.png"></el-avatar> src="https://up.raindrop.io/collection/templates/social-media-logos-6/97social.png"></el-avatar>
</span> </span>
@ -225,6 +226,7 @@
<script> <script>
import {listMenuByUserId} from "@/api/bookmark/menu"; import {listMenuByUserId} from "@/api/bookmark/menu";
import { getUserProfile } from "@/api/system/user";
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import BookmarkOne from "../../../components/BookmarkList"; import BookmarkOne from "../../../components/BookmarkList";
import TinyMceEdit from "../common/nqEdit"; import TinyMceEdit from "../common/nqEdit";
@ -354,6 +356,7 @@
Ueditor:undefined,//点击的编辑器文章id Ueditor:undefined,//点击的编辑器文章id
noteId:undefined, //点击的noteId noteId:undefined, //点击的noteId
user:'',//登陆的用户信息
@ -422,6 +425,8 @@
window.addEventListener('resize', this.getHeight); window.addEventListener('resize', this.getHeight);
this.getHeight() this.getHeight()
//获取当前的用户信息
this.getUser();
}, },
mounted() { mounted() {
@ -429,6 +434,14 @@
}, },
methods: { methods: {
getUser() {
getUserProfile().then(response => {
this.user = response.data;
this.roleGroup = response.roleGroup;
this.postGroup = response.postGroup;
});
},
closeIsMain(){ closeIsMain(){
this.asideHeight.width="100%!important" this.asideHeight.width="100%!important"
this.isMain=false; this.isMain=false;
@ -855,6 +868,8 @@
that.noteId=noteId; //点击的noteId that.noteId=noteId; //点击的noteId
break; break;
default: default:
/**网页新窗口打开*/
window.open(url);
} }

View File

@ -71,13 +71,6 @@
</div> </div>
</div> </div>
@ -94,7 +87,15 @@
data: function () { data: function () {
return {} return {}
}, },
methods: {} methods: {
},
mounted() {
document.querySelector('body').setAttribute('style', 'background-color:#f6f5f4')
},
beforeDestroy() {
document.querySelector('body').removeAttribute('style')
}
} }
</script> </script>
<style scoped> <style scoped>

View File

@ -42,6 +42,14 @@
</div> </div>
<div class="block">
<span class="demonstration">默认 Hover 指示器触发</span>
<el-carousel height="150px">
<el-carousel-item v-for="item in 4" :key="item">
<h3 class="small">{{ item }}</h3>
</el-carousel-item>
</el-carousel>
</div>
</el-aside> </el-aside>
</transition> </transition>