sasp-flow-render 1.1.30-decoupling → 1.1.31-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.30-decoupling",
3
+ "version": "1.1.31-decoupling",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -36,7 +36,7 @@
36
36
  </div>
37
37
  <div style="height: 100%" v-else>
38
38
  <el-tabs v-model="tabActive" v-if="initSuccess" type="border-card" @tab-click="tabClick"
39
- style="width: 100%;height: 100%;">
39
+ style="width: 100%;height: 100%;box-sizing: border-box">
40
40
  <el-tab-pane name="draft" v-if="tabShow('draft')" style="height: 100%;" :lazy="true">
41
41
  <span slot="label">
42
42
  <i v-if="tabTypeObj['showTabIcon']" :class="tabTypeObj['draft'].iconShow"></i>
@@ -1514,7 +1514,7 @@
1514
1514
 
1515
1515
  <style lang="scss" scoped>
1516
1516
  /deep/ .el-tabs__content {
1517
- height: calc(100% - 60px);
1517
+ height: calc(100% - 70px);
1518
1518
  }
1519
1519
 
1520
1520
  .el-tab-pane {
@@ -58,6 +58,8 @@ class WorkflowEngine {
58
58
  this.forceUpdateComponent = methods["forceUpdateComponent"];
59
59
  this.nextStepAfterSave = methods["nextStepAfterSave"]; // 流程下一步保存表单数据后的回调
60
60
  this.afterNextStepSuccess = methods["afterNextStepSuccess"]; // 流程下一步成功后,即关闭对话框后的回调
61
+ this.backSubmitEvent = methods["backSubmitEvent"]; // 退回后执行方法
62
+ this.getBackSubmitEvent = methods["getBackSubmitEvent"]; // 取回后执行方法
61
63
  this.setParams = methods["setParams"];
62
64
 
63
65
  if(!this.initFormInfo){
@@ -932,6 +934,10 @@ class WorkflowEngine {
932
934
  chooseNextUserName: this.chooseNextUserName
933
935
  });
934
936
  } else if (this.nextNode.nodeType == "EndEvent") {
937
+ if(window.skipFlowEnd && window.skipFlowEnd.includes(this.flowId)){
938
+ this.$flowDialog.saveNextStept();
939
+ return;
940
+ }
935
941
  this.nextSteptUserDialog = true;
936
942
  this.$flowDialog.operateDialog('nextSteptUserDialog',true);
937
943
  return;
@@ -1006,7 +1012,7 @@ class WorkflowEngine {
1006
1012
  return new Promise(resolve => {
1007
1013
  if(this.nextStepAfterSave){
1008
1014
  let result = this.nextStepAfterSave(this.$this,this);
1009
- if(result && result.then){
1015
+ if(result && (result instanceof Promise)){
1010
1016
  result.then(res => {
1011
1017
  resolve(res);
1012
1018
  })
@@ -1024,7 +1030,7 @@ class WorkflowEngine {
1024
1030
  return new Promise(resolve => {
1025
1031
  if(this.saveFormInfo){
1026
1032
  let result = this.saveFormInfo(type);
1027
- if(result && result.then){
1033
+ if(result && (result instanceof Promise)){
1028
1034
  result.then(res => {
1029
1035
  if(!res){
1030
1036
  this.isDisabled['nextStep'] = true;
@@ -1762,6 +1768,9 @@ class WorkflowEngine {
1762
1768
  }).then(res => {
1763
1769
  if (res && res.data && res.data.operateSuccess) {
1764
1770
  this.$this.$message({type: "success", message: "退回成功!"});
1771
+ let currentNodeObj = this.flowNodeIdToInfo[currentInst.currentNode] ||{};
1772
+ this.exeNewFlowEvent("backSubmit",currentNodeObj.nodeLinkId);
1773
+ this.backSubmitEvent && this.backSubmitEvent(this.$this,this,currentInst);
1765
1774
  this.initTabNum && this.initTabNum();
1766
1775
  if (this.getFlowBatchDialog && this.getFlowBatchDialog()) {
1767
1776
  this.batchTabRemove(this.currentInst.dataId);
@@ -1802,6 +1811,9 @@ class WorkflowEngine {
1802
1811
  }).then(res => {
1803
1812
  if (res && res.data && res.data.operateSuccess) {
1804
1813
  this.$this.$message({type: "success", message: "取回成功!"});
1814
+ let currentNodeObj = this.flowNodeIdToInfo[currentInst.currentNode] ||{};
1815
+ this.exeNewFlowEvent("getBackSubmit",currentNodeObj.nodeLinkId);
1816
+ this.getBackSubmitEvent && this.getBackSubmitEvent(this.$this,this,currentInst);
1805
1817
  this.initTabNum && this.initTabNum();
1806
1818
  if (this.getFlowBatchDialog && this.getFlowBatchDialog()) {
1807
1819
  this.batchTabRemove(this.currentInst.dataId);