Explorar o código

5.超时工单导出功能

seimin hai 11 meses
pai
achega
6a6eae4bb2

+ 13 - 3
assets/js/controllers/incident/incidentCtrl.js

@@ -22,9 +22,19 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
22 22
     // -----------------分割线 end----------------
23 23
     // 是否逾期seimin
24 24
     $scope.selectType = [
25
-        { id: '2', name: '是' },
26
-        { id: '0', name: '否' }
25
+        // { id: '2', name: '是' },
26
+        // { id: '0', name: '否' }
27 27
     ];
28
+    $scope.getOverdueState = function () {
29
+        var data = {
30
+            key: "overdue_state",
31
+            type: "list",
32
+        };
33
+        api_wechatfile.getDictionary(data).then(function (res) {
34
+            $scope.selectType = res;
35
+        });
36
+    };
37
+    $scope.getOverdueState();
28 38
     $scope.tabs = [
29 39
         // {key: 'all', value: '全部事件', num: ''},
30 40
         {key: 'todo', value: '待我接单', num: ''},
@@ -2136,7 +2146,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2136 2146
     $scope.selectTypeChange = function(isInit){
2137 2147
         console.log($scope.searchkeys.selectType,66666);
2138 2148
         if(window.sessionStorage.getItem('isGoyuqi') == 'yes'){
2139
-            $scope.searchkeys.selectType = {id:'2',name:'是'};
2149
+            $scope.searchkeys.selectType = $scope.selectType.find(v => v.value == 'unresolved');
2140 2150
         }
2141 2151
         var ids = $scope.searchkeys.selectType.id
2142 2152
         if(defaultFilterData.incident){

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

@@ -135,7 +135,7 @@
135 135
                             </div>
136 136
                         </div>
137 137
                         <div class="form-group incidentsearch wt_width">
138
-                            <div class="control-label pull-left margin-top-5">是否逾期:</div>
138
+                            <div class="control-label pull-left margin-top-5">逾期查询:</div>
139 139
                             <ui-select ng-change="selectTypeChange()" ng-model="searchkeys.selectType" class="pull-right selectzise wt_width1 wt_width3" theme="bootstrap">
140 140
                                 <ui-select-match placeholder="请选择">
141 141
                                     <span ng-bind="$select.selected.name"></span>