提交修改

pg_adapter
dshclm 8 months ago
parent 4402880ed9
commit 8455fc91c8

@ -17,7 +17,7 @@
<div class="form-group">
<label class="col-sm-4 control-label is-required">人员姓名:</label>
<div class="col-sm-8">
<input name="userName" id="userName" placeholder="请输入用户名称" class="form-control" type="text" maxlength="30" th:field="*{userName}" required>
<input name="userName" placeholder="请输入用户名称" class="form-control" type="text" maxlength="30" th:field="*{userName}" required>
</div>
</div>
</div>
@ -379,27 +379,6 @@
});
});
$(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);
}
});
}
});
});
</script>
</body>
</html>

Loading…
Cancel
Save