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 05d5508..235440f 100644
--- a/ruoyi-admin/src/main/resources/templates/system/user/add.html
+++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html
@@ -16,7 +16,7 @@
@@ -402,7 +402,6 @@
//文件上传
$('#fileUrlId').on('change.bs.fileinput ', function (e) {
- debugger
// 处理自己的业务
var file = e.target.files[0];
var data = new FormData();
@@ -430,7 +429,27 @@
});
});
-
+ $(document).ready(function(){
+ $("#userName").blur(function(e){
+ var text = $(this).val();
+ if (text && text.trim() !== ''){
+ $.ajax({
+ type: "GET",
+ url: ctx + "system/user/getPinyin",
+ data: {name: text},
+ dataType: 'json',
+ success: function(res) {
+ if (res.code == web_status.SUCCESS) {
+ $("#loginName").val(res.msg);
+ }
+ },
+ error: function(error) {
+ $.modal.alertWarning(error);
+ }
+ });
+ }
+ });
+ });