mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 15:39:24 +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 {
|
} else {
|
||||||
tasks.push({
|
tasks.push({
|
||||||
start: new Date(item[fieldNames.start]),
|
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],
|
name: item[fieldNames.title],
|
||||||
id: item.id + '',
|
id: item.id + '',
|
||||||
type: fieldNames.end?'task':'milestone',
|
type: fieldNames.end?'task':'milestone',
|
||||||
|
@ -377,6 +377,7 @@ export const Gantt: any = (props:any) => {
|
|||||||
[fieldNames.progress]: task.progress/100,
|
[fieldNames.progress]: task.progress/100,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
await ctx.service.refresh();
|
||||||
};
|
};
|
||||||
const handleTaskChange = async (task:Task) => {
|
const handleTaskChange = async (task:Task) => {
|
||||||
await resource.update({
|
await resource.update({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user