Browse Source

权限-删除用户提示框

yangc 8 years ago
parent
commit
ec39bac958

+ 10 - 9
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_account_management_ctrl.js

@@ -197,15 +197,16 @@ define(['app/app'], function (app) {
          */
         $scope.removeUser = function (user) {
 
-            if (confirm('确定删除用户(' + user.userName + ')吗?')) {
-                Enterprise.removeUser({uu: user.userUU}, function () {
-                    toaster.pop('success', '提示', '用户删除成功。');
-                    $scope.tableParams.page(1);
-                    $scope.tableParams.reload();
-                }, function (response) {
-                    toaster.pop('error', '删除失败', response.data);
-                });
-            }
+            // if (confirm('确定删除用户(' + user.userName + ')吗?')) {
+            // }
+            Enterprise.removeUser({uu: user.userUU}, function () {
+                toaster.pop('success', '提示', '用户删除成功。');
+                $scope.tableParams.page(1);
+                $scope.tableParams.reload();
+                $scope.showDelUserFlag = false;
+            }, function (response) {
+                toaster.pop('error', '删除失败', response.data);
+            });
         };
         //用户删除确认框
         $scope.showDelUserFlag = false;