seimin 1 year ago
parent
commit
7e1227e6ef
1 changed files with 6 additions and 1 deletions
  1. 6 1
      assets/js/controllers/incident/incidentCtrl.js

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

@@ -2336,6 +2336,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2336 2336
                     var handlerIncidentId = undefined;
2337 2337
                     if(model.state.value == "pending"){
2338 2338
                         taskType = 'receiveform';
2339
+                        handlerIncidentId = model.id;
2339 2340
                     }else if(model.state.value == "handler"){
2340 2341
                         taskType = 'handlerform';
2341 2342
                         handlerIncidentId = model.id;
@@ -2457,12 +2458,16 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2457 2458
                         });
2458 2459
                         return;
2459 2460
                     }
2461
+                    var taskType = undefined;
2460 2462
                     var handlerIncidentId = undefined;
2461 2463
                     if(model.state.value == "pending"){
2464
+                        taskType = 'receiveform';
2465
+                        handlerIncidentId = model.id;
2462 2466
                     }else if(model.state.value == "handler"){
2467
+                        taskType = 'handlerform';
2463 2468
                         handlerIncidentId = model.id;
2464 2469
                     }
2465
-                    api_bpm_domain.delegateTask(model.taskId, {group:$scope.assignGroup, handlerIncidentId}).then(function (response) {
2470
+                    api_bpm_domain.delegateTask(model.taskId, {group:$scope.assignGroup, taskType, handlerIncidentId}).then(function (response) {
2466 2471
                         console.log(response)
2467 2472
                         if (response.status == 200) {
2468 2473
                             Alert.swal({