Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
foc_manage
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
首航-临时账号
foc_manage
Commits
c0032799
Commit
c0032799
authored
Sep 24, 2020
by
java-李谡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色分配人员选择显示登陆账号
parent
a06ded9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
selectUserToRole.jsp
WebContent/WEB-INF/views/modules/sys/selectUserToRole.jsp
+6
-4
RoleController.java
src/com/ejweb/modules/sys/web/RoleController.java
+17
-19
No files found.
WebContent/WEB-INF/views/modules/sys/selectUserToRole.jsp
View file @
c0032799
...
@@ -36,10 +36,12 @@
...
@@ -36,10 +36,12 @@
var
selectedNodes
=
[
var
selectedNodes
=
[
<
c
:
forEach
items
=
"${userList}"
var
=
"user"
>
<
c
:
forEach
items
=
"${userList}"
var
=
"user"
>
{
id
:
"${user.id}"
,
{
pId
:
"0"
,
id
:
"${user.id}"
,
name
:
"<font color='red' style='font-weight:bold;'>${user.name}</font>"
},
pId
:
"0"
,
<
/c:forEach>]
;
name
:
"<font color='red' style='font-weight:bold;'>${user.name}(${user.loginName})</font>"
},
<
/c:forEach>]
;
var
pre_ids
=
"${selectIds}"
.
split
(
","
);
var
pre_ids
=
"${selectIds}"
.
split
(
","
);
var
ids
=
"${selectIds}"
.
split
(
","
);
var
ids
=
"${selectIds}"
.
split
(
","
);
...
...
src/com/ejweb/modules/sys/web/RoleController.java
View file @
c0032799
...
@@ -3,34 +3,32 @@
...
@@ -3,34 +3,32 @@
*/
*/
package
com
.
ejweb
.
modules
.
sys
.
web
;
package
com
.
ejweb
.
modules
.
sys
.
web
;
import
java.util.List
;
import
com.ejweb.core.base.BaseController
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletResponse
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.servlet.mvc.support.RedirectAttributes
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.ejweb.core.conf.GConstants
;
import
com.ejweb.core.conf.GConstants
;
import
com.ejweb.core.persistence.Page
;
import
com.ejweb.core.persistence.Page
;
import
com.ejweb.core.utils.Collections3
;
import
com.ejweb.core.utils.Collections3
;
import
com.ejweb.core.utils.StringUtils
;
import
com.ejweb.core.utils.StringUtils
;
import
com.ejweb.core.base.BaseController
;
import
com.ejweb.modules.sys.entity.Office
;
import
com.ejweb.modules.sys.entity.Office
;
import
com.ejweb.modules.sys.entity.Role
;
import
com.ejweb.modules.sys.entity.Role
;
import
com.ejweb.modules.sys.entity.User
;
import
com.ejweb.modules.sys.entity.User
;
import
com.ejweb.modules.sys.service.OfficeService
;
import
com.ejweb.modules.sys.service.OfficeService
;
import
com.ejweb.modules.sys.service.SystemService
;
import
com.ejweb.modules.sys.service.SystemService
;
import
com.ejweb.modules.sys.utils.UserUtils
;
import
com.ejweb.modules.sys.utils.UserUtils
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.web.bind.annotation.ModelAttribute
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.servlet.mvc.support.RedirectAttributes
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 角色Controller
* 角色Controller
...
@@ -173,7 +171,7 @@ public class RoleController extends BaseController {
...
@@ -173,7 +171,7 @@ public class RoleController extends BaseController {
Map
<
String
,
Object
>
map
=
Maps
.
newHashMap
();
Map
<
String
,
Object
>
map
=
Maps
.
newHashMap
();
map
.
put
(
"id"
,
e
.
getId
());
map
.
put
(
"id"
,
e
.
getId
());
map
.
put
(
"pId"
,
0
);
map
.
put
(
"pId"
,
0
);
map
.
put
(
"name"
,
e
.
getName
());
map
.
put
(
"name"
,
e
.
getName
()
+
"("
+
e
.
getLoginName
()
+
")"
);
mapList
.
add
(
map
);
mapList
.
add
(
map
);
}
}
return
mapList
;
return
mapList
;
...
...
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