diff --git a/src/main/java/com/nis/web/controller/sys/UserController.java b/src/main/java/com/nis/web/controller/sys/UserController.java index 7017eba3d..198b828f5 100644 --- a/src/main/java/com/nis/web/controller/sys/UserController.java +++ b/src/main/java/com/nis/web/controller/sys/UserController.java @@ -179,6 +179,9 @@ public class UserController extends BaseController{ @RequiresPermissions("sys:user:view") @RequestMapping(value = {"list"}) public String list(SysUser user, HttpServletRequest request, HttpServletResponse response, Model model) { + if(UserUtils.getUser().getIdentity().equals(0)){ + user.setIdentity(0); + } Page page = userService.findUser(new Page(request, response), user); model.addAttribute("page", page); return "/sys/userList"; diff --git a/src/main/java/com/nis/web/dao/UserDao.xml b/src/main/java/com/nis/web/dao/UserDao.xml index 8e573947c..c067e91e0 100644 --- a/src/main/java/com/nis/web/dao/UserDao.xml +++ b/src/main/java/com/nis/web/dao/UserDao.xml @@ -292,7 +292,9 @@ AND u.login_id=#{loginId} - + + AND u.identity=#{identity} + AND u.name like diff --git a/src/main/webapp/WEB-INF/views/sys/roleForm.jsp b/src/main/webapp/WEB-INF/views/sys/roleForm.jsp index db80533f5..c90fc107d 100644 --- a/src/main/webapp/WEB-INF/views/sys/roleForm.jsp +++ b/src/main/webapp/WEB-INF/views/sys/roleForm.jsp @@ -106,23 +106,30 @@ * - - <%--
- -
- - - 工作流组用户组类型(security-role:管理员、assignment:可进行任务分配、user:普通用户) - - - - - - - -
-
- --%> + + + + +
+ +
+ + + <%-- --%> + + + + <%-- + --%> +
+
+
+ + + +
diff --git a/src/main/webapp/WEB-INF/views/sys/roleList.jsp b/src/main/webapp/WEB-INF/views/sys/roleList.jsp index d67d657fc..8830ee575 100644 --- a/src/main/webapp/WEB-INF/views/sys/roleList.jsp +++ b/src/main/webapp/WEB-INF/views/sys/roleList.jsp @@ -40,18 +40,36 @@ - + + + + + + + + + + + - - - - - - + + + + + + + + + + +
${role.name}${fns:getDictLabel('SYS_DATA_SCOPE',role.dataScope,'无')}${fns:abbr(role.remark,30)} - <%-- --%> - - ', this.href)"> -
${role.name}${fns:getDictLabel('SYS_DATA_SCOPE',role.dataScope,'无')}${fns:abbr(role.remark,30)} + + + + <%-- --%> + + ', this.href)"> +
diff --git a/src/main/webapp/WEB-INF/views/sys/userForm.jsp b/src/main/webapp/WEB-INF/views/sys/userForm.jsp index 31db4a48c..84a264131 100644 --- a/src/main/webapp/WEB-INF/views/sys/userForm.jsp +++ b/src/main/webapp/WEB-INF/views/sys/userForm.jsp @@ -12,12 +12,12 @@ $("#inputForm").validate({ rules: { loginId: {remote: "${ctx}/sys/user/checkLoginName?oldLoginId=" + encodeURIComponent('${user.loginId}')}, - // 'office.name': {officeIsValid: true }, + 'office.name': {officeIsValid: true }, 'entity.name': {required: true } }, messages: { loginId: {remote: ""}, - // 'office.name': {officeIsValid: ""}, + 'office.name': {officeIsValid: ""}, confirmNewPassword: {equalTo: ""} }, submitHandler: function(form){ @@ -121,18 +121,18 @@
* - + - <%--
- +
+
+ title="company" url="/sys/office/treeData" cssClass="required form-control" notAllowSelectRoot="true"/>
-
+ <%--
*
- - <%--
- -
- - - - - -
- -
--%> + + +
+ +
+ + + + + +
+ +
+
+ + + +
<%--
@@ -201,10 +207,12 @@
- + + + * @@ -229,7 +237,9 @@
+ +
diff --git a/src/main/webapp/WEB-INF/views/sys/userList.jsp b/src/main/webapp/WEB-INF/views/sys/userList.jsp index 8473ff2d7..987273a67 100644 --- a/src/main/webapp/WEB-INF/views/sys/userList.jsp +++ b/src/main/webapp/WEB-INF/views/sys/userList.jsp @@ -119,11 +119,14 @@ class="table table-striped table-bordered table-condensed"> - <%-- - --%> + + <%-- --%> - <%-- --%> + + + + <%-- --%> <%--角色 --%> @@ -135,14 +138,26 @@ + ${user.loginId} ${user.name} + ${user.company.name } + + + + + + - ', this.href)"> + + + ', this.href)"> + +