Browse Source

perf: 处理员工管理邮箱空状

wangcz 7 years ago
parent
commit
8b8620509c

+ 9 - 0
src/main/webapp/resources/js/index/app.js

@@ -12387,6 +12387,15 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 
         };
 
+        $scope.closeNewUser = function () {
+            $scope.newUser.userTel = ''
+            $scope.newUser.userEmail = ''
+            $scope.newUser.userName = ''
+            $scope.newUserForm.$setUntouched();
+            $scope.newUserForm.$setPristine();
+            $scope.adding = true;
+        }
+
 
         /**
          * 添加未注册用户

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

@@ -350,7 +350,7 @@
 					添加用户
 				</a>
 				<ul ng-show="adding != true" class="list-unstyle list-inline operator-menu2">
-					<li><a ng-click="adding = true">添加未注册用户</a></li>
+					<li><a ng-click="closeNewUser()">添加未注册用户</a></li>
 					<li><a ng-click="addExistUser()">添加已注册用户</a></li>
 				</ul>
 			</div>