From 477f439b7fda243350fc14ae1fa70c16718549d6 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 21 Aug 2025 14:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=BD=92=E5=B1=9E=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E6=96=B0=E5=A2=9E=E6=B8=85=E9=99=A4=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/ajax/libs/layer/theme/moon/style.css | 6 +++--- .../src/main/resources/templates/system/user/add.html | 7 +++++++ .../src/main/resources/templates/system/user/edit.html | 7 +++++++ .../src/main/resources/mapper/system/SysUserMapper.xml | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/layer/theme/moon/style.css b/ruoyi-admin/src/main/resources/static/ajax/libs/layer/theme/moon/style.css index d3a3a56e8..2a672c8a9 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/layer/theme/moon/style.css +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/layer/theme/moon/style.css @@ -119,9 +119,9 @@ body .layer-ext-moon .layui-layer-btn .layui-layer-btn1 { border-radius: 3px; } body .layer-ext-moon .layui-layer-btn .layui-layer-btn2 { - background: #f60; - color: #fff; - border: 1px solid #f60; + background: #fff; + color: #404a58; + border: 1px solid #c0c4cd; border-radius: 3px; } body .layer-ext-moon .layui-layer-btn .layui-layer-btn3 { diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index 017497763..fbe02be1d 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -232,10 +232,17 @@ var treeId = $("#treeId").val(); var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val(); var url = ctx + "system/user/selectDeptTree/" + deptId; + var btn = [' 确认', ' 清除', ' 关闭']; var options = { title: '选择部门', width: "380", url: url, + btn: btn, + btn2: function(index, layero) { + $("#treeId").val(""); + $("#treeName").val(""); + $.modal.close(index); + }, callBack: doSubmit }; $.modal.openOptions(options); diff --git a/ruoyi-admin/src/main/resources/templates/system/user/edit.html b/ruoyi-admin/src/main/resources/templates/system/user/edit.html index 74cc8d4f0..2c1627223 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/edit.html @@ -198,10 +198,17 @@ function selectDeptTree() { var deptId = $.common.isEmpty($("#treeId").val()) ? "100" : $("#treeId").val(); var url = ctx + "system/user/selectDeptTree/" + deptId; + var btn = [' 确认', ' 清除', ' 关闭']; var options = { title: '选择部门', width: "380", url: url, + btn: btn, + btn2: function(index, layero) { + $("#treeId").val(""); + $("#treeName").val(""); + $.modal.close(index); + }, callBack: doSubmit }; $.modal.openOptions(options); diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index e3935f320..00afe256b 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -173,7 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update sys_user - dept_id = #{deptId}, + dept_id = #{deptId}, user_name = #{userName}, user_type = #{userType}, email = #{email},