Selaa lähdekoodia

告警时间优化

seimin 2 vuotta sitten
vanhempi
commit
a4f61f33ee
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      assets/js/controllers/desk/jry_emergencyCtrl.js

+ 5 - 1
assets/js/controllers/desk/jry_emergencyCtrl.js

@@ -269,7 +269,11 @@ app.controller('jry_emergencyCtrl', ["$scope", "i18nService", "$rootScope", "$st
269
 
269
 
270
         };
270
         };
271
         $scope.transferTime = function(time) {
271
         $scope.transferTime = function(time) {
272
-            return moment(time).format('YYYY-MM-DD HH:mm');
272
+            if(time){
273
+                return moment(time).format('YYYY-MM-DD HH:mm');
274
+            }else{
275
+                return '无';
276
+            }
273
         }
277
         }
274
         // $scope.record = function() {
278
         // $scope.record = function() {
275
 
279