Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
547cc437
Commit
547cc437
authored
Mar 27, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新sql和字典的权限控制
parent
6bbfc91c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
sql/guns.sql
+5
-12
src/main/webapp/pages/modular/system/dictType/dictType.html
+7
-0
No files found.
sql/guns.sql
View file @
547cc437
...
...
@@ -16,7 +16,7 @@ USE guns;
Target Server Version : 50724
File Encoding : 65001
Date: 27/03/2019 11:
23:1
5
Date: 27/03/2019 11:
30:3
5
*/
SET
NAMES
utf8mb4
;
...
...
@@ -153,7 +153,7 @@ CREATE TABLE `sys_login_log` (
`MESSAGE`
text
COMMENT
'具体消息'
,
`IP_ADDRESS`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'登录ip'
,
PRIMARY
KEY
(
`LOGIN_LOG_ID`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
11107
39921548632067
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'登录记录'
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
11107
44512302469122
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'登录记录'
;
-- ----------------------------
-- Table structure for sys_menu
...
...
@@ -212,9 +212,9 @@ INSERT INTO `sys_menu` VALUES (134, 'log_clean', 'log', '[0],[system],[log],', '
INSERT
INTO
`sys_menu`
VALUES
(
135
,
'dept_add'
,
'dept'
,
'[0],[system],[dept],'
,
'添加部门'
,
NULL
,
'/dept/add'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
136
,
'dept_update'
,
'dept'
,
'[0],[system],[dept],'
,
'修改部门'
,
NULL
,
'/dept/update'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
137
,
'dept_delete'
,
'dept'
,
'[0],[system],[dept],'
,
'删除部门'
,
NULL
,
'/dept/delete'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
138
,
'dict_add'
,
'dict'
,
'[0],[system],[dict],'
,
'添加字典'
,
NULL
,
'/dict
/add
'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
139
,
'dict_update'
,
'dict'
,
'[0],[system],[dict],'
,
'修改字典'
,
NULL
,
'/dict
/update
'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
140
,
'dict_delete'
,
'dict'
,
'[0],[system],[dict],'
,
'删除字典'
,
NULL
,
'/dict/delete'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
138
,
'dict_add'
,
'dict'
,
'[0],[system],[dict],'
,
'添加字典'
,
NULL
,
'/dict
Type/addItem
'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
139
,
'dict_update'
,
'dict'
,
'[0],[system],[dict],'
,
'修改字典'
,
NULL
,
'/dict
Type/editItem
'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
140
,
'dict_delete'
,
'dict'
,
'[0],[system],[dict],'
,
'删除字典'
,
NULL
,
'/dict
Type
/delete'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
141
,
'notice'
,
'system'
,
'[0],[system],'
,
'通知管理'
,
NULL
,
'/notice'
,
9
,
2
,
'Y'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
142
,
'notice_add'
,
'notice'
,
'[0],[system],[notice],'
,
'添加通知'
,
NULL
,
'/notice/add'
,
1
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`sys_menu`
VALUES
(
143
,
'notice_update'
,
'notice'
,
'[0],[system],[notice],'
,
'修改通知'
,
NULL
,
'/notice/update'
,
2
,
3
,
'N'
,
NULL
,
'ENABLE'
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
@@ -284,13 +284,6 @@ CREATE TABLE `sys_operation_log` (
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1110744016892223490
DEFAULT
CHARSET
=
utf8
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'操作日志'
;
-- ----------------------------
-- Records of sys_operation_log
-- ----------------------------
BEGIN
;
INSERT
INTO
`sys_operation_log`
VALUES
(
1110744016892223489
,
'业务日志'
,
'清空业务日志'
,
1
,
'cn.stylefeng.guns.modular.system.controller.LogController'
,
'delLog'
,
'2019-03-27 11:23:05'
,
'成功'
,
'主键id=null'
);
COMMIT
;
-- ----------------------------
-- Table structure for sys_relation
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_relation`
;
...
...
src/main/webapp/pages/modular/system/dictType/dictType.html
View file @
547cc437
...
...
@@ -30,7 +30,9 @@
</div>
<div
class=
"layui-inline"
>
<button
id=
"btnSearch"
class=
"layui-btn icon-btn"
><i
class=
"layui-icon"
>

</i>
搜索
</button>
@if(shiro.hasPermission("/dictType/addItem")){
<button
id=
"btnAdd"
class=
"layui-btn icon-btn"
><i
class=
"layui-icon"
>

</i>
添加类型
</button>
@}
</div>
</div>
</div>
...
...
@@ -42,8 +44,12 @@
</div>
<script
type=
"text/html"
id=
"tableBar"
>
@
if
(
shiro
.
hasPermission
(
"/dictType/editItem"
)){
<
a
class
=
"layui-btn layui-btn-primary layui-btn-xs"
lay
-
event
=
"edit"
>
修改
<
/a
>
@}
@
if
(
shiro
.
hasPermission
(
"/dictType/delete"
)){
<
a
class
=
"layui-btn layui-btn-danger layui-btn-xs"
lay
-
event
=
"delete"
>
删除
<
/a
>
@}
</script>
@}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment