|
|
@ -47,6 +47,7 @@ export function useTaskEdit(options: Options) { |
|
|
|
getSources, |
|
|
|
getSources, |
|
|
|
getTargets, |
|
|
|
getTargets, |
|
|
|
setNodeName, |
|
|
|
setNodeName, |
|
|
|
|
|
|
|
setNodeFillColor, |
|
|
|
setNodeEdge |
|
|
|
setNodeEdge |
|
|
|
} = useCellUpdate({ |
|
|
|
} = useCellUpdate({ |
|
|
|
graph |
|
|
|
graph |
|
|
@ -167,6 +168,11 @@ export function useTaskEdit(options: Options) { |
|
|
|
processDefinition.value.taskDefinitionList.map((task) => { |
|
|
|
processDefinition.value.taskDefinitionList.map((task) => { |
|
|
|
if (task.code === currTask.value?.code) { |
|
|
|
if (task.code === currTask.value?.code) { |
|
|
|
setNodeName(task.code + '', taskDef.name) |
|
|
|
setNodeName(task.code + '', taskDef.name) |
|
|
|
|
|
|
|
let fillColor = '#f3f3f5' |
|
|
|
|
|
|
|
if (task.flag === 'NO') { |
|
|
|
|
|
|
|
fillColor = '#ffffff' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
setNodeFillColor(task.code + '', fillColor) |
|
|
|
|
|
|
|
|
|
|
|
setNodeEdge(String(task.code), data.preTasks) |
|
|
|
setNodeEdge(String(task.code), data.preTasks) |
|
|
|
updatePreTasks(data.preTasks, task.code) |
|
|
|
updatePreTasks(data.preTasks, task.code) |
|
|
|