|
@@ -29,10 +29,12 @@
|
|
|
$("#no").focus();
|
|
|
$("#inputForm").validate({
|
|
|
rules: {
|
|
|
- loginName: {remote: "${ctx}/sys/user/checkLoginName?oldLoginName=" + encodeURIComponent('${user.loginName}')}
|
|
|
+ loginName: {remote: "${ctx}/sys/user/checkLoginName?oldLoginName=" + encodeURIComponent('${user.loginName}')},
|
|
|
+ name: {remote: "${ctx}/sys/user/checkName"}
|
|
|
},
|
|
|
messages: {
|
|
|
loginName: {remote: "用户登录名已存在"},
|
|
|
+ name:{remote: "用户名已存在"},
|
|
|
confirmNewPassword: {equalTo: "输入与上面相同的密码"}
|
|
|
}
|
|
|
});
|
|
@@ -66,9 +68,10 @@
|
|
|
|
|
|
<tr>
|
|
|
<td class="active"><label class="pull-right"><font color="red">*</font>姓名:</label></td>
|
|
|
- <td><form:input path="name" htmlEscape="false" maxlength="50" class="form-control required"/></td>
|
|
|
+ <td>
|
|
|
+ <form:input path="name" htmlEscape="false" maxlength="50" class="form-control required "/></td>
|
|
|
<td class="active"><label class="pull-right"><font color="red">*</font>登录名:</label></td>
|
|
|
- <td><input id="oldLoginName" name="oldLoginName" type="hidden" value="${user.loginName}">
|
|
|
+ <td><input id="oldLoginName" type="hidden" name="oldLoginName" value="${user.loginName}">
|
|
|
<form:input path="loginName" htmlEscape="false" maxlength="50" class="form-control required userName"/></td>
|
|
|
</tr>
|
|
|
|