auto_scheduling_use_progress
信息
此功能仅在 PRO 版本中可用。
警告
该属性在 v9.1 中已被废弃,请改用 gantt.config.auto_scheduling 的 use_progress 属性。
Description
设置调度算法处理 已完成任务的方式
auto_scheduling_use_progress: boolean
Example
gantt.config.auto_scheduling_use_progress = true;
gantt.init("gantt_here");
默认值: false
Details
注释
此配置在 auto_scheduling 或 critical_path 扩展中定义,因此您需要激活 auto_scheduling 或 critical_path 插件。请在 Auto Scheduling 与 Critical Path 文章中阅读详细信息。
当启用该属性时,关键路径、松弛时间和自动调度算法将考虑任务进度的数值,这与这些方法在 MS Project 中的工作方式类似,即:
-
已完成的任务(进度为 100% 的任务)始终没有松弛时间;
-
已完成的任务不参与自动调度的计算。连接前置任务与已完成任务的关系将被忽略;
-
已完成的任务不能成为关键任务。
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
- 该属性在 v9.1 中已被废弃
- 在 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.