userRoles = userService.selectUserRoleByUserId(userId);
+ mmap.put("user", user);
+ mmap.put("userRoles", userRoles);
+ return prefix + "/authRole";
+ }
+
+ /**
+ * 用户授权角色
+ */
+ @RequiresPermissions("system:user:add")
+ @Log(title = "用户管理", businessType = BusinessType.GRANT)
+ @PostMapping("/authRole/insertAuthRole")
+ @ResponseBody
+ public AjaxResult insertAuthRole(Long userId, Long[] roleIds)
+ {
+ userService.insertUserAuth(userId, roleIds);
+ return success();
+ }
+
@RequiresPermissions("system:user:remove")
@Log(title = "用户管理", businessType = BusinessType.DELETE)
@PostMapping("/remove")
diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml
index 26361c6f..1936b745 100644
--- a/ruoyi-admin/src/main/resources/application.yml
+++ b/ruoyi-admin/src/main/resources/application.yml
@@ -3,7 +3,7 @@ ruoyi:
# 名称
name: RuoYi
# 版本
- version: 4.1.0
+ version: 4.2.0
# 版权年份
copyrightYear: 2019
# 实例演示开关
diff --git a/ruoyi-admin/src/main/resources/static/i18n/messages.properties b/ruoyi-admin/src/main/resources/static/i18n/messages.properties
index ef2a3e4b..5e03cdf0 100644
--- a/ruoyi-admin/src/main/resources/static/i18n/messages.properties
+++ b/ruoyi-admin/src/main/resources/static/i18n/messages.properties
@@ -18,6 +18,7 @@ user.password.not.valid=* 5-50个字符
user.email.not.valid=邮箱格式错误
user.mobile.phone.number.not.valid=手机号格式错误
user.login.success=登录成功
+user.register.success=注册成功
user.notfound=请重新登录
user.forcelogout=管理员强制退出,请重新登录
user.unknown.error=未知错误,请重新登录
diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css b/ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css
index 845cac46..7e3b06c7 100644
--- a/ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css
+++ b/ruoyi-admin/src/main/resources/static/ruoyi/css/ry-ui.css
@@ -644,7 +644,7 @@ label {
margin: 5px 15px 5px 0px;
}
-.select-list li p, .select-list li label{
+.select-list li p, .select-list li label:not(.radio-box){
float: left;
width: 65px;
margin: 5px 5px 5px 0px;
diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/index.js b/ruoyi-admin/src/main/resources/static/ruoyi/index.js
index 2ae799da..6ebd190e 100644
--- a/ruoyi-admin/src/main/resources/static/ruoyi/index.js
+++ b/ruoyi-admin/src/main/resources/static/ruoyi/index.js
@@ -13,10 +13,10 @@ $(function() {
// MetsiMenu
$('#side-menu').metisMenu();
- //固定菜单栏
+ // 固定菜单栏
$(function() {
$('.sidebar-collapse').slimScroll({
- height: '100%',
+ height: '96%',
railOpacity: 0.9,
alwaysVisible: false
});
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 ed1376ca..fd7ca161 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
@@ -359,7 +359,6 @@ var table = {
} else{
$("#" + table.options.id).bootstrapTable('refresh', params);
}
- data = {};
},
// 导出数据
exportExcel: function(formId) {
diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/login.js b/ruoyi-admin/src/main/resources/static/ruoyi/login.js
index f633f51d..4acf3381 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/static/ruoyi/register.js b/ruoyi-admin/src/main/resources/static/ruoyi/register.js
new file mode 100644
index 00000000..56c7c55a
--- /dev/null
+++ b/ruoyi-admin/src/main/resources/static/ruoyi/register.js
@@ -0,0 +1,82 @@
+
+$(function() {
+ validateRule();
+ $('.imgcode').click(function() {
+ var url = ctx + "captcha/captchaImage?type=" + captchaType + "&s=" + Math.random();
+ $(".imgcode").attr("src", url);
+ });
+});
+
+$.validator.setDefaults({
+ submitHandler: function() {
+ register();
+ }
+});
+
+function register() {
+ $.modal.loading($("#btnSubmit").data("loading"));
+ var username = $.common.trim($("input[name='username']").val());
+ var password = $.common.trim($("input[name='password']").val());
+ var validateCode = $("input[name='validateCode']").val();
+ $.ajax({
+ type: "post",
+ url: ctx + "register",
+ data: {
+ "loginName": username,
+ "password": password,
+ "validateCode": validateCode
+ },
+ success: function(r) {
+ if (r.code == 0) {
+ layer.alert("恭喜你,您的账号 " + username + " 注册成功!", {
+ icon: 1,
+ title: "系统提示"
+ },
+ function(index) {
+ //关闭弹窗
+ layer.close(index);
+ location.href = ctx + 'login';
+ });
+ } else {
+ $.modal.closeLoading();
+ $('.imgcode').click();
+ $(".code").val("");
+ $.modal.msg(r.msg);
+ }
+ }
+ });
+}
+
+function validateRule() {
+ var icon = " ";
+ $("#registerForm").validate({
+ rules: {
+ username: {
+ required: true,
+ minlength: 2
+ },
+ password: {
+ required: true,
+ minlength: 5
+ },
+ confirmPassword: {
+ required: true,
+ equalTo: "[name='password']"
+ }
+ },
+ messages: {
+ username: {
+ required: icon + "请输入您的用户名",
+ minlength: icon + "用户名不能小于2个字符"
+ },
+ password: {
+ required: icon + "请输入您的密码",
+ minlength: icon + "密码不能小于5个字符",
+ },
+ confirmPassword: {
+ required: icon + "请再次输入您的密码",
+ equalTo: icon + "两次密码输入不一致"
+ }
+ }
+ })
+}
diff --git a/ruoyi-admin/src/main/resources/templates/demo/form/summernote.html b/ruoyi-admin/src/main/resources/templates/demo/form/summernote.html
index 1222d98c..7bd0724c 100644
--- a/ruoyi-admin/src/main/resources/templates/demo/form/summernote.html
+++ b/ruoyi-admin/src/main/resources/templates/demo/form/summernote.html
@@ -17,7 +17,7 @@
若依后台管理系统
ruoyi是一个完全响应式,基于Bootstrap3.3.6最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术,她提供了诸多的强大的可以重新组合的UI组件,并集成了最新的jQuery版本(v2.1.1),当然,也集成了很多功能强大,用途广泛的就jQuery插件,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。
- 当前版本:v4.1.0
+ 当前版本:v4.2.0
免费开源
@@ -56,7 +56,7 @@
你好,若依
H+是一个完全响应式,基于Bootstrap3.3.6最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术,她提供了诸多的强大的可以重新组合的UI组件,并集成了最新的jQuery版本(v2.1.1),当然,也集成了很多功能强大,用途广泛的就jQuery插件,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。
- 当前版本:v4.1.0
+ 当前版本:v4.2.0
开源免费
diff --git a/ruoyi-admin/src/main/resources/templates/demo/table/search.html b/ruoyi-admin/src/main/resources/templates/demo/table/search.html
index efd573de..0ddb6657 100644
--- a/ruoyi-admin/src/main/resources/templates/demo/table/search.html
+++ b/ruoyi-admin/src/main/resources/templates/demo/table/search.html
@@ -97,19 +97,19 @@
-
-
商户编号:
+
-
-
订单号:
+
-
-
日期:
+
-
-
状态:
+
-
-
供货商通道:
+
-
-
来源:
+
-
-
运营商:
+
-
-
回调时间:
+
-
diff --git a/ruoyi-admin/src/main/resources/templates/error/unauth.html b/ruoyi-admin/src/main/resources/templates/error/unauth.html
index fd5f03cf..1704707d 100644
--- a/ruoyi-admin/src/main/resources/templates/error/unauth.html
+++ b/ruoyi-admin/src/main/resources/templates/error/unauth.html
@@ -15,7 +15,7 @@
对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面
-
返回主页
+
返回主页
@@ -39,10 +41,9 @@
-
-
+
+
-
diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html
index 64b70b6f..fb2280a9 100644
--- a/ruoyi-admin/src/main/resources/templates/index.html
+++ b/ruoyi-admin/src/main/resources/templates/index.html
@@ -5,9 +5,8 @@
若依系统首页
-
+
+
@@ -15,7 +14,7 @@
-
+
@@ -187,7 +186,7 @@