Bladeren bron

Merge branch 'master' of http://101.36.160.140:21044/depot-tianjin/depot-web-tianjin

lufeng 3 jaren geleden
bovenliggende
commit
c7b2cd8fc2

+ 5 - 3
src/main/resources/static/app/intelligent/grainDetection/views/insectPestDetection-edit.html

@@ -87,9 +87,11 @@
87 87
 											</th>
88 88
 											<th>
89 89
 												<section>
90
-													<label class="input">
91
-														<input class="form-control" type="text" ng-model="insectPests.cldjpd"
92
-															   name="cldjpd" validFrequency="true" required>
90
+													<label class="select">
91
+														<select ng-model="insectPests.cldjpd" name="cldjpd"
92
+																ng-options="enum.enumid as enum.enumname for enum in dicDataList[5281]" required>
93
+															<option value="">--请选择--</option>
94
+														</select><i></i>
93 95
 													</label>
94 96
 												</section>
95 97
 											</th>

+ 4 - 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
 		})
@@ -38,6 +39,8 @@ angular.module('app.storage').controller("monthDetailCtrl", function ($scope, $r
38 39
 			$scope.form.houseType = $rootScope.storehouseObj[$scope.form.houseId].storehouseType
39 40
 			warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.form.houseId, "0").then(function(data){
40 41
 				$scope.wareList = data.wareList;  //下拉列表数据
42
+				
43
+				$scope.onTimeChange()
41 44
 			},function(data){
42 45
 				console.log(data);
43 46
 			});
@@ -84,7 +87,7 @@ angular.module('app.storage').controller("monthDetailCtrl", function ($scope, $r
84 87
 				$scope.temperature = arr
85 88
 				var arr2 = []
86 89
 				for (var i = 0; i < arr.length; i++) {
87
-					var e = data[i];
90
+					var e = arr[i];
88 91
 					arr2.push({
89 92
 						ycqklx: '',
90 93
 						ycqkbw: '',

+ 4 - 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
 		})
@@ -38,6 +39,8 @@ angular.module('app.storage').controller("quarterDetailCtrl", function ($scope,
38 39
 			$scope.form.houseType = $rootScope.storehouseObj[$scope.form.houseId].storehouseType
39 40
 			warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.form.houseId, "0").then(function(data){
40 41
 				$scope.wareList = data.wareList;  //下拉列表数据
42
+
43
+				$scope.onTimeChange()
41 44
 			},function(data){
42 45
 				console.log(data);
43 46
 			});
@@ -84,7 +87,7 @@ angular.module('app.storage').controller("quarterDetailCtrl", function ($scope,
84 87
 				$scope.temperature = arr
85 88
 				var arr2 = []
86 89
 				for (var i = 0; i < arr.length; i++) {
87
-					var e = data[i];
90
+					var e = arr[i];
88 91
 					arr2.push({
89 92
 						ycqklx: '',
90 93
 						ycqkbw: '',

+ 2 - 0
src/main/resources/static/app/storage/foodstuffAnalysis/controller/weekDetailCtrl.js

@@ -31,6 +31,8 @@ angular.module('app.storage').controller("weekDetailCtrl", function ($scope, $ro
31 31
 			$scope.form.houseType = $rootScope.storehouseObj[$scope.form.houseId].storehouseType
32 32
 			warehouseService.getStorehouse($rootScope.orgInfo.orgId, $scope.form.houseId, "0").then(function(data){
33 33
 				$scope.wareList = data.wareList;  //下拉列表数据
34
+				
35
+				$scope.onTimeChange()
34 36
 			},function(data){
35 37
 				console.log(data);
36 38
 			});

+ 6 - 3
src/main/resources/static/app/storage/views/safeproduce/safeRiskLevelCtrl-edit.html

@@ -25,13 +25,13 @@
25 25
                                       <section class="col col-3">
26 26
                                           <label class="label">识别人<span style="color: red;">*</span></label>
27 27
                                           <label class="input">
28
-                                              <input type="text" ng-model="insertRisk.identifyPerson" name="operationTime" required>
28
+                                              <input type="text" ng-model="insertRisk.identifyPerson" name="operationTime" required ng-disabled="isNotEdit">
29 29
                                           </label>
30 30
                                       </section>
31 31
                                       <section class="col col-3">
32 32
                                           <label class="label">环节部位<span style="color: red;">*</span></label>
33 33
                                           <label class="input">
34
-                                              <input type="text" ng-model="insertRisk.linkPart" name="linkPart">
34
+                                              <input type="text" ng-model="insertRisk.linkPart" name="linkPart" required ng-disabled="isNotEdit">
35 35
                                           </label>
36 36
                                       </section>
37 37
                                       <section class="col col-3">
@@ -39,6 +39,7 @@
39 39
                                           <label class="select">
40 40
                                             <select 
41 41
                                                 ng-model="insertRisk.riskClassification"
42
+                                                ng-disabled="isNotEdit"
42 43
                                                 name="riskClassification" class="form-control input-sm"
43 44
                                                 ng-options="item.id as item.value for item in fxfjList"
44 45
                                                     ng-change="loadWare(houseId)" required>
@@ -53,6 +54,7 @@
53 54
                                           <label class="select">
54 55
                                             <select 
55 56
                                                 ng-model="insertRisk.riskTypeName"
57
+                                                ng-disabled="isNotEdit"
56 58
                                                 name="riskTypeName" class="form-control input-sm"
57 59
                                                 ng-options="item.id as item.value for item in fxlxList"
58 60
                                                     ng-change="loadWare(houseId)" required>
@@ -65,7 +67,8 @@
65 67
                                         <section class="col col-12" style="width: 100%;">
66 68
                                             <label class="label">风险识别</label>
67 69
                                             <label class="textarea textarea-resizable">
68
-                                                <textarea rows="5" class="custom-scroll"  ng-model="insertRisk.riskIdentification"  ng-disabled="isNotEdit" name="riskIdentification"></textarea>
70
+                                                <textarea rows="5" class="custom-scroll"  ng-model="insertRisk.riskIdentification"  
71
+                                                ng-disabled="isNotEdit" name="riskIdentification"></textarea>
69 72
                                             </label>
70 73
                                         </section>
71 74
                                     </div>