feat: gantt block suprt process update

This commit is contained in:
katherinehhh 2023-02-01 16:03:55 +08:00
parent 01e93148b9
commit b6db10944d
2 changed files with 2 additions and 1 deletions

View File

@ -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',

View File

@ -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({