|
|
@@ -16191,11 +16191,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
});
|
|
|
Products.updateall( {}, ids, function(data) {
|
|
|
- $scope.loading = false;
|
|
|
if(data.success) {
|
|
|
toaster.pop('success', '提示', data.success);
|
|
|
- $scope.tableParams.page(1);
|
|
|
- $scope.tableParams.reload();
|
|
|
+ $timeout(function() {
|
|
|
+ $scope.tableParams.page(1);
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ $scope.loading = false;
|
|
|
+ }, 500);
|
|
|
}
|
|
|
ids = []; // 清空ids,防止重复点击出现多余的数据
|
|
|
}, function(response) {
|
|
|
@@ -16385,11 +16387,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
});
|
|
|
Products.updateall( {}, ids, function(data) {
|
|
|
- $scope.loading = false;
|
|
|
if(data.success) {
|
|
|
toaster.pop('success', '提示', data.success);
|
|
|
- $scope.tableParams.page(1);
|
|
|
- $scope.tableParams.reload();
|
|
|
+ $timeout(function() {
|
|
|
+ $scope.tableParams.page(1);
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ $scope.loading = false;
|
|
|
+ }, 500);
|
|
|
}
|
|
|
ids = []; // 清空ids,防止重复点击出现多余的数据
|
|
|
}, function(response) {
|
|
|
@@ -16579,11 +16583,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
});
|
|
|
Products.updateall( {}, ids, function(data) {
|
|
|
- $scope.loading = false;
|
|
|
if(data.success) {
|
|
|
toaster.pop('success', '提示', data.success);
|
|
|
- $scope.tableParams.page(1);
|
|
|
- $scope.tableParams.reload();
|
|
|
+ $timeout(function() {
|
|
|
+ $scope.tableParams.page(1);
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ $scope.loading = false;
|
|
|
+ }, 500);
|
|
|
}
|
|
|
ids = []; // 清空ids,防止重复点击出现多余的数据
|
|
|
}, function(response) {
|