Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fenghuo12
zheng
提交
4e651882
Z
zheng
项目概览
fenghuo12
/
zheng
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zheng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4e651882
编写于
2月 12, 2017
作者:
shuzheng5201314
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
根据权限动态显示菜单
上级
ec48258c
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
21 addition
and
9 deletion
+21
-9
project-datamodel/zheng.sql
project-datamodel/zheng.sql
+18
-4
zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/index.jsp
...-upms-server/src/main/webapp/WEB-INF/jsp/manage/index.jsp
+3
-5
未找到文件。
project-datamodel/zheng.sql
浏览文件 @
4e651882
...
...
@@ -10,7 +10,7 @@ Target Server Type : MYSQL
Target Server Version : 50621
File Encoding : 65001
Date: 2017-02-12 0
1:56:12
Date: 2017-02-12 0
2:26:36
*/
SET
FOREIGN_KEY_CHECKS
=
0
;
...
...
@@ -436,7 +436,7 @@ CREATE TABLE `upms_permission` (
PRIMARY
KEY
(
`permission_id`
),
KEY
`FK_Reference_29`
(
`system_id`
),
CONSTRAINT
`FK_Reference_29`
FOREIGN
KEY
(
`system_id`
)
REFERENCES
`upms_system`
(
`system_id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
17
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'权限'
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
24
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'权限'
;
-- ----------------------------
-- Records of upms_permission
...
...
@@ -448,7 +448,7 @@ INSERT INTO `upms_permission` VALUES ('4', '1', null, '用户角色管理', '1',
INSERT
INTO
`upms_permission`
VALUES
(
'5'
,
'1'
,
'4'
,
'用户管理'
,
'1'
,
'upms:user:read'
,
'/user/index'
,
''
,
'1'
,
'5'
,
'5'
);
INSERT
INTO
`upms_permission`
VALUES
(
'6'
,
'1'
,
'4'
,
'角色管理'
,
'1'
,
'upms:role:read'
,
'/role/index'
,
''
,
'1'
,
'6'
,
'6'
);
INSERT
INTO
`upms_permission`
VALUES
(
'7'
,
'1'
,
null
,
'权限资源管理'
,
'1'
,
''
,
''
,
'zmdi zmdi-lock-outline'
,
'1'
,
'7'
,
'7'
);
INSERT
INTO
`upms_permission`
VALUES
(
'8'
,
'1'
,
'7'
,
'
权限管理'
,
'1'
,
'upms:permission:read'
,
'/permission/index
'
,
''
,
'1'
,
'8'
,
'8'
);
INSERT
INTO
`upms_permission`
VALUES
(
'8'
,
'1'
,
'7'
,
'
菜单管理'
,
'1'
,
'upms:permission:read'
,
'/permission/menu
'
,
''
,
'1'
,
'8'
,
'8'
);
INSERT
INTO
`upms_permission`
VALUES
(
'9'
,
'1'
,
null
,
'权限分配管理'
,
'1'
,
''
,
''
,
'zmdi zmdi-key'
,
'1'
,
'9'
,
'9'
);
INSERT
INTO
`upms_permission`
VALUES
(
'10'
,
'1'
,
'9'
,
'角色授权'
,
'1'
,
'upms:role_permission:read'
,
'/role_permission/index'
,
''
,
'1'
,
'10'
,
'10'
);
INSERT
INTO
`upms_permission`
VALUES
(
'11'
,
'1'
,
'9'
,
'用户授权'
,
'1'
,
'upms:user_permission:read'
,
'/user_permission/index'
,
''
,
'1'
,
'11'
,
'11'
);
...
...
@@ -457,6 +457,13 @@ INSERT INTO `upms_permission` VALUES ('13', '1', '12', '公共码表', '1', 'upm
INSERT
INTO
`upms_permission`
VALUES
(
'14'
,
'1'
,
'12'
,
'会话管理'
,
'1'
,
'upms:session:read'
,
'/session/index'
,
''
,
'1'
,
'14'
,
'14'
);
INSERT
INTO
`upms_permission`
VALUES
(
'15'
,
'1'
,
'12'
,
'日志记录'
,
'1'
,
'upms:log:read'
,
'/log/index'
,
''
,
'1'
,
'15'
,
'15'
);
INSERT
INTO
`upms_permission`
VALUES
(
'16'
,
'1'
,
'12'
,
'键值设置'
,
'1'
,
'upms:map:read'
,
'/map/index'
,
''
,
'1'
,
'16'
,
'16'
);
INSERT
INTO
`upms_permission`
VALUES
(
'17'
,
'2'
,
null
,
'标签类目管理'
,
'1'
,
null
,
null
,
null
,
'1'
,
'17'
,
'17'
);
INSERT
INTO
`upms_permission`
VALUES
(
'18'
,
'2'
,
'17'
,
'标签管理'
,
'1'
,
'cms:tag:read'
,
'/tag/index'
,
null
,
'1'
,
'18'
,
'18'
);
INSERT
INTO
`upms_permission`
VALUES
(
'19'
,
'2'
,
'17'
,
'类目管理'
,
'1'
,
'cms:category:read'
,
'/category/index'
,
null
,
'1'
,
'19'
,
'19'
);
INSERT
INTO
`upms_permission`
VALUES
(
'20'
,
'2'
,
null
,
'文章内容管理'
,
'1'
,
null
,
null
,
null
,
'1'
,
'20'
,
'20'
);
INSERT
INTO
`upms_permission`
VALUES
(
'21'
,
'2'
,
'20'
,
'文章管理'
,
'1'
,
'cms:article:read'
,
'/article/index'
,
null
,
'1'
,
'21'
,
'21'
);
INSERT
INTO
`upms_permission`
VALUES
(
'22'
,
'2'
,
'20'
,
'回收管理'
,
'1'
,
'cms:article:read'
,
'/article/recycle'
,
null
,
'1'
,
'22'
,
'22'
);
INSERT
INTO
`upms_permission`
VALUES
(
'23'
,
'1'
,
'7'
,
'按钮管理'
,
'1'
,
'upms:permission:read'
,
'/permission/button'
,
null
,
'1'
,
'24'
,
'24'
);
-- ----------------------------
-- Table structure for upms_role
...
...
@@ -487,7 +494,7 @@ CREATE TABLE `upms_role_permission` (
PRIMARY
KEY
(
`role_permission_id`
),
KEY
`FK_Reference_22`
(
`permission_id`
),
CONSTRAINT
`FK_Reference_22`
FOREIGN
KEY
(
`permission_id`
)
REFERENCES
`upms_permission`
(
`permission_id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
17
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'角色权限关联表'
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
24
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'角色权限关联表'
;
-- ----------------------------
-- Records of upms_role_permission
...
...
@@ -508,6 +515,13 @@ INSERT INTO `upms_role_permission` VALUES ('13', '1', '13');
INSERT
INTO
`upms_role_permission`
VALUES
(
'14'
,
'1'
,
'14'
);
INSERT
INTO
`upms_role_permission`
VALUES
(
'15'
,
'1'
,
'15'
);
INSERT
INTO
`upms_role_permission`
VALUES
(
'16'
,
'1'
,
'16'
);
INSERT
INTO
`upms_role_permission`
VALUES
(
'17'
,
'1'
,
'17'
);
INSERT
INTO
`upms_role_permission`
VALUES
(
'18'
,
'1'
,
'18'
);
INSERT
INTO
`upms_role_permission`
VALUES
(
'19'
,
'1'
,
'19'
);
INSERT
INTO
`upms_role_permission`
VALUES
(
'20'
,
'1'
,
'20'
);
INSERT
INTO
`upms_role_permission`
VALUES
(
'21'
,
'1'
,
'21'
);
INSERT
INTO
`upms_role_permission`
VALUES
(
'22'
,
'1'
,
'22'
);
INSERT
INTO
`upms_role_permission`
VALUES
(
'23'
,
'1'
,
'23'
);
-- ----------------------------
-- Table structure for upms_system
...
...
zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/index.jsp
浏览文件 @
4e651882
...
...
@@ -128,12 +128,11 @@
<!-- 菜单区 -->
<ul
class=
"main-menu"
>
<li>
<a
class=
"waves-effect"
href=
"javascript:Tab.addTab('首页', 'home');"
><i
class=
"zmdi zmdi-home"
></i>
首页
</a>
<a
class=
"waves-effect"
href=
"javascript:Tab.addTab('首页', 'home');"
><i
class=
"zmdi zmdi-home"
></i>
首页
2
</a>
</li>
<c:forEach
var=
"upmsSystem"
items=
"
${
upmsSystems
}
"
varStatus=
"status"
>
<c:forEach
var=
"upmsPermission"
items=
"
${
upmsPermissions
}
"
>
<c:forEach
var=
"upmsPermission"
items=
"
${
upmsPermissions
}
"
varStatus=
"status"
>
<c:if
test=
"
${
upmsPermission
.
pid
==
null
}
"
>
<li
class=
"sub-menu system_menus system_${upms
System.systemId}"
<c:if
test=
"
${
status
.
index
!=
0
}
"
>
style=
"display:none;"
</c:if>>
<li
class=
"sub-menu system_menus system_${upms
Permission.systemId} ${status.index}"
<c:if
test=
"
${
upmsPermission
.
systemId
!=
1
}
"
>
style=
"display:none;"
</c:if>>
<a
class=
"waves-effect"
href=
"javascript:;"
><i
class=
"${upmsPermission.icon}"
></i>
${upmsPermission.name}
</a>
<ul>
<c:forEach
var=
"subUpmsPermission"
items=
"
${
upmsPermissions
}
"
>
...
...
@@ -145,7 +144,6 @@
</li>
</c:if>
</c:forEach>
</c:forEach>
<li>
<div
class=
"upms-version"
>
©
ZHENG-UPMS V1.0.0
</div>
</li>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录