seimin před 3 roky
rodič
revize
f15872da23

+ 1 - 1
assets/js/controllers/customform/customformCtrl.js

@@ -9280,7 +9280,7 @@ appFormly.config(
9280 9280
                         // console.log($scope.options.templateOptions)
9281 9281
                         console.log($scope,77777)
9282 9282
                         //处理人根据事件分类自动带入
9283
-                        if($scope.id == 'formly_2_ui-select_id_6'){
9283
+                        if($scope.options.templateOptions.pkey == "incident.handlerUser"){
9284 9284
                             if($scope.$parent.$parent.$parent.model.incident.handlerUser){
9285 9285
                                 if($scope.$parent.$parent.$parent.model.incident.handlerUser.id){
9286 9286
                                     $scope.options.model.id = $scope.$parent.$parent.$parent.model.incident.handlerUser.id;