sasp-flow-render 1.1.28-decoupling → 1.1.29-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/index.js CHANGED
@@ -125,7 +125,8 @@ let initAxios = (Vue, props) => {
125
125
  let loadFlowDialog = (Vue,opts) => {
126
126
  // 创建 Dialog 实例并挂载到 body
127
127
  const DialogConstructor = Vue.extend(flowDialog);
128
- const instance = new DialogConstructor().$mount();
128
+ let router = opts.router;
129
+ const instance = new DialogConstructor({router}).$mount();
129
130
  document.body.appendChild(instance.$el);
130
131
 
131
132
  // 将实例挂载到 Vue 原型,方便全局调用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sasp-flow-render",
3
- "version": "1.1.28-decoupling",
3
+ "version": "1.1.29-decoupling",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -56,7 +56,8 @@ class WorkflowEngine {
56
56
  this.getFormInfo = methods["getFormInfo"];
57
57
  this.flowNextOperation = methods["flowNextOperation"];
58
58
  this.forceUpdateComponent = methods["forceUpdateComponent"];
59
- this.nextStepAfterSave = methods["nextStepAfterSave"];
59
+ this.nextStepAfterSave = methods["nextStepAfterSave"]; // 流程下一步保存表单数据后的回调
60
+ this.afterNextStepSuccess = methods["afterNextStepSuccess"]; // 流程下一步成功后,即关闭对话框后的回调
60
61
  this.setParams = methods["setParams"];
61
62
 
62
63
  if(!this.initFormInfo){
@@ -165,7 +166,7 @@ class WorkflowEngine {
165
166
  type: "success",
166
167
  icon: "el-icon-check",
167
168
  disabled: false,
168
- show: true,
169
+ show: false,
169
170
  method: () => {
170
171
  this.saveDraft();
171
172
  }
@@ -176,7 +177,7 @@ class WorkflowEngine {
176
177
  type: "primary",
177
178
  icon: "el-icon-d-arrow-right",
178
179
  disabled: false,
179
- show: true,
180
+ show: false,
180
181
  method: () => {
181
182
  this.nextStep();
182
183
  // this.isDisabled1 = true;
@@ -348,7 +349,7 @@ class WorkflowEngine {
348
349
  type: "warning",
349
350
  icon: "saspiconfont pl-icon-liuchengtu",
350
351
  disabled: false,
351
- show: true,
352
+ show: false,
352
353
  isView: true,
353
354
  method: () => {
354
355
  this.openFlowRecord(this.currentInst);
@@ -359,7 +360,7 @@ class WorkflowEngine {
359
360
  type: "",
360
361
  icon: "el-icon-close",
361
362
  disabled: false,
362
- show: true,
363
+ show: false,
363
364
  isView: true,
364
365
  method: () => {
365
366
  this.flowInstDataDialog = false;
@@ -1889,14 +1890,14 @@ class WorkflowEngine {
1889
1890
  */
1890
1891
  openFlowRecord(row) {
1891
1892
  let arr = ["2", "3", "4"]; // 旧版本的已办结已撤销以及已中止数据通过旧版接口查询流转记录
1893
+ this.$flowDialog.fillFlowDialogParams({
1894
+ flowRecordObj: this.flowRecordObj
1895
+ });
1892
1896
  if (arr.indexOf(row.flowStatus) > -1 && row.isOldData === "1") {
1893
1897
  this.flowRecordObj = {instId: row.flowInstId || "", oldDialogVisible: true};
1894
1898
  } else {
1895
1899
  this.flowRecordObj = {instId: row.flowInstId || "", dialogVisible: true};
1896
1900
  }
1897
- this.$flowDialog.fillFlowDialogParams({
1898
- flowRecordObj: this.flowRecordObj
1899
- });
1900
1901
  }
1901
1902
 
1902
1903
  openFlowChart(row) {
@@ -668,19 +668,11 @@ export default {
668
668
  let type = this.flowBatchPendingDialog ? "batch" : "";
669
669
  let currentNodeObj = this.flowNodeIdToInfo[this.currentInst.currentNode || this.draftNodeId] ||{};
670
670
  let submitSuccessRusult;
671
- if (type == 'batch') {
672
- // 批量处理
673
- let ref = "batchTableForm"+this.batchUpdateFormInfo.activeName+"Ref";
674
- submitSuccessRusult=this.workFlowUtil.exeFlowEvent("nextStep","submitSuccess", this.currentInst.currentNode || this.draftNodeId,ref);
675
- if(currentNodeObj.openEvent == '1'){
676
- submitSuccessRusult = this.workFlowUtil.exeNewFlowEvent("nextSubmit",currentNodeObj.nodeLinkId||'',ref)
677
- }
678
- } else {
679
- submitSuccessRusult=this.workFlowUtil.exeFlowEvent("nextStep","submitSuccess", this.currentInst.currentNode || this.draftNodeId);
680
- if(currentNodeObj.openEvent == '1'){
681
- submitSuccessRusult =this.workFlowUtil.exeNewFlowEvent("nextSubmit",currentNodeObj.nodeLinkId||'')
682
- }
671
+ submitSuccessRusult=this.workFlowUtil.exeFlowEvent("nextStep","submitSuccess", this.currentInst.currentNode || this.draftNodeId);
672
+ if(currentNodeObj.openEvent == '1'){
673
+ submitSuccessRusult =this.workFlowUtil.exeNewFlowEvent("nextSubmit",currentNodeObj.nodeLinkId||'')
683
674
  }
675
+ this.workFlowUtil.afterNextStepSuccess && this.workFlowUtil.afterNextStepSuccess(this.workFlowUtil.$this,this.workFlowUtil);
684
676
  if(submitSuccessRusult){
685
677
  //办结提醒
686
678
  if(this.nextNode.nodeType == "EndEvent"){
@@ -138,10 +138,11 @@
138
138
  "label":"用户名称",
139
139
  },
140
140
  ], //用户信息
141
+ loginUser:{}
141
142
  }
142
143
  },
143
144
  created(){
144
-
145
+ this.loginUser = this.FLOW_CACHE_GLOBAL.getLoginUser() || {};
145
146
  },
146
147
  methods:{
147
148
  /**