Commit 86e6f8d1 authored by 赵啸非's avatar 赵啸非

添加收藏相关类

parent 38d43a0f
......@@ -58,6 +58,14 @@ const router = new Router({
...restBuilder('news/category', 'news/category'),//新闻频道分类
...restBuilder("dept", "dept"), //部门
...restBuilder('page', 'page'),//页面
...restBuilder('favorites/pages', 'favorites/pages'),//收藏页面
...restBuilder('favorites/product', 'favorites/product'),//收藏产品
...restBuilder('favorites/news', 'favorites/news'),//收藏新闻
...restBuilder('favorites/businesscard', 'favorites/businesscard'),//收藏名片
//以下为基础路由配置
builder('/', 'Home'),
builder('/home', 'Home'),
......
<template>
<div class="page">
<LayoutTable :data="tableData" :config="tableConfig">
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
......@@ -46,7 +46,7 @@
{label: "用户ID,", prop: "userId", formatter: this.formatter},
{label: "员工ID, 关联到员工表中的ID,表示这是哪个名片的收藏", prop: "staffId", formatter: this.formatter},
{label: "员工ID", prop: "staffId", formatter: this.formatter},
{label: "创建用户", prop: "createUserId", formatter: this.formatter},
{
......@@ -63,4 +63,4 @@
};
}
};
</script>
\ No newline at end of file
</script>
<template>
<div class="page">
<LayoutTable :data="tableData" :config="tableConfig">
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
......@@ -46,7 +46,7 @@
{label: "用户ID,", prop: "userId", formatter: this.formatter},
{label: "新闻ID, 关联到新闻表中的ID,表示这是哪个新闻的收藏", prop: "newsId", formatter: this.formatter},
{label: "新闻ID", prop: "newsId", formatter: this.formatter},
{label: "创建用户", prop: "createUserId", formatter: this.formatter},
{
......@@ -63,4 +63,4 @@
};
}
};
</script>
\ No newline at end of file
</script>
<template>
<div class="page">
<LayoutTable :data="tableData" :config="tableConfig">
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
......@@ -46,7 +46,7 @@
{label: "用户ID,", prop: "userId", formatter: this.formatter},
{label: "页面ID, 关联到用户表中的ID,表示哪个用户收藏了这个页面", prop: "pageId", formatter: this.formatter},
{label: "页面ID", prop: "pageId", formatter: this.formatter},
{label: "创建用户", prop: "createUserId", formatter: this.formatter},
{
......@@ -63,4 +63,4 @@
};
}
};
</script>
\ No newline at end of file
</script>
<template>
<div class="page">
<LayoutTable :data="tableData" :config="tableConfig">
<LayoutTable :data="tableData" notAdd notDel :config="tableConfig">
</LayoutTable>
......@@ -63,4 +63,4 @@
};
}
};
</script>
\ No newline at end of file
</script>
......@@ -154,28 +154,6 @@ public class StandaloneLoginController extends BaseCRUDJsonBodyMappingController
return ret.toJSONString();
}
private void generateBlackCookie(HttpServletRequest request, HttpServletResponse response, String loginName, Set<String> urls) {
try {
String cacheKey = RedisKey.KEY_MENU_CACHE + loginName;
String securityKey = GlobalSysInfo.getPropertyValue(SysConstains.PROP_COOKIE_SECURITY_KEY);
//应为Cookie会超长,所以改为仅存储key将值放入redis
//CookieService.setCookieForAuth(request, response, securityKey, null);
StringBuilder sb = new StringBuilder();
if (urls != null && urls.size() > 0) {
for (String url : urls) {
int index = url.hashCode() & (Integer.MAX_VALUE - 1);
sb.append(index).append(",");
}
}
String menuUrl = sb.toString();
menuUrl = AESUtil.encrypt(menuUrl, securityKey);
cacheService.set(cacheKey, menuUrl, 604800);
HttpUtil.setCookieValue(request, response, SysConstains.COOKIE_MENU, cacheKey, -1);
} catch (Throwable e) {
}
}
private String generateMenuUrlCode(Set<String> urls) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment