新增用户部门必填校验

dep_wangsr
RuoYi 7 years ago committed by Limy
parent 322c411b31
commit 14e8a8e922

@ -2,7 +2,7 @@ $("#form-user-add").validate({
rules:{
loginName:{
required:true,
minlength: 5,
minlength: 2,
remote: {
url: ctx + "system/user/checkUserNameUnique",
type: "post",
@ -21,6 +21,9 @@ $("#form-user-add").validate({
userName:{
required:true,
},
deptName:{
required:true,
},
password:{
required:true,
minlength: 6

@ -3,6 +3,9 @@ $("#form-user-edit").validate({
userName:{
required:true,
},
deptName:{
required:true,
},
password:{
required:true,
minlength: 6

@ -18,7 +18,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">部门名称:</label>
<div class="col-sm-8">
<input class="form-control" type="text" onclick="selectDeptTree()" readonly="true" id="treeName">
<input class="form-control" type="text" name="deptName" onclick="selectDeptTree()" readonly="true" id="treeName">
</div>
</div>
<div class="form-group">

@ -19,7 +19,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">部门名称:</label>
<div class="col-sm-8">
<input class="form-control" type="text" onclick="selectDeptTree()" readonly="true" id="treeName" th:value="${user.dept.deptName}">
<input class="form-control" type="text" name="deptName" onclick="selectDeptTree()" readonly="true" id="treeName" th:value="${user.dept.deptName}">
</div>
</div>
<div class="form-group">

Loading…
Cancel
Save