Browse Source

perf: 处理员工管理输入限制

wangcz 7 years ago
parent
commit
daed3dd134
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/webapp/resources/tpl/index/approvalFlow/user.html

+ 2 - 1
src/main/webapp/resources/tpl/index/approvalFlow/user.html

@@ -387,6 +387,7 @@
 						</td>
 						</td>
 						<td class="text-center"><input ng-model="newUser.userName"
 						<td class="text-center"><input ng-model="newUser.userName"
 							class="form-control input-sm" required type="text"
 							class="form-control input-sm" required type="text"
+							maxlength="20"
 							placeholder="用户名"></td>
 							placeholder="用户名"></td>
 						<!--<td class="text-center"><select ng-model="newUser.userSex"-->
 						<!--<td class="text-center"><select ng-model="newUser.userSex"-->
 							<!--class="form-control input-sm" ng-init="newUser.userSex='M'" style="width: 80px;">-->
 							<!--class="form-control input-sm" ng-init="newUser.userSex='M'" style="width: 80px;">-->
@@ -406,7 +407,7 @@
 						<td class="text-center"
 						<td class="text-center"
 							ng-class="{'has-error': userEmailError, 'has-success': userEmailSuccess}">
 							ng-class="{'has-error': userEmailError, 'has-success': userEmailSuccess}">
 							<input ng-model="newUser.userEmail" ng-pattern="/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/"
 							<input ng-model="newUser.userEmail" ng-pattern="/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/"
-							name="newUserEmail" class="form-control input-sm" type="text"
+							name="newUserEmail" class="form-control input-sm" type="text" maxlength="50"
 							placeholder="邮箱">
 							placeholder="邮箱">
 						</td>
 						</td>
 						<td colspan="2"></td>
 						<td colspan="2"></td>