|
|
@@ -9134,11 +9134,14 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
/**
|
|
|
* 添加未注册用户
|
|
|
*/
|
|
|
+ $scope.submit = false;
|
|
|
$scope.addUser = function () {
|
|
|
+ $scope.submit = true;
|
|
|
$scope.adding = true;
|
|
|
$scope.loading = true;
|
|
|
- AccountUser.save({}, $scope.newUser, function () {
|
|
|
+ AccountUser.save({}, $scope.newUser, function (data) {
|
|
|
$scope.loading = false;
|
|
|
+ $scope.submit = false;
|
|
|
toaster.pop('success', '提示', '增加用户成功:' + $scope.newUser.userName);
|
|
|
$scope.newUser = {userSex: 'M'};
|
|
|
loadUsers();
|
|
|
@@ -9150,6 +9153,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.userEmailSuccess = false;
|
|
|
$scope.userEmailError = false;
|
|
|
}, function (response) {
|
|
|
+ $scope.submit = false;
|
|
|
$scope.loading = false;
|
|
|
toaster.pop('error', '错误', response.data);
|
|
|
});
|