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
32c257e2
Commit
32c257e2
authored
Jun 18, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新文案和角色跳转
parent
fedda45c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
guns-base-db-container/src/main/java/cn/stylefeng/guns/dbcontainer/core/dao/DataBaseInfoDao.java
+1
-1
guns-sys/src/main/webapp/assets/modular/system/role/role.js
+5
-13
No files found.
guns-base-db-container/src/main/java/cn/stylefeng/guns/dbcontainer/core/dao/DataBaseInfoDao.java
View file @
32c257e2
...
...
@@ -110,7 +110,7 @@ public class DataBaseInfoDao {
PreparedStatement
preparedStatement
=
conn
.
prepareStatement
(
MYSQL_DELETE_SQL
);
preparedStatement
.
setString
(
1
,
MASTER_DATASOURCE_NAME
);
int
i
=
preparedStatement
.
executeUpdate
();
log
.
info
(
"
初始化master的databaseInfo信息!初始化
"
+
i
+
"条!"
);
log
.
info
(
"
删除master的databaseInfo信息!删除
"
+
i
+
"条!"
);
}
catch
(
Exception
ex
)
{
throw
new
DataSourceInitException
(
DataSourceInitException
.
ExEnum
.
QUERY_DATASOURCE_INFO_ERROR
);
}
...
...
guns-sys/src/main/webapp/assets/modular/system/role/role.js
View file @
32c257e2
...
...
@@ -23,9 +23,9 @@ layui.use(['layer', 'form', 'table', 'admin', 'ax'], function () {
return
[[
{
type
:
'checkbox'
},
{
field
:
'roleId'
,
hide
:
true
,
sort
:
true
,
title
:
'角色id'
},
{
field
:
'name'
,
align
:
"center"
,
sort
:
true
,
title
:
'名称'
},
{
field
:
'pName'
,
align
:
"center"
,
sort
:
true
,
title
:
'上级角色'
},
{
field
:
'description'
,
align
:
"center"
,
sort
:
true
,
title
:
'别名'
},
{
field
:
'name'
,
align
:
"center"
,
sort
:
true
,
title
:
'名称'
},
{
field
:
'pName'
,
align
:
"center"
,
sort
:
true
,
title
:
'上级角色'
},
{
field
:
'description'
,
align
:
"center"
,
sort
:
true
,
title
:
'别名'
},
{
align
:
'center'
,
toolbar
:
'#tableBar'
,
title
:
'操作'
,
minWidth
:
200
}
]];
};
...
...
@@ -74,15 +74,7 @@ layui.use(['layer', 'form', 'table', 'admin', 'ax'], function () {
* @param data 点击按钮时候的行数据
*/
Role
.
onEditRole
=
function
(
data
)
{
admin
.
putTempData
(
'formOk'
,
false
);
top
.
layui
.
admin
.
open
({
type
:
2
,
title
:
'修改角色'
,
content
:
Feng
.
ctxPath
+
'/role/role_edit?roleId='
+
data
.
roleId
,
end
:
function
()
{
admin
.
getTempData
(
'formOk'
)
&&
table
.
reload
(
Role
.
tableId
);
}
});
window
.
location
.
href
=
Feng
.
ctxPath
+
"/role/role_edit?roleId="
+
data
.
roleId
;
};
/**
...
...
@@ -140,7 +132,7 @@ layui.use(['layer', 'form', 'table', 'admin', 'ax'], function () {
// 添加按钮点击事件
$
(
'#btnAdd'
).
click
(
function
()
{
Role
.
openAddRole
()
;
window
.
location
.
href
=
Feng
.
ctxPath
+
"/role/role_add"
;
});
// 导出excel
...
...
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