Browse Source

弹出删除确认框后点击确认,模态框隐去

hubert 7 years ago
parent
commit
4bcff19fd8

+ 3 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_materialCtrl.js

@@ -2977,6 +2977,8 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
 						$scope.deleteModal = false;
                         $modalInstance.close(data);
                     }, function (response) {
+                        $scope.deleteModal = false;
+                        $modalInstance.dismiss();
                         toaster.pop('error', response.data);
                     });
                 }
@@ -2991,6 +2993,7 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
                         toaster.pop('success', '提示', '删除成功');
                     }, function (response) {
                         toaster.pop('error', '错误', response.data);
+
                     });
                 }, function (response) {
                     toaster.pop('error',  '错误', response.data);