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
04314190
Commit
04314190
authored
Jun 02, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改跳转到用户详情页面接口,不用传用户id
parent
946dfa76
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/main/java/com/stylefeng/guns/modular/system/controller/UserMgrController.java
+4
-3
src/main/webapp/WEB-INF/view/common/_tab.html
+1
-1
No files found.
src/main/java/com/stylefeng/guns/modular/system/controller/UserMgrController.java
View file @
04314190
...
@@ -89,7 +89,7 @@ public class UserMgrController extends BaseController {
...
@@ -89,7 +89,7 @@ public class UserMgrController extends BaseController {
}
}
/**
/**
* 跳转到
查看管理员列表的
页面
* 跳转到
编辑管理员
页面
*/
*/
@RequestMapping
(
"/user_edit/{userId}"
)
@RequestMapping
(
"/user_edit/{userId}"
)
public
String
userEdit
(
@PathVariable
Integer
userId
,
Model
model
)
{
public
String
userEdit
(
@PathVariable
Integer
userId
,
Model
model
)
{
...
@@ -107,8 +107,9 @@ public class UserMgrController extends BaseController {
...
@@ -107,8 +107,9 @@ public class UserMgrController extends BaseController {
/**
/**
* 跳转到查看用户详情页面
* 跳转到查看用户详情页面
*/
*/
@RequestMapping
(
"/user_info/{userId}"
)
@RequestMapping
(
"/user_info"
)
public
String
userInfo
(
@PathVariable
Integer
userId
,
Model
model
)
{
public
String
userInfo
(
Model
model
)
{
Integer
userId
=
ShiroKit
.
getUser
().
getId
();
if
(
ToolUtil
.
isEmpty
(
userId
))
{
if
(
ToolUtil
.
isEmpty
(
userId
))
{
throw
new
BussinessException
(
BizExceptionEnum
.
REQUEST_NULL
);
throw
new
BussinessException
(
BizExceptionEnum
.
REQUEST_NULL
);
}
}
...
...
src/main/webapp/WEB-INF/view/common/_tab.html
View file @
04314190
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</span>
</span>
</a>
</a>
<ul
class=
"dropdown-menu animated fadeInRight m-t-xs"
>
<ul
class=
"dropdown-menu animated fadeInRight m-t-xs"
>
<li><a
class=
"J_menuItem"
href=
"${ctxPath}/mgr/user_info
/${shiro.getUser().id}
"
>
个人资料
</a></li>
<li><a
class=
"J_menuItem"
href=
"${ctxPath}/mgr/user_info"
>
个人资料
</a></li>
<li><a
class=
"J_menuItem"
href=
"${ctxPath}/mgr/user_chpwd"
>
修改密码
</a></li>
<li><a
class=
"J_menuItem"
href=
"${ctxPath}/mgr/user_chpwd"
>
修改密码
</a></li>
<li
class=
"divider"
></li>
<li
class=
"divider"
></li>
<li><a
href=
"${ctxPath}/logout"
>
安全退出
</a>
<li><a
href=
"${ctxPath}/logout"
>
安全退出
</a>
...
...
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