fix this issue (#15695)

This commit is contained in:
calvin 2024-03-11 21:02:14 +08:00 committed by GitHub
parent cd63069317
commit 2395ba5ef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,15 +163,17 @@ export function useTaskEdit(options: Options) {
*/
function taskConfirm({ data }: any) {
const taskDef = formatParams(data).taskDefinitionJsonObj as NodeData
// override target config
processDefinition.value.taskDefinitionList =
processDefinition.value.taskDefinitionList.map((task) => {
if (task.code === currTask.value?.code) {
setNodeName(task.code + '', taskDef.name)
let fillColor = '#ffffff'
if (task.flag === 'YES') {
if (taskDef.flag === 'NO') {
fillColor = 'var(--custom-disable-bg)'
}
setNodeFillColor(task.code + '', fillColor)
setNodeEdge(String(task.code), data.preTasks)