Selaa lähdekoodia

首页三温图修改

lvzhikai 5 vuotta sitten
vanhempi
commit
d5c2dadd14

+ 1 - 1
src/main/resources/static/app/additionalHome/controller/qualityCtrl.js

@@ -204,7 +204,7 @@ angular.module('app.additionalHome').controller('qualityCtrl', function ($rootSc
204 204
     }
205 205
     
206 206
     $scope.initThree = function(){
207
-    	grainTempService.getThreeConditionHomePage($rootScope.orgInfo.orgId,$scope.houseId,"13").then(function(data){
207
+    	grainTempService.getThreeConditionHomePage($rootScope.orgInfo.orgId,$rootScope.storehouseObj[parseInt($scope.houseId)].storehouseCode,"13").then(function(data){
208 208
         	//初始化echarts 图表
209 209
             var option = {
210 210
                 tooltip : {

+ 1 - 1
src/main/resources/static/app/additionalHome/controller/storageCtrl.js

@@ -223,7 +223,7 @@ angular.module('app.additionalHome').controller('storageCtrl', function ($rootSc
223 223
     }
224 224
     
225 225
     $scope.initThree = function(){
226
-    	grainTempService.getThreeConditionHomePage($rootScope.orgInfo.orgId,$scope.houseId,"13").then(function(data){
226
+    	grainTempService.getThreeConditionHomePage($rootScope.orgInfo.orgId,$rootScope.storehouseObj[parseInt($scope.houseId)].storehouseCode,"13").then(function(data){
227 227
         	//初始化echarts 图表
228 228
             var option = {
229 229
                 tooltip : {

+ 11 - 1
src/main/resources/static/app/home/controller/quxtCtrl.js

@@ -47,7 +47,7 @@ angular.module('app.system').controller("quxtCtrl",
47 47
 
48 48
 
49 49
         $scope.newInit = function () {
50
-            grainTempService.getThreeConditionHomePage($rootScope.orgInfo.orgId,$scope.houseId,"13").then(function(data){
50
+            grainTempService.getThreeConditionHomePage($rootScope.orgInfo.orgId,$rootScope.storehouseObj[parseInt($scope.houseId)].storehouseCode,"13").then(function(data){
51 51
                 //初始化echarts 图表
52 52
                 var option = {
53 53
                     tooltip : {
@@ -163,18 +163,28 @@ angular.module('app.system').controller("quxtCtrl",
163 163
                     for (var i=data.length-1;i>=0;i--){
164 164
                         if(data[i].lswd != 250) {
165 165
                             lswd.push(data[i].lswd);
166
+                        }else{
167
+                            lswd.push(null);
166 168
                         }
167 169
                         if(data[i].cwwd != 250) {
168 170
                             cwwd.push(data[i].cwwd);
171
+                        }else{
172
+                            cwwd.push(null);
169 173
                         }
170 174
                         if(data[i].cnwd != 250) {
171 175
                             cnwd.push(data[i].cnwd);
176
+                        }else{
177
+                            cnwd.push(null);
172 178
                         }
173 179
                         if(data[i].cnsd != 250) {
174 180
                             cnsd.push(data[i].cnsd);
181
+                        }else{
182
+                            cnsd.push(null);
175 183
                         }
176 184
                         if(data[i].cwsd != 250) {
177 185
                             cwsd.push(data[i].cwsd);
186
+                        }else{
187
+                            cwsd.push(null);
178 188
                         }
179 189
                         timeList.push(data[i].days);
180 190
                     }