浏览代码

fix: 温湿度列表

maopixin 2 年之前
父节点
当前提交
8bd7176d44

+ 2 - 1
src/main/resources/static/app/storage/foodstuffAnalysis/controller/monthDetailCtrl.js

@@ -26,6 +26,7 @@ angular.module('app.storage').controller("monthDetailCtrl", function ($scope, $r
26 26
 		GrainAnalysisService.getInfo(id).then(function(data) {
27 27
 			console.log(data);
28 28
 			$scope.form = data
29
+			$scope.temperature = data.tTestdata
29 30
 		}, function(data){
30 31
 			console.log(data);
31 32
 		})
@@ -84,7 +85,7 @@ angular.module('app.storage').controller("monthDetailCtrl", function ($scope, $r
84 85
 				$scope.temperature = arr
85 86
 				var arr2 = []
86 87
 				for (var i = 0; i < arr.length; i++) {
87
-					var e = data[i];
88
+					var e = arr[i];
88 89
 					arr2.push({
89 90
 						ycqklx: '',
90 91
 						ycqkbw: '',

+ 2 - 1
src/main/resources/static/app/storage/foodstuffAnalysis/controller/quarterDetailCtrl.js

@@ -26,6 +26,7 @@ angular.module('app.storage').controller("quarterDetailCtrl", function ($scope,
26 26
 		GrainAnalysisService.getInfo(id).then(function(data) {
27 27
 			console.log(data);
28 28
 			$scope.form = data
29
+			$scope.temperature = data.tTestdata
29 30
 		}, function(data){
30 31
 			console.log(data);
31 32
 		})
@@ -84,7 +85,7 @@ angular.module('app.storage').controller("quarterDetailCtrl", function ($scope,
84 85
 				$scope.temperature = arr
85 86
 				var arr2 = []
86 87
 				for (var i = 0; i < arr.length; i++) {
87
-					var e = data[i];
88
+					var e = arr[i];
88 89
 					arr2.push({
89 90
 						ycqklx: '',
90 91
 						ycqkbw: '',