From 99f5fe5580f67bb8fec56d719c3b03dcb08608c6 Mon Sep 17 00:00:00 2001 From: li_oxen Date: Sat, 21 Mar 2020 12:20:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=20=E4=BF=AE=E6=AD=A3=20=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E5=9B=BE=E7=89=87=E9=A2=84=E8=A7=88=E8=87=AA=E9=80=82?= =?UTF-8?q?=E5=BA=94=E5=A4=A7=E5=B0=8F=20=E4=BF=AE=E6=AD=A3=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=94=A8=E6=88=B7=E6=97=B6=EF=BC=8C=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E4=BC=9A=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=A5=E6=B5=8F?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E8=AE=B0=E4=BD=8F=E7=9A=84=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8D=E5=92=8C=E5=AF=86=E7=A0=81=20=E4=BF=AE=E6=AD=A3=20?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E5=88=A0=E9=99=A4=E5=90=8E=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=9A=E6=8F=90=E7=A4=BA=E5=B7=B2=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=20=E5=AE=8C=E5=96=84=20=E5=88=A0=E9=99=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=BB=9F=E4=B8=80=E4=BF=AE=E6=94=B9=E4=B8=BA=20?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=88=A0=E9=99=A4=20=E5=AE=8C=E5=96=84=20?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E4=BB=A3=E7=A0=81=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../main/resources/ehcache/ehcache-shiro.xml | 15 +++++++------- .../src/main/resources/static/css/style.css | 4 ---- .../main/resources/static/ruoyi/js/ry-ui.js | 10 ++++++++-- .../src/main/resources/static/ruoyi/login.js | 2 +- .../src/main/resources/templates/include.html | 1 + .../src/main/resources/templates/index.html | 20 +++++++++---------- .../resources/templates/system/dept/dept.html | 2 +- .../templates/system/dict/type/type.html | 5 ++++- .../resources/templates/system/user/add.html | 4 ++-- .../ruoyi/common/constant/ShiroConstants.java | 8 ++++---- .../common/utils/file/FileUploadUtils.java | 2 +- .../ruoyi/common/utils/html/EscapeUtil.java | 12 ----------- .../framework/aspectj/DataScopeAspect.java | 3 ++- .../interceptor/RepeatSubmitInterceptor.java | 2 +- .../shiro/service/SysPasswordService.java | 2 +- .../shiro/session/OnlineSessionDAO.java | 4 ++-- .../framework/web/service/ConfigService.java | 2 +- .../main/resources/vm/html/list-tree.html.vm | 8 ++++---- .../src/main/resources/vm/html/list.html.vm | 12 +++++------ .../com/ruoyi/quartz/util/JobInvokeUtil.java | 2 +- .../java/com/ruoyi/system/domain/SysRole.java | 1 + .../java/com/ruoyi/system/domain/SysUser.java | 1 + .../service/impl/SysUserServiceImpl.java | 2 +- .../resources/mapper/system/SysDeptMapper.xml | 5 +++-- .../resources/mapper/system/SysMenuMapper.xml | 4 ++-- .../resources/mapper/system/SysUserMapper.xml | 14 ++++++------- 27 files changed, 74 insertions(+), 75 deletions(-) diff --git a/pom.xml b/pom.xml index 1215ce5d3..288014163 100644 --- a/pom.xml +++ b/pom.xml @@ -67,7 +67,7 @@ ${shiro.version} - + org.apache.shiro shiro-spring diff --git a/ruoyi-admin/src/main/resources/ehcache/ehcache-shiro.xml b/ruoyi-admin/src/main/resources/ehcache/ehcache-shiro.xml index 72469e13a..20ac1121b 100644 --- a/ruoyi-admin/src/main/resources/ehcache/ehcache-shiro.xml +++ b/ruoyi-admin/src/main/resources/ehcache/ehcache-shiro.xml @@ -4,14 +4,15 @@ - - - - - - + + + + + + - + + .row>div { margin-bottom: 15px; diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index ed1376ca2..b80d84d32 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -215,9 +215,15 @@ var table = { $(optionsIds).off("click").on("click", '.img-circle', function() { var src = $(this).attr('src'); var target = $(this).data('target'); - var height = $(this).data('height'); - var width = $(this).data('width'); if($.common.equals("self", target)) { + var height = $(this).data('height'); + var width = $(this).data('width'); + //如果是移动端,就使用自适应大小弹窗 + if ($.common.isMobile()) { + width = 'auto'; + height = 'auto'; + } + layer.open({ title: false, type: 1, diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/login.js b/ruoyi-admin/src/main/resources/static/ruoyi/login.js index f633f51de..4acf33810 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/login.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/login.js @@ -26,7 +26,7 @@ function login() { data: { "username": username, "password": password, - "validateCode" : validateCode, + "validateCode": validateCode, "rememberMe": rememberMe }, success: function(r) { diff --git a/ruoyi-admin/src/main/resources/templates/include.html b/ruoyi-admin/src/main/resources/templates/include.html index c67f0b7f5..733acd174 100644 --- a/ruoyi-admin/src/main/resources/templates/include.html +++ b/ruoyi-admin/src/main/resources/templates/include.html @@ -2,6 +2,7 @@ + diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index 64b70b6f8..e61f0726c 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -5,9 +5,8 @@ 若依系统首页 - + + @@ -34,7 +33,7 @@