Browse Source

添加loading

seimin 11 months ago
parent
commit
c41db00195
1 changed files with 3 additions and 0 deletions
  1. 3 0
      assets/js/controllers/incident/incidentCtrl.js

+ 3 - 0
assets/js/controllers/incident/incidentCtrl.js

@@ -1355,6 +1355,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1355
 
1355
 
1356
     //导出
1356
     //导出
1357
     $scope.export = function () {
1357
     $scope.export = function () {
1358
+        $rootScope.isMask = true;
1358
         console.log($scope.memoryfilterData)
1359
         console.log($scope.memoryfilterData)
1359
         var filadata = angular.copy($scope.memoryfilterData);
1360
         var filadata = angular.copy($scope.memoryfilterData);
1360
         filadata.sum = 10000;
1361
         filadata.sum = 10000;
@@ -1368,6 +1369,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1368
             },
1369
             },
1369
             responseType: 'arraybuffer'
1370
             responseType: 'arraybuffer'
1370
         }).success(function (data, status, headers, config) {
1371
         }).success(function (data, status, headers, config) {
1372
+            $rootScope.isMask = false;
1371
             var file = new Blob([data], {
1373
             var file = new Blob([data], {
1372
                 type: 'application/vnd.ms-excel'
1374
                 type: 'application/vnd.ms-excel'
1373
             });
1375
             });
@@ -1382,6 +1384,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1382
         }).error(function (data, status, headers, config) {
1384
         }).error(function (data, status, headers, config) {
1383
             // $scope.ldloading.zoom_in = false;
1385
             // $scope.ldloading.zoom_in = false;
1384
             console.log(data);
1386
             console.log(data);
1387
+            $rootScope.isMask = false;
1385
         });
1388
         });
1386
     }
1389
     }
1387
     //接单
1390
     //接单