auto_scheduling_use_progress
信息
此功能仅在PRO版本中可用。
Description
设置调度算法如何处理已完成的任务
auto_scheduling_use_progress: boolean
Example
gantt.config.auto_scheduling_use_progress = true;
gantt.init("gantt_here");
Default value: false
Details
注释
该设置属于 auto_scheduling 或 critical_path 扩展的一部分。要使用它,您需要启用 auto_scheduling 或 critical_path 插件。更多信息请参见 自动调度 和 关键路径 文档。
启用后,关键路径、slack 和自动调度算法将考虑任务的进度,类似于 MS Project 的操作,具体如下:
-
标记为已完成(进度为 100%)的任务始终具有零 slack;
-
已完成的任务将从自动调度计算中排除。连接前置任务到已完成任务的依赖关系将被忽略;
-
已完成的任务不能成为关键路径的一部分。
注释
Sample: 使用进度进行自动调度、关键路径和 slack 计算
Related API
- auto_scheduling
- auto_scheduling_descendant_links
- auto_scheduling_move_projects
- auto_scheduling_project_constraint
- auto_scheduling_strict
- findCycles
- isCircularLink
- onAfterAutoSchedule
- onAfterTaskAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onCircularLinkError
- onAutoScheduleCircularLink
Related Guides
Change log
- 在 v8.0 中添加
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.