From c59e45b996a1de02b6d3472c989c1207b6df2cae Mon Sep 17 00:00:00 2001 From: zhangwei Date: Mon, 15 Oct 2018 15:41:01 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E7=94=A8=E6=88=B7=E8=BA=AB=E4=BB=BD=E6=A0=87?= =?UTF-8?q?=E8=AF=86=E5=AD=97=E6=AE=B5=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=99=AE?= =?UTF-8?q?=E9=80=9A=E7=94=A8=E6=88=B7=E4=B8=8D=E8=83=BD=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E3=80=81=E6=96=B0=E5=BB=BA=E3=80=81=E4=BF=AE=E6=94=B9=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E7=94=A8=E6=88=B7=EF=BC=9B=202=E3=80=81?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86=E6=81=A2=E5=A4=8D=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E6=99=AE=E9=80=9A=E7=94=A8=E6=88=B7=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E3=80=81=E6=96=B0=E5=BB=BA=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=AE=A1=E7=90=86=E5=91=98=E7=B1=BB=E5=9E=8B=E7=9A=84?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangwei --- .../web/controller/sys/UserController.java | 3 + src/main/java/com/nis/web/dao/UserDao.xml | 4 +- .../webapp/WEB-INF/views/sys/roleForm.jsp | 41 ++++++++------ .../webapp/WEB-INF/views/sys/roleList.jsp | 40 +++++++++---- .../webapp/WEB-INF/views/sys/userForm.jsp | 56 +++++++++++-------- .../webapp/WEB-INF/views/sys/userList.jsp | 27 +++++++-- 6 files changed, 113 insertions(+), 58 deletions(-) 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)"> + +