Browse Source

fix: rm es6

lufeng 2 years ago
parent
commit
085eee3120

+ 1 - 1
src/main/resources/static/app/intelligent/grainDetection/controller/insectPestDetectionCtrl.js

@@ -336,7 +336,7 @@ angular.module('app.intelligent').controller("insectPestDetectionCtrl", function
336
                 });
336
                 });
337
                 let hczlStr = '';
337
                 let hczlStr = '';
338
                 let ckmdzjhStr = '';
338
                 let ckmdzjhStr = '';
339
-                $scope.pestList.forEach(item => {
339
+                $scope.pestList.forEach(function (item) {
340
                     if(item.hczl) {
340
                     if(item.hczl) {
341
                         hczlStr = hczlStr + item.hczl + '#'
341
                         hczlStr = hczlStr + item.hczl + '#'
342
                     }
342
                     }

+ 1 - 1
src/main/resources/static/app/storage/controller/safeProduceRiskCtrl.js

@@ -159,7 +159,7 @@ angular
159
         console.log($stateParams.id);
159
         console.log($stateParams.id);
160
         if (validator.form()) {
160
         if (validator.form()) {
161
           $scope.insertRisk.orgId = $rootScope.orgInfo.orgId;
161
           $scope.insertRisk.orgId = $rootScope.orgInfo.orgId;
162
-          $scope.fxlxList.forEach((item, i) => {
162
+          $scope.fxlxList.forEach(function (item, i) {
163
             if(item.value === $scope.insertRisk.riskTypeName) {
163
             if(item.value === $scope.insertRisk.riskTypeName) {
164
               $scope.insertRisk.riskTypeId = i;
164
               $scope.insertRisk.riskTypeId = i;
165
             }
165
             }

+ 1 - 1
src/main/resources/static/app/supervise/controller/storeWarningThresholdCtrl.js

@@ -7,7 +7,7 @@ angular.module('app.supervise')
7
 		// 加载列表
7
 		// 加载列表
8
 		$scope.loadData = function () {
8
 		$scope.loadData = function () {
9
 			overDueAlarmService.getCcPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $rootScope.orgInfo.orgId).then(function (data) {
9
 			overDueAlarmService.getCcPageInfo($scope.pageInfo.pageNum, $scope.pageInfo.pageSize, $rootScope.orgInfo.orgId).then(function (data) {
10
-				data.data.list.forEach(e => {
10
+				data.data.list.forEach(function (e){
11
 					let fcTime = new Date(e.fcTime)
11
 					let fcTime = new Date(e.fcTime)
12
 					let cznxTime = new Date(e.fcTime)
12
 					let cznxTime = new Date(e.fcTime)
13
 					cznxTime.setFullYear(fcTime.getFullYear() + e.limitYear)
13
 					cznxTime.setFullYear(fcTime.getFullYear() + e.limitYear)