Selaa lähdekoodia

fix: 安全隐患

XuPengHui 2 vuotta sitten
vanhempi
commit
a798151bd1

+ 7 - 2
src/main/resources/static/app/storage/controller/safeProduceDangerHandle.js

@@ -4,7 +4,7 @@ angular
4 4
   .module("app.storage")
5 5
   .controller(
6 6
     "safeProduceDangerHandle",
7
-    function ($scope, $state, $rootScope, safeDangerHandleService) {
7
+    function ($scope, $state, $rootScope, safeDangerHandleService, $filter) {
8 8
       $scope.pageInfo = { pageNum: 1, pageSize: 10 };
9 9
       $scope.orgName = $rootScope.depotInfo.orgName;
10 10
       $scope.loadData = function () {
@@ -86,7 +86,8 @@ angular
86 86
       $rootScope,
87 87
       safeDangerHandleService,
88 88
       StorehouseService,
89
-      $stateParams
89
+      $stateParams,
90
+      $filter
90 91
     ) {
91 92
       $scope.orgName = $rootScope.depotInfo.orgName;
92 93
       $scope.insertDanger = {
@@ -129,6 +130,10 @@ angular
129 130
             .queryById($stateParams.id)
130 131
             .then(function (data) {
131 132
               $scope.insertDanger = data.data;
133
+              if($scope.insertDanger.solveTime) {
134
+                $scope.insertDanger.solveTime = $filter('date')($scope.insertDanger.solveTime, "yyyy-MM-dd");
135
+                $scope.insertDanger.solveTime = $scope.insertDanger.solveTime.slice(0, 10);
136
+              }
132 137
             });
133 138
         }
134 139
       };

+ 15 - 12
src/main/resources/static/app/storage/views/safeproduce/safeDangerHandle-edit.html

@@ -51,7 +51,7 @@
51 51
                     </section>
52 52
                     <section class="form-group col col-3">
53 53
                       <label class="label"
54
-                        >整改时限<span style="color: red">*</span></label
54
+                        >整改时限</label
55 55
                       >
56 56
                       <label class="select">
57 57
                         <input
@@ -159,18 +159,16 @@
159 159
                   </div>
160 160
                   <div class="row">
161 161
                     <section class="col col-12" style="width: 100%">
162
-                      <label class="label"
163
-                        >隐患整改验收信息<span style="color: red"
164
-                          >*</span
165
-                        ></label
166
-                      >
162
+                      <label class="label">隐患整改信息<span style="color: red"
163
+                        >*</span
164
+                      ></label>
167 165
                       <label class="input">
168 166
                         <input
167
+                          required
169 168
                           type="text"
170
-                          ng-model="insertDanger.riskSolve"
169
+                          ng-model="insertDanger.solveCheckInfo"
171 170
                           ng-disabled="isNotEdit"
172
-                          required
173
-                          name="riskSolve"
171
+                          name="solveCheckInfo"
174 172
                         />
175 173
                       </label>
176 174
                     </section>
@@ -193,13 +191,18 @@
193 191
                   </div>
194 192
                   <div class="row">
195 193
                     <section class="col col-12" style="width: 100%">
196
-                      <label class="label">整改验收信息</label>
194
+                      <label class="label"
195
+                        >隐患整改验收信息<span style="color: red"
196
+                          >*</span
197
+                        ></label
198
+                      >
197 199
                       <label class="input">
198 200
                         <input
199 201
                           type="text"
200
-                          ng-model="insertDanger.solveCheckInfo"
202
+                          ng-model="insertDanger.riskSolve"
201 203
                           ng-disabled="isNotEdit"
202
-                          name="solveCheckInfo"
204
+                          required
205
+                          name="riskSolve"
203 206
                         />
204 207
                       </label>
205 208
                     </section>