mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 07:29:24 +08:00
feat: gantt block suprt process update
This commit is contained in:
parent
3e01b71234
commit
fe899d19f3
@ -84,7 +84,7 @@ const formatData = (data = [], fieldNames, tasks: any[] = [], projectId: any = u
|
|||||||
name: item[fieldNames.title],
|
name: item[fieldNames.title],
|
||||||
id: item.id + '',
|
id: item.id + '',
|
||||||
type: 'project',
|
type: 'project',
|
||||||
progress: item[fieldNames.progress],
|
progress: item[fieldNames.progress] * 100 || 0,
|
||||||
hideChildren: true,
|
hideChildren: true,
|
||||||
});
|
});
|
||||||
formatData(item.children, fieldNames, tasks, item.id + '');
|
formatData(item.children, fieldNames, tasks, item.id + '');
|
||||||
@ -95,7 +95,7 @@ const formatData = (data = [], fieldNames, tasks: any[] = [], projectId: any = u
|
|||||||
name: item[fieldNames.title],
|
name: item[fieldNames.title],
|
||||||
id: item.id + '',
|
id: item.id + '',
|
||||||
type: fieldNames.end?'task':'milestone',
|
type: fieldNames.end?'task':'milestone',
|
||||||
progress: item[fieldNames.progress]*100,
|
progress: item[fieldNames.progress] * 100 || 0,
|
||||||
project: projectId,
|
project: projectId,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user