|
|
@ -717,7 +717,9 @@ function updateLinksLag(data) { |
|
|
|
let predecessor = data.data.find(item => item.id == link.source); |
|
|
|
let predecessor = data.data.find(item => item.id == link.source); |
|
|
|
if (predecessor) { |
|
|
|
if (predecessor) { |
|
|
|
let lag = gantt.calculateDuration(new Date(predecessor.end_date), new Date(task.start_date)); |
|
|
|
let lag = gantt.calculateDuration(new Date(predecessor.end_date), new Date(task.start_date)); |
|
|
|
link.lag = lag; |
|
|
|
if (link.type == "0") { |
|
|
|
|
|
|
|
link.lag = lag; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|