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