fix: gantt abnormal drag and drop update action (#1760)
This commit is contained in:
parent
bc8d81333b
commit
5d95eed09a
@ -403,7 +403,6 @@ export const Gantt: any = (props: any) => {
|
|||||||
await resource.update({
|
await resource.update({
|
||||||
filterByTk: task.id,
|
filterByTk: task.id,
|
||||||
values: {
|
values: {
|
||||||
...task,
|
|
||||||
[fieldNames.progress]: task.progress / 100,
|
[fieldNames.progress]: task.progress / 100,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -414,7 +413,6 @@ export const Gantt: any = (props: any) => {
|
|||||||
await resource.update({
|
await resource.update({
|
||||||
filterByTk: task.id,
|
filterByTk: task.id,
|
||||||
values: {
|
values: {
|
||||||
...task,
|
|
||||||
[fieldNames.start]: task.start,
|
[fieldNames.start]: task.start,
|
||||||
[fieldNames.end]: task.end,
|
[fieldNames.end]: task.end,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user