fix(办公管理): 修复我的流程列表当前节点无显示问题,移除办理列
This commit is contained in:
@@ -188,15 +188,9 @@ public class WfProcessServiceImpl extends FlowServiceFactory implements IWfProce
|
|||||||
taskVo.setProcDefVersion(hisIns.getProcessDefinitionVersion());
|
taskVo.setProcDefVersion(hisIns.getProcessDefinitionVersion());
|
||||||
taskVo.setCategory(deployment.getCategory());
|
taskVo.setCategory(deployment.getCategory());
|
||||||
// 当前所处流程
|
// 当前所处流程
|
||||||
List<Task> taskList = taskService.createTaskQuery().processInstanceId(hisIns.getId()).list();
|
List<Task> taskList = taskService.createTaskQuery().processInstanceId(hisIns.getId()).includeIdentityLinks().list();
|
||||||
if (CollUtil.isNotEmpty(taskList)) {
|
if (CollUtil.isNotEmpty(taskList)) {
|
||||||
taskVo.setTaskId(taskList.get(0).getId());
|
taskVo.setTaskName(taskList.stream().map(Task::getName).filter(StringUtils::isNotEmpty).collect(Collectors.joining(",")));
|
||||||
} else {
|
|
||||||
List<HistoricTaskInstance> historicTaskInstance = historyService.createHistoricTaskInstanceQuery()
|
|
||||||
.processInstanceId(hisIns.getId()).orderByHistoricTaskInstanceEndTime().desc().list();
|
|
||||||
if (CollUtil.isNotEmpty(historicTaskInstance)) {
|
|
||||||
taskVo.setTaskId(historicTaskInstance.get(0).getId());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
taskVoList.add(taskVo);
|
taskVoList.add(taskVo);
|
||||||
}
|
}
|
||||||
@@ -235,15 +229,9 @@ public class WfProcessServiceImpl extends FlowServiceFactory implements IWfProce
|
|||||||
taskVo.setProcDefVersion(hisIns.getProcessDefinitionVersion());
|
taskVo.setProcDefVersion(hisIns.getProcessDefinitionVersion());
|
||||||
taskVo.setCategory(deployment.getCategory());
|
taskVo.setCategory(deployment.getCategory());
|
||||||
// 当前所处流程
|
// 当前所处流程
|
||||||
List<Task> taskList = taskService.createTaskQuery().processInstanceId(hisIns.getId()).list();
|
List<Task> taskList = taskService.createTaskQuery().processInstanceId(hisIns.getId()).includeIdentityLinks().list();
|
||||||
if (CollUtil.isNotEmpty(taskList)) {
|
if (CollUtil.isNotEmpty(taskList)) {
|
||||||
taskVo.setTaskId(taskList.get(0).getId());
|
taskVo.setTaskName(taskList.stream().map(Task::getName).filter(StringUtils::isNotEmpty).collect(Collectors.joining(",")));
|
||||||
} else {
|
|
||||||
List<HistoricTaskInstance> historicTaskInstance = historyService.createHistoricTaskInstanceQuery()
|
|
||||||
.processInstanceId(hisIns.getId()).orderByHistoricTaskInstanceEndTime().desc().list();
|
|
||||||
if (CollUtil.isNotEmpty(historicTaskInstance)) {
|
|
||||||
taskVo.setTaskId(historicTaskInstance.get(0).getId());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
taskVoList.add(taskVo);
|
taskVoList.add(taskVo);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,7 @@
|
|||||||
<el-tag size="medium" >v{{ scope.row.procDefVersion }}</el-tag>
|
<el-tag size="medium" >v{{ scope.row.procDefVersion }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="当前节点" align="center" prop="taskName"/>
|
||||||
<el-table-column label="提交时间" align="center" prop="createTime" width="180"/>
|
<el-table-column label="提交时间" align="center" prop="createTime" width="180"/>
|
||||||
<el-table-column label="流程状态" align="center" width="100">
|
<el-table-column label="流程状态" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -89,13 +90,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="耗时" align="center" prop="duration" width="180"/>
|
<el-table-column label="耗时" align="center" prop="duration" width="180"/>
|
||||||
<el-table-column label="当前节点" align="center" prop="taskName"/>
|
|
||||||
<el-table-column label="办理" align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<label v-if="scope.row.assigneeName">{{scope.row.assigneeName}} <el-tag type="info" size="mini">{{scope.row.deptName}}</el-tag></label>
|
|
||||||
<label v-if="scope.row.candidate">{{scope.row.candidate}}</label>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
|||||||
Reference in New Issue
Block a user