sasp-flow-render 1.1.29-decoupling → 1.1.30-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.29-decoupling",
3
+ "version": "1.1.30-decoupling",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -240,43 +240,48 @@ class WorkflowEngine {
240
240
  disabled: false,
241
241
  show: false,
242
242
  method: () => {
243
- this.$this.saspFlowAxios.post(this.$this.api.plFlowInst.stopFlow, {
244
- instId: this.currentInst.flowInstId, type: "0",
245
- procInstId: this.currentInst.linkProcId,
246
- taskId: this.currentInst.taskId
247
- }).then(res => {
248
- if (res && res.data) {
249
- if (res.data.operateSuccess) {
250
- this.$this.$message({type: "success", message: "中止成功!"});
251
- if (this.getFlowBatchDialog && this.getFlowBatchDialog()) {
252
- this.batchTabRemove(this.currentInst.dataId);
243
+ this.$this.$confirm('确定要中止此流程吗?', '警告', {
244
+ confirmButtonText: '确定',
245
+ cancelButtonText: '取消',
246
+ }).then(() => {
247
+ this.$this.saspFlowAxios.post(this.$this.api.plFlowInst.stopFlow, {
248
+ instId: this.currentInst.flowInstId, type: "0",
249
+ procInstId: this.currentInst.linkProcId,
250
+ taskId: this.currentInst.taskId
251
+ }).then(res => {
252
+ if (res && res.data) {
253
+ if (res.data.operateSuccess) {
254
+ this.$this.$message({type: "success", message: "中止成功!"});
255
+ if (this.getFlowBatchDialog && this.getFlowBatchDialog()) {
256
+ this.batchTabRemove(this.currentInst.dataId);
257
+ } else {
258
+ this.tabCrudSearch && this.tabCrudSearch();
259
+ this.flowInstDataDialog = false;
260
+ this.$flowDialog.operateDialog('flowInstDataDialog',false);
261
+ }
262
+ this.initTabNum && this.initTabNum();
263
+
264
+ let remindParam = {
265
+ instId:this.currentInst.flowInstId,
266
+ flowId:this.flowDefine.id,
267
+ flowName:this.flowDefine.flowName,
268
+ // formId:this.formInfo.formId,
269
+ // listViewId:this.formInfo.listViewId,
270
+ dataId:this.formInfo.dataId,
271
+ instType:"stopped"
272
+ };
273
+ this.$this.saspFlowAxios.post(this.$this.api.plFlowInst.saveRemind,remindParam);
274
+
275
+ //执行事件规则
276
+ let currentNodeObj = this.flowNodeIdToInfo[this.currentInst.currentNode] ||{};
277
+ if(currentNodeObj.openEvent == '1'){
278
+ this.exeNewFlowEvent("suspend",currentNodeObj.nodeLinkId||'');
279
+ }
253
280
  } else {
254
- this.tabCrudSearch && this.tabCrudSearch();
255
- this.flowInstDataDialog = false;
256
- this.$flowDialog.operateDialog('flowInstDataDialog',false);
281
+ this.$this.$message({type: "error", message: res.data.operateMessage});
257
282
  }
258
- this.initTabNum && this.initTabNum();
259
-
260
- let remindParam = {
261
- instId:this.currentInst.flowInstId,
262
- flowId:this.flowDefine.id,
263
- flowName:this.flowDefine.flowName,
264
- // formId:this.formInfo.formId,
265
- // listViewId:this.formInfo.listViewId,
266
- dataId:this.formInfo.dataId,
267
- instType:"stopped"
268
- };
269
- this.$this.saspFlowAxios.post(this.$this.api.plFlowInst.saveRemind,remindParam);
270
-
271
- //执行事件规则
272
- let currentNodeObj = this.flowNodeIdToInfo[this.currentInst.currentNode] ||{};
273
- if(currentNodeObj.openEvent == '1'){
274
- this.exeNewFlowEvent("suspend",currentNodeObj.nodeLinkId||'');
275
- }
276
- } else {
277
- this.$this.$message({type: "error", message: res.data.operateMessage});
278
283
  }
279
- }
284
+ });
280
285
  });
281
286
  }
282
287
  },
@@ -1966,7 +1971,7 @@ class WorkflowEngine {
1966
1971
  }else {
1967
1972
  arrNodeFormBtns = this.nodeFormBtnObj[this.flowVersionNodeObj[this.flowDefine.releaseVersion][this.startNodeKeyObj[this.flowDefine.releaseVersion]].id];
1968
1973
  }
1969
- let hideBtnTypes = new Set(["getBack","stopped"]);
1974
+ let hideBtnTypes = new Set(["getBack"]);
1970
1975
  if (this.tabActive == "draft") {
1971
1976
  hideBtnTypes.add("flowRecord");
1972
1977
  hideBtnTypes.add("record");