sasp-flow-render 1.1.35-decoupling → 1.1.36-decoupling

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sasp-flow-render",
3
- "version": "1.1.35-decoupling",
3
+ "version": "1.1.36-decoupling",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -702,6 +702,14 @@ class WorkflowEngine {
702
702
  if (obj.dealerType === "variable" && obj.variable) {
703
703
  this.isRefreshGetNextUsers.push(obj.variable);
704
704
  }
705
+ if(obj.dealType === "multi"){
706
+ let gatewaySet = JSON.parse(obj.gatewaySet || "[]");
707
+ gatewaySet.forEach(item => {
708
+ item.forEach(data => {
709
+ this.isRefreshGetNextUsers.push(data.field);
710
+ })
711
+ })
712
+ }
705
713
  if (obj.dealerType === "interface" && obj.dealerUrlParam) {
706
714
  let dealerUrlParam = JSON.parse(obj.dealerUrlParam || "[]");
707
715
  dealerUrlParam.forEach(param => {
@@ -990,8 +998,8 @@ class WorkflowEngine {
990
998
  }else{
991
999
  let userInfo = this.nextSteptUserArr[0] || {};
992
1000
  if(this.nextNode.dealType=="single"){
993
- this.chooseNextUserId = userInfo.id;
994
- this.chooseNextUserName = userInfo.userName;
1001
+ this.chooseNextUserId = userInfo.id || "";
1002
+ this.chooseNextUserName = userInfo.userName || "";
995
1003
  this.$flowDialog.fillFlowDialogParams({
996
1004
  chooseNextUserId: this.chooseNextUserId,
997
1005
  chooseNextUserName: this.chooseNextUserName
@@ -1952,11 +1960,11 @@ class WorkflowEngine {
1952
1960
  }
1953
1961
  }
1954
1962
 
1955
- judeDiyButton(tabActive,button) {
1956
- if(tabActive === 'pending') {
1963
+ judeDiyButton(tabActive,button) { // 传过来的tabActive在实际使用中flowInstTab的时候没有更新,所以这里使用this.tabActive就行了
1964
+ if(this.tabActive === 'pending') {
1957
1965
  return button.position === 'table' && button.nodeId === this.currentInst.currentNode;
1958
1966
  }
1959
- return button.position === 'table' && button.buttonSign.indexOf(tabActive) > -1;
1967
+ return button.position === 'table' && button.buttonSign.indexOf(this.tabActive) > -1;
1960
1968
  }
1961
1969
 
1962
1970
  execDiyBtnScripts(type,data,fnBody) {
@@ -562,14 +562,14 @@ export default {
562
562
  */
563
563
  saveNextStept() {
564
564
  this.isDisabled1 = false;
565
- let dealers = this.chooseNextUserId;
566
- let dealerNames = this.chooseNextUserName;
565
+ let dealers = this.chooseNextUserId || "";
566
+ let dealerNames = this.chooseNextUserName || "";
567
567
  let dealersObj = {};
568
568
  if (this.nextNode.nextType == "inclusiveGateway") {
569
569
  // 校验是否选人了
570
570
  let tempResult = true;
571
571
  Object.keys(this.chooseNextUserIdObj).forEach(key => {
572
- let dealers = this.chooseNextUserIdObj[key];
572
+ dealers = this.chooseNextUserIdObj[key];
573
573
  if(Array.isArray(dealers)){
574
574
  dealersObj[key] = dealers.join(",");
575
575
  }else{