|
|
@@ -10147,6 +10147,9 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
file: file,
|
|
|
method: 'POST'
|
|
|
}).success(function(data) {
|
|
|
+ if(data.error) {
|
|
|
+ toaster.pop('error', '提示', data.error);
|
|
|
+ }
|
|
|
$scope.result = data;
|
|
|
$scope.products = $scope.result.products;
|
|
|
$scope.success = $scope.result.success;
|
|
|
@@ -16418,6 +16421,9 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
file: file,
|
|
|
method: 'POST'
|
|
|
}).success(function(data) {
|
|
|
+ if(data.error) {
|
|
|
+ toaster.pop('error', '提示', data.error);
|
|
|
+ }
|
|
|
$scope.result = data;
|
|
|
$scope.products = $scope.result.products;
|
|
|
$scope.success = $scope.result.success;
|