We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb3fb9a commit b8b966fCopy full SHA for b8b966f
admin-ui/src/components/Flow/flow/data.ts
@@ -268,6 +268,20 @@ export class FlowData extends FlowWorkData {
268
return false;
269
}
270
271
+ // 是否是退回状态
272
+ isReject(){
273
+ const historyRecords = this.data.historyRecords || [];
274
+ const currentRecord = this.data.flowRecord;
275
+ if(currentRecord && historyRecords.length>0){
276
+ const preId = currentRecord.preId;
277
+ const preRecord = historyRecords.find((item:any)=>item.id===preId);
278
+ if(preRecord){
279
+ return preRecord.flowSourceDirection === 'REJECT';
280
+ }
281
282
+ return false;
283
284
+
285
// 是否是结束节点
286
private isFinished() {
287
if (this.data.flowRecord) {
0 commit comments