sasp-flow-render 1.1.13 → 1.1.14
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
|
@@ -155,6 +155,7 @@ let objResult = {
|
|
|
155
155
|
reStartFlow:"/plFlowInstController/reStartFlow", //重启办结状态下的流程
|
|
156
156
|
batchUpdateFlowStatus:"/plFlowInstController/batchUpdateFlowStatus", //新版流程批量处理的批量修改流程状态
|
|
157
157
|
batchExecuteNextStep:"/plFlowInstController/batchExecuteNextStep", //新版流程批量处理的批量执行下一步
|
|
158
|
+
recoverNode:"/plFlowInstController/recoverNode", //恢复指定节点
|
|
158
159
|
},
|
|
159
160
|
|
|
160
161
|
plFlowSetting:{
|
|
@@ -1915,18 +1915,33 @@
|
|
|
1915
1915
|
nextStep() {
|
|
1916
1916
|
// let type = this.flowBatchPendingDialog ? "batch" : "";
|
|
1917
1917
|
let afterClickResult;
|
|
1918
|
+
let result;
|
|
1918
1919
|
let currentNodeObj = this.flowNodeIdToInfo[this.currentInst.currentNode || this.draftNodeId] ||{};
|
|
1919
1920
|
afterClickResult=this.exeFlowEvent("nextStep","afterClick", this.currentInst.currentNode || this.draftNodeId);
|
|
1920
|
-
|
|
1921
|
+
|
|
1922
|
+
if(typeof afterClickResult == "boolean" && afterClickResult === false){
|
|
1923
|
+
return;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1921
1926
|
if(currentNodeObj.openEvent === '1'){
|
|
1922
1927
|
afterClickResult = this.exeNewFlowEvent("nextClick",currentNodeObj.nodeLinkId);
|
|
1923
1928
|
}
|
|
1924
1929
|
|
|
1930
|
+
if(typeof afterClickResult == "boolean" && afterClickResult === false){
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1925
1934
|
// let afterValidateResult;
|
|
1926
1935
|
// let currentNodeObj = this.flowNodeIdToInfo[this.currentInst.currentNode || this.draftNodeId] ||{};
|
|
1927
|
-
this.exeFlowEvent("nextStep","afterValidate", this.currentInst.currentNode || this.draftNodeId);
|
|
1936
|
+
result = this.exeFlowEvent("nextStep","afterValidate", this.currentInst.currentNode || this.draftNodeId);
|
|
1937
|
+
if(typeof result == "boolean" && result === false){
|
|
1938
|
+
return;
|
|
1939
|
+
}
|
|
1928
1940
|
if(currentNodeObj.openEvent === '1'){
|
|
1929
|
-
this.exeNewFlowEvent("nextCheck",currentNodeObj.nodeLinkId);
|
|
1941
|
+
result = this.exeNewFlowEvent("nextCheck",currentNodeObj.nodeLinkId);
|
|
1942
|
+
if(typeof result == "boolean" && result === false){
|
|
1943
|
+
return;
|
|
1944
|
+
}
|
|
1930
1945
|
}
|
|
1931
1946
|
|
|
1932
1947
|
this.isDisabled['nextStep'] = false;
|
|
@@ -265,13 +265,26 @@
|
|
|
265
265
|
],
|
|
266
266
|
|
|
267
267
|
appendSignNodeArr: [],
|
|
268
|
-
flowNodeAppendSignDatas: []
|
|
268
|
+
flowNodeAppendSignDatas: [],
|
|
269
|
+
linkProcId: '',
|
|
270
|
+
isPrevious: false
|
|
269
271
|
};
|
|
270
272
|
},
|
|
271
273
|
created() {
|
|
274
|
+
this.initData();
|
|
272
275
|
this.init();
|
|
273
276
|
},
|
|
274
277
|
methods: {
|
|
278
|
+
initData() {
|
|
279
|
+
this.saspFlowAxios.post(this.api.plFlowInst.getById,{"id":this.instId}).then(res => {
|
|
280
|
+
let flowInst = res.data;
|
|
281
|
+
this.linkProcId = flowInst["linkProcId"] || '';
|
|
282
|
+
if(flowInst["previousInstId"]) {
|
|
283
|
+
this.isPrevious = true;
|
|
284
|
+
}
|
|
285
|
+
})
|
|
286
|
+
},
|
|
287
|
+
|
|
275
288
|
init() {
|
|
276
289
|
this.flowInstNodeArr = [];
|
|
277
290
|
this.loading = true;
|
|
@@ -459,6 +472,9 @@
|
|
|
459
472
|
}
|
|
460
473
|
if(item.activityType == "startEvent"){
|
|
461
474
|
item.actorUserName = "";
|
|
475
|
+
if(this.isPrevious && this.linkProcId !== '' && item.rootProcessInstanceId === this.linkProcId) {
|
|
476
|
+
item.activityName = "恢复";
|
|
477
|
+
}
|
|
462
478
|
}else if(variables["resolve_" + item.taskId]){ // 代理
|
|
463
479
|
item.actorUserName += "(由用户‘"+ userIdsMap[variables["resolve_" + item.taskId]] + "’代理完成)";
|
|
464
480
|
}else if(variables["getBack_" + item.taskId]){ // 取回
|
|
@@ -560,6 +576,9 @@
|
|
|
560
576
|
},
|
|
561
577
|
|
|
562
578
|
sortInst(a,b){
|
|
579
|
+
if(this.isPrevious) {
|
|
580
|
+
return a.endTime - b.endTime;
|
|
581
|
+
}
|
|
563
582
|
if(a.endTime && b.endTime){
|
|
564
583
|
if(a.activityType == "startEvent"){
|
|
565
584
|
return -1;
|
|
@@ -617,6 +636,9 @@
|
|
|
617
636
|
*/
|
|
618
637
|
nodeInstIcon(nodeInst) {
|
|
619
638
|
if (nodeInst.activityType == "startEvent") {
|
|
639
|
+
if(this.isPrevious && this.linkProcId !== '' && nodeInst.rootProcessInstanceId === this.linkProcId) {
|
|
640
|
+
return "el-icon-refresh";
|
|
641
|
+
}
|
|
620
642
|
return "el-icon-caret-right";
|
|
621
643
|
} else if (nodeInst.activityType == "userTask") {
|
|
622
644
|
return "el-icon-user-solid";
|