Ver código fonte

事件-事件列表增加当天事件按钮

seimin 1 ano atrás
pai
commit
25e61d89b4

+ 8 - 1
assets/js/controllers/incident/incidentCtrl.js

@@ -85,11 +85,18 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
85
             loginuserGroup = loginuserGroup + "," + $rootScope.user.group[i].id;
85
             loginuserGroup = loginuserGroup + "," + $rootScope.user.group[i].id;
86
         }
86
         }
87
     }
87
     }
88
-    //新增事件seimin
88
+    //新增事件
89
     $scope.goToAddIncident = function () {
89
     $scope.goToAddIncident = function () {
90
         $state.go('app.incident.editor', {});
90
         $state.go('app.incident.editor', {});
91
     }
91
     }
92
 
92
 
93
+    //当天事件
94
+    $scope.toDayIncident = function () {
95
+        $scope.searchkeys.acceptDate = new Date();
96
+        $scope.searchkeys.acceptDateEnd = new Date();
97
+        $scope.chiceIncident($scope.searchkeys, $scope.othcode.state, $scope.searchkeys.source);
98
+    }
99
+
93
     //全部事件权限
100
     //全部事件权限
94
     // $scope.allright = false;
101
     // $scope.allright = false;
95
     // $scope.allrightnot = true;
102
     // $scope.allrightnot = true;

+ 3 - 1
assets/views/incident/list.html

@@ -320,7 +320,9 @@
320
                                         Data</span>
320
                                         Data</span>
321
                                 </button>
321
                                 </button>
322
                             </div>
322
                             </div>
323
-                            
323
+                            <div class=" wt_btns">
324
+                                <div class="btn btn_clean" ng-click="toDayIncident()" type="button">当天事件</div>
325
+                            </div>
324
                         </div>
326
                         </div>
325
                     </div>
327
                     </div>
326
                 </div>
328
                 </div>