|
|
@@ -13620,9 +13620,12 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
if (newvalue == '' || newvalue == null) {
|
|
|
toaster.pop('error', '提示', '修改的值不能为空');
|
|
|
} else {
|
|
|
+ $scope.loading = true;
|
|
|
Products.alterByBatch({parameter: $scope.parameter}, {}, function (data) {
|
|
|
+ $scope.loading = false;
|
|
|
$modalInstance.close(data);
|
|
|
}, function (response) {
|
|
|
+ $scope.loading = false;
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
});
|
|
|
}
|
|
|
@@ -21422,9 +21425,12 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
// 转入我的产品库
|
|
|
$scope.addtoUser = function(id) {
|
|
|
+ $scope.loading = true;
|
|
|
prodUser.coverToUser({id: id}, {}, function(data) {
|
|
|
+ $scope.loading = false;
|
|
|
toaster.pop('success', '提示', '转入成功');
|
|
|
}, function(res) {
|
|
|
+ $scope.loading = false;
|
|
|
toaster.pop('error', '提示', '转入失败');
|
|
|
});
|
|
|
}
|