Browse Source

弹屏无法选择人员类型BUG

seimin 2 years ago
parent
commit
dc89c96c05
1 changed files with 13 additions and 5 deletions
  1. 13 5
      assets/js/controllers/mainCtrl.js

+ 13 - 5
assets/js/controllers/mainCtrl.js

@@ -992,7 +992,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
992 992
                                                             var modalInstance = $modal.open({
993 993
                                                                 backdrop: "static",
994 994
                                                                 templateUrl: 'assets/views/customform/tpl/modal-add-callrequester.html',
995
-                                                                controller: function($scope, $modalInstance, api_user_data, SweetAlert) {
995
+                                                                controller: function($scope, $modalInstance, api_user_data, api_wechatfile, SweetAlert) {
996 996
                                                                     $scope.title = "新增报修人";
997 997
                                                                     $scope.requester = {};
998 998
                                                                     $scope.onChangeadd = function(searchData) {
@@ -1068,10 +1068,18 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1068 1068
                                                                     //             $scope.places = response.list;
1069 1069
                                                                     //         }
1070 1070
                                                                     //     }) //地点
1071
-                                                                    api_user_data.fetchDataList('requesterType', { idx: 0, sum: 100 }).then(function(response) {
1072
-                                                                        if (response.status == 200) {
1073
-                                                                            $scope.networktypes = response.list;
1074
-                                                                        }
1071
+                                                                    // api_user_data.fetchDataList('requesterType', { idx: 0, sum: 100 }).then(function(response) {
1072
+                                                                    //     if (response.status == 200) {
1073
+                                                                    //         $scope.networktypes = response.list;
1074
+                                                                    //     }
1075
+                                                                    // })
1076
+                                                                    api_wechatfile.getDictionary({
1077
+                                                                      "key": "requester_type",
1078
+                                                                      "type": "list"
1079
+                                                                    }).then(function (response) {
1080
+                                                                      // if (response.status == 200) {
1081
+                                                                      $scope.networktypes = response;
1082
+                                                                      // }
1075 1083
                                                                     })
1076 1084
                                                                     $scope.onChangeBranch = function (item) {
1077 1085
                                                                       delete $scope.requester.place;