|
|
|
|
@ -334,18 +334,11 @@ export default { |
|
|
|
|
handleResolveFlows(flow) { |
|
|
|
|
const flows = [] |
|
|
|
|
|
|
|
|
|
// 更改待办节点颜色
|
|
|
|
|
flow.reverse() |
|
|
|
|
const lastUserEvent = flow.find(f => f.historyActivityType == 'userTask') |
|
|
|
|
const endEvent = flow.find(f => f.historyActivityType == 'endEvent') |
|
|
|
|
if (lastUserEvent && !endEvent) lastUserEvent.class = 'nodePrimary' |
|
|
|
|
flow.reverse() |
|
|
|
|
|
|
|
|
|
flow.forEach(f => { |
|
|
|
|
const { assigneeName, createTime, comments } = f |
|
|
|
|
const { assigneeName, createTime, endTime, comments } = f |
|
|
|
|
const ff = { |
|
|
|
|
id: f.historyActivityId, |
|
|
|
|
class: f.class |
|
|
|
|
class: !endTime ? 'nodePrimary': '' |
|
|
|
|
} |
|
|
|
|
let tooltip = '' |
|
|
|
|
if (assigneeName) { |
|
|
|
|
|