diff --git a/ruoyi-system/src/main/java/com/ruoyi/workflow/service/impl/WfInstanceServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/workflow/service/impl/WfInstanceServiceImpl.java index 8da38c64..de0362e6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/workflow/service/impl/WfInstanceServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/workflow/service/impl/WfInstanceServiceImpl.java @@ -138,6 +138,7 @@ public class WfInstanceServiceImpl extends FlowServiceFactory implements IWfInst WfTaskVo taskVo = new WfTaskVo(); taskVo.setProcDefId(taskInstance.getProcessDefinitionId()); taskVo.setTaskId(taskInstance.getId()); + taskVo.setTaskDefKey(taskInstance.getTaskDefinitionKey()); taskVo.setTaskName(taskInstance.getName()); taskVo.setCreateTime(taskInstance.getStartTime()); taskVo.setFinishTime(taskInstance.getEndTime()); diff --git a/ruoyi-ui/src/components/ProcessViewer/index.vue b/ruoyi-ui/src/components/ProcessViewer/index.vue index f30cabea..15636f5a 100644 --- a/ruoyi-ui/src/components/ProcessViewer/index.vue +++ b/ruoyi-ui/src/components/ProcessViewer/index.vue @@ -22,21 +22,18 @@ - + - - + + + + + + - - - - @@ -181,7 +178,7 @@ export default { this.dlgTitle = element.businessObject ? element.businessObject.name : undefined; // 计算当前悬浮任务审批记录,如果记录为空不显示弹窗 this.taskCommentList = (this.allCommentList || []).filter(item => { - return item.taskKey === this.selectTaskId; + return item.taskDefKey === this.selectTaskId; }); this.dialogVisible = true; }, diff --git a/ruoyi-ui/src/views/workflow/work/detail.vue b/ruoyi-ui/src/views/workflow/work/detail.vue index e3dc434c..f7e726e1 100644 --- a/ruoyi-ui/src/views/workflow/work/detail.vue +++ b/ruoyi-ui/src/views/workflow/work/detail.vue @@ -98,7 +98,7 @@