ecinc-cloud-wappaio 9.6.543 → 9.6.545

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147096,9 +147096,38 @@ var wfengine_install = function install(Vue) {
147096
147096
  }
147097
147097
  }
147098
147098
  }
147099
- if (newWfJsonData.routes.length === 0) delete wfJsonData.routes;
147099
+ if (newWfJsonData.routes.length === 0) delete newWfJsonData.routes;
147100
+ $scope.wfJsonData = newWfJsonData;
147101
+ } else if ($scope.wfInstance.udmNodes && $scope.wfInstance.udmNodes !== '') {
147102
+ var udmNodes = JSON.parse($scope.wfInstance.udmNodes);
147103
+ for (var i = 0; i < udmNodes.length; i++) {
147104
+ if (udmNodes[i].name === 'chartData') {
147105
+ $scope.wfInstance.passenger.chartData = udmNodes[i];
147106
+ udmNodes.splice(i--, 1);
147107
+ }
147108
+ }
147109
+ $scope.wfInstance.udmNodes = udmNodes;
147110
+ } else if ($scope.wfInstance.passenger.udmjysp) {
147111
+ var tnUsers = [{
147112
+ id: $scope.curTN.staffID
147113
+ }];
147114
+ var udmNode = {
147115
+ todoMode: 0,
147116
+ canEdit: 1,
147117
+ status: 1,
147118
+ name: $scope.curTN.tnNodeName,
147119
+ userNames: $scope.curTN.userName,
147120
+ users: tnUsers,
147121
+ id: $scope.curTN.tnNodeID,
147122
+ uuid: $scope.curTN.tnNodeID,
147123
+ startNode: true,
147124
+ ideaLable: ''
147125
+ };
147126
+ $scope.wfInstance.udmNodes = [udmNode];
147127
+ }
147128
+ if ($scope.wfInstance.udmNodes && $scope.curTN.tnNodeID !== null) {
147129
+ $scope.wfJsonData.routes = _this3.setUdmCustomRoutes($scope);
147100
147130
  }
147101
- $scope.wfJsonData = newWfJsonData;
147102
147131
  } else {
147103
147132
  $scope.wfJsonData = $scope.wfJsonDatabak;
147104
147133
  }
@@ -147106,9 +147106,38 @@ var wfengine_install = function install(Vue) {
147106
147106
  }
147107
147107
  }
147108
147108
  }
147109
- if (newWfJsonData.routes.length === 0) delete wfJsonData.routes;
147109
+ if (newWfJsonData.routes.length === 0) delete newWfJsonData.routes;
147110
+ $scope.wfJsonData = newWfJsonData;
147111
+ } else if ($scope.wfInstance.udmNodes && $scope.wfInstance.udmNodes !== '') {
147112
+ var udmNodes = JSON.parse($scope.wfInstance.udmNodes);
147113
+ for (var i = 0; i < udmNodes.length; i++) {
147114
+ if (udmNodes[i].name === 'chartData') {
147115
+ $scope.wfInstance.passenger.chartData = udmNodes[i];
147116
+ udmNodes.splice(i--, 1);
147117
+ }
147118
+ }
147119
+ $scope.wfInstance.udmNodes = udmNodes;
147120
+ } else if ($scope.wfInstance.passenger.udmjysp) {
147121
+ var tnUsers = [{
147122
+ id: $scope.curTN.staffID
147123
+ }];
147124
+ var udmNode = {
147125
+ todoMode: 0,
147126
+ canEdit: 1,
147127
+ status: 1,
147128
+ name: $scope.curTN.tnNodeName,
147129
+ userNames: $scope.curTN.userName,
147130
+ users: tnUsers,
147131
+ id: $scope.curTN.tnNodeID,
147132
+ uuid: $scope.curTN.tnNodeID,
147133
+ startNode: true,
147134
+ ideaLable: ''
147135
+ };
147136
+ $scope.wfInstance.udmNodes = [udmNode];
147137
+ }
147138
+ if ($scope.wfInstance.udmNodes && $scope.curTN.tnNodeID !== null) {
147139
+ $scope.wfJsonData.routes = _this3.setUdmCustomRoutes($scope);
147110
147140
  }
147111
- $scope.wfJsonData = newWfJsonData;
147112
147141
  } else {
147113
147142
  $scope.wfJsonData = $scope.wfJsonDatabak;
147114
147143
  }