浏览代码

修改select2选择数量限制提示语

RuoYi 5 年之前
父节点
当前提交
fe8c142cd6

+ 1 - 1
ruoyi-admin/src/main/resources/static/ajax/libs/select2/select2.js

@@ -4614,7 +4614,7 @@ S2.define('select2/i18n/en',[],function () {
       return '载入更多结果…';
     },
     maximumSelected: function (args) {
-      var message = '最多只能选择' + args.maximum + '个项';
+      var message = '最多只能' + args.maximum + '个项';
 
       if (args.maximum != 1) {
         message += 's';

文件差异内容过多而无法显示
+ 0 - 0
ruoyi-admin/src/main/resources/static/ajax/libs/select2/select2.min.js


+ 1 - 1
ruoyi-admin/src/main/resources/templates/system/user/add.html

@@ -248,7 +248,7 @@
 
 		$(function() {
             $('#post').select2({
-                placeholder:"请选择岗位",
+                placeholder: "请选择岗位",
                 allowClear: true
             });
         })

+ 1 - 1
ruoyi-admin/src/main/resources/templates/system/user/edit.html

@@ -219,7 +219,7 @@
 
 		$(function() {
             $('#post').select2({
-                placeholder:"请选择岗位",
+                placeholder: "请选择岗位",
                 allowClear: true
             });
         })

+ 0 - 1
ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/session/OnlineSessionFactory.java

@@ -8,7 +8,6 @@ import org.apache.shiro.web.session.mgt.WebSessionContext;
 import org.springframework.stereotype.Component;
 import com.ruoyi.common.utils.IpUtils;
 import com.ruoyi.common.utils.ServletUtils;
-
 import eu.bitwalker.useragentutils.UserAgent;
 
 /**

+ 0 - 1
ruoyi-framework/src/main/java/com/ruoyi/framework/util/ShiroUtils.java

@@ -7,7 +7,6 @@ import org.apache.shiro.session.Session;
 import org.apache.shiro.subject.Subject;
 import org.apache.shiro.subject.PrincipalCollection;
 import org.apache.shiro.subject.SimplePrincipalCollection;
-
 import com.ruoyi.common.utils.StringUtils;
 import com.ruoyi.common.utils.bean.BeanUtils;
 import com.ruoyi.framework.shiro.realm.UserRealm;

部分文件因为文件数量过多而无法显示