mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 23:19:26 +08:00
feat: gantt block suprt process update
This commit is contained in:
parent
01e93148b9
commit
b6db10944d
@ -91,7 +91,7 @@ const formatData = (data = [], fieldNames, tasks: any[] = [], projectId: any = u
|
||||
} else {
|
||||
tasks.push({
|
||||
start: new Date(item[fieldNames.start]),
|
||||
end: new Date(item[fieldNames.end]||item[fieldNames.start]+1),
|
||||
end: new Date(item[fieldNames.end]||item[fieldNames.start]),
|
||||
name: item[fieldNames.title],
|
||||
id: item.id + '',
|
||||
type: fieldNames.end?'task':'milestone',
|
||||
|
@ -377,6 +377,7 @@ export const Gantt: any = (props:any) => {
|
||||
[fieldNames.progress]: task.progress/100,
|
||||
},
|
||||
});
|
||||
await ctx.service.refresh();
|
||||
};
|
||||
const handleTaskChange = async (task:Task) => {
|
||||
await resource.update({
|
||||
|
Loading…
x
Reference in New Issue
Block a user