|
|
@@ -10237,6 +10237,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.loading = false;
|
|
|
toaster.pop('info', '提示', '当前文件不存在,请重新选择');
|
|
|
}
|
|
|
+ } else {
|
|
|
+ $scope.loading = false;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -16747,7 +16749,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
// 通过excel批量上传物料
|
|
|
$scope.upload = function() {
|
|
|
$scope.loading = true;
|
|
|
- var file = $scope.myFiles[0];
|
|
|
if($scope.myFiles) {
|
|
|
var file = $scope.myFiles[0];
|
|
|
if(file.name) {
|
|
|
@@ -16777,6 +16778,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.loading = false;
|
|
|
toaster.pop('info', '提示', '当前文件不存在,请重新选择');
|
|
|
}
|
|
|
+ } else {
|
|
|
+ $scope.loading = false;
|
|
|
}
|
|
|
};
|
|
|
|