|
|
@ -717,9 +717,11 @@ 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)); |
|
|
|
|
|
|
|
if (link.type == "0") { |
|
|
|
link.lag = lag; |
|
|
|
link.lag = lag; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|