diff --git a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java index 7debaee6..9ffa60f2 100644 --- a/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java +++ b/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java @@ -786,7 +786,9 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask SysUser startUser = sysUserService.selectUserById(Long.parseLong(historicProcessInstance.getStartUserId())); flowTask.setStartUserId(startUser.getNickName()); flowTask.setStartUserName(startUser.getNickName()); - flowTask.setStartDeptName(startUser.getDept().getDeptName()); + if(Objects.nonNull(startUser.getDept())) { + flowTask.setStartDeptName(startUser.getDept().getDeptName()); + } hisTaskList.add(flowTask); } page.setTotal(taskInstanceQuery.count()); diff --git a/ruoyi-ui/src/components/Process/PropertyPanel.vue b/ruoyi-ui/src/components/Process/PropertyPanel.vue index 30834db1..a5b7abcd 100644 --- a/ruoyi-ui/src/components/Process/PropertyPanel.vue +++ b/ruoyi-ui/src/components/Process/PropertyPanel.vue @@ -122,7 +122,9 @@ export default { if (element.type === 'bpmn:Process' || element.type === 'bpmn:SequenceFlow' || element.type === 'bpmn:EndEvent' ) { - this.element = element + this.$nextTick().then(() => { + this.element = element + }) } }) this.modeler.on('selection.changed', e => {