seimin 2 年之前
父节点
当前提交
078c5b508d

+ 19 - 7
assets/js/controllers/customform/customformCtrl.js

@@ -20786,7 +20786,7 @@ appFormly.run(function (formlyConfig, $parse) {
20786 20786
                 undefined
20787 20787
               );
20788 20788
             }
20789
-          } else {
20789
+          } else if(typeof field.key =='string') {
20790 20790
             $parse(field.key).assign(scope.model, undefined);
20791 20791
           }
20792 20792
         }
@@ -21795,7 +21795,7 @@ appFormly.controller("CustomformCtrl", [
21795 21795
                   if(vm.model.start_code == "close"&&(integralMechanism == 1 || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
21796 21796
                     $modal.open({
21797 21797
                       templateUrl: 'assets/views/incident/tpl/toIntegralMechanism.tpl.html',
21798
-                      controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope) {
21798
+                      controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope,api_bpm_data) {
21799 21799
                           console.log(incidentData,currentUserId);
21800 21800
                           $scope.flag = false;
21801 21801
                           $scope.complexityConfirm = {complexity:null,updateReason:''};
@@ -21811,8 +21811,14 @@ appFormly.controller("CustomformCtrl", [
21811 21811
                           $scope.list = [];
21812 21812
                           api_wechatfile.getDictionary({"key":"incident_complexity","type":"list"}).then(function(res){
21813 21813
                             $scope.list = res;
21814
-                            $scope.complexity = $scope.complexityFn(incidentData.category);
21815
-                            $scope.complexityConfirm.complexity = $scope.list.find(v=>v.value == $scope.complexity);
21814
+                            if(incidentData.category && incidentData.category.id){
21815
+                              api_bpm_data.fetchData("incidentCategory",incidentData.category.id).then(function(result){
21816
+                                if(result.status == 200){
21817
+                                  $scope.complexity = $scope.complexityFn(result.data);
21818
+                                  $scope.complexityConfirm.complexity = $scope.list.find(v=>v.value == $scope.complexity);
21819
+                                }
21820
+                              })
21821
+                            }
21816 21822
                           })
21817 21823
                           $scope.onChangeComplexity = function(item){
21818 21824
                             
@@ -22013,7 +22019,7 @@ appFormly.controller("CustomformCtrl", [
22013 22019
                   if($scope.formData.name === 'handlerform'&&(integralMechanism == 1 || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
22014 22020
                       $modal.open({
22015 22021
                         templateUrl: 'assets/views/incident/tpl/toIntegralMechanism.tpl.html',
22016
-                        controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope) {
22022
+                        controller: function ($scope, $modalInstance, api_bpm_domain, incidentData, currentUserId, Alert, api_user_data,api_wechatfile,scope,api_bpm_data) {
22017 22023
                             console.log(incidentData,currentUserId);
22018 22024
                             $scope.flag = true;
22019 22025
                             $scope.complexityConfirm = {complexity:null,updateReason:''};
@@ -22029,8 +22035,14 @@ appFormly.controller("CustomformCtrl", [
22029 22035
                             $scope.list = [];
22030 22036
                             api_wechatfile.getDictionary({"key":"incident_complexity","type":"list"}).then(function(res){
22031 22037
                               $scope.list = res;
22032
-                              $scope.complexity = $scope.complexityFn(incidentData.category);
22033
-                              $scope.complexityConfirm.complexity = $scope.list.find(v=>v.value == $scope.complexity);
22038
+                              if(incidentData.category && incidentData.category.id){
22039
+                                api_bpm_data.fetchData("incidentCategory",incidentData.category.id).then(function(result){
22040
+                                  if(result.status == 200){
22041
+                                    $scope.complexity = $scope.complexityFn(result.data);
22042
+                                    $scope.complexityConfirm.complexity = $scope.list.find(v=>v.value == $scope.complexity);
22043
+                                  }
22044
+                                })
22045
+                              }
22034 22046
                             })
22035 22047
                             $scope.onChangeComplexity = function(item){
22036 22048
                               if($scope.complexityConfirm.complexity.value == $scope.complexity){

+ 15 - 15
assets/js/controllers/desk/calllogCtrl.js

@@ -209,21 +209,21 @@ app.controller('calllogCtrl', ["$scope", "i18nService", "$rootScope", "$state",
209 209
             $scope.refreshData('expand-right', $scope.fileData);
210 210
         });
211 211
 
212
-        gridApi.selection.on.rowSelectionChanged($scope, function(scope) {
213
-            var j = 0;
214
-            for (var i = 0; i <= scope.grid.appScope.selected.items.length; i++) {
215
-                if (scope.grid.appScope.selected.items[i] == scope.entity) {
216
-                    j++;
217
-                    break;
218
-                }
219
-            }
220
-            // console.log("j="+j)
221
-            if (j == 1) {
222
-                scope.grid.appScope.selected.items.splice(i, 1);
223
-            } else {
224
-                scope.grid.appScope.selected.items.push(scope.entity)
225
-            }
226
-        });
212
+        // gridApi.selection.on.rowSelectionChanged($scope, function(scope) {
213
+        //     var j = 0;
214
+        //     for (var i = 0; i <= scope.grid.appScope.selected.items.length; i++) {
215
+        //         if (scope.grid.appScope.selected.items[i] == scope.entity) {
216
+        //             j++;
217
+        //             break;
218
+        //         }
219
+        //     }
220
+        //     // console.log("j="+j)
221
+        //     if (j == 1) {
222
+        //         scope.grid.appScope.selected.items.splice(i, 1);
223
+        //     } else {
224
+        //         scope.grid.appScope.selected.items.push(scope.entity)
225
+        //     }
226
+        // });
227 227
 
228 228
         gridApi.core.on.filterChanged($scope, function() {
229 229
             var grid = this.grid;

+ 9 - 1
assets/js/controllers/system/processdesign/incidentplan/incidentSetUpCtrl.js

@@ -493,7 +493,15 @@ app.controller('incidentSetUp', ["$rootScope", "$scope", "$state", "$timeout", "
493 493
                     if(angular.isDefined(data[i].branchUserGroups)){
494 494
                         data[i].branchUserGroups = data[i].branchUserGroups|| [];
495 495
                         if(data[i].branchUserGroups.length){
496
-                            object.branchUserGroups=data[i].branchUserGroups
496
+                            var arr_b = result.map(v=>({branchName:v.hosName,branchId:v.id,categoryId:data[i].id}));
497
+                            for (var j = 0; j < arr_b.length; j++) {
498
+                                for (var p = 0; p < data[i].branchUserGroups.length; p++) {
499
+                                    if(arr_b[j].branchId == data[i].branchUserGroups[p].branchId){
500
+                                        arr_b[j] = data[i].branchUserGroups[p];
501
+                                    }
502
+                                }
503
+                            }
504
+                            object.branchUserGroups=arr_b;
497 505
                         }else{
498 506
                             object.branchUserGroups = result.map(v=>({branchName:v.hosName,branchId:v.id,categoryId:data[i].id}))
499 507
                         }

+ 1 - 1
assets/views/inspect/integral.html

@@ -4,7 +4,7 @@
4 4
     margin-right: 16px;
5 5
   }
6 6
   .wt_width5 {
7
-    width: 160px;
7
+    width: 60%;
8 8
     border-color: #dedede;
9 9
     float: right;
10 10
     height: 28px;