feat: gantt block suprt process update

This commit is contained in:
katherinehhh 2023-02-01 21:13:05 +08:00
parent 3e01b71234
commit fe899d19f3

View File

@ -84,7 +84,7 @@ const formatData = (data = [], fieldNames, tasks: any[] = [], projectId: any = u
name: item[fieldNames.title],
id: item.id + '',
type: 'project',
progress: item[fieldNames.progress],
progress: item[fieldNames.progress] * 100 || 0,
hideChildren: true,
});
formatData(item.children, fieldNames, tasks, item.id + '');
@ -95,7 +95,7 @@ const formatData = (data = [], fieldNames, tasks: any[] = [], projectId: any = u
name: item[fieldNames.title],
id: item.id + '',
type: fieldNames.end?'task':'milestone',
progress: item[fieldNames.progress]*100,
progress: item[fieldNames.progress] * 100 || 0,
project: projectId,
});
}