|
|
@@ -2068,7 +2068,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- console.log($scope.isChanged);
|
|
|
angular.forEach($scope.changes, function(changed) {
|
|
|
if(changed.index != index) {
|
|
|
if(changed.status) {
|
|
|
@@ -10695,6 +10694,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
Products.updateone({id: id}, {}, function(data) {
|
|
|
if(data.success) {
|
|
|
toaster.pop('success', '提示', data.success);
|
|
|
+ window.location.reload();
|
|
|
}
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
@@ -17960,6 +17960,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
Products.updateone({id: id}, {}, function(data) {
|
|
|
if(data.success) {
|
|
|
toaster.pop('success', '提示', data.success);
|
|
|
+ window.location.reload();
|
|
|
}
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '提示', response.data);
|