* [task#142101,done,1h,0h] Finish progranplan gantt critical path.

This commit is contained in:
wangyuting
2025-04-21 16:45:02 +08:00
committed by 刘刚
parent d3ef031705
commit e3e68e7ead
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -225,11 +225,11 @@ function getByIdForGantt(list, id)
* @access public
* @return void
*/
function updateCriticalPath()
window.updateCriticalPath = function()
{
let showCriticalPath = !gantt.config.highlight_critical_path;
$('#criticalPath').html(showCriticalPath ? ganttLang.hideCriticalPath : ganttLang.showCriticalP);
$('#criticalPath').html(showCriticalPath ? ganttLang.hideCriticalPath : ganttLang.showCriticalPath);
gantt.config.highlight_critical_path = showCriticalPath;
gantt.render();
+1
View File
@@ -31,6 +31,7 @@ if($app->rawModule == 'programplan')
}
featureBar
(
btn(setID('criticalPath'), setClass('ghost mr-2'), $lang->execution->gantt->showCriticalPath, set::url('javascript:updateCriticalPath()')),
btn(setClass('ghost mr-2', ($browseType != 'bysearch' ? 'active' : '')), $lang->programplan->gantt, set::url($this->createLink('programplan', 'browse', "projectID=$projectID&productID=$productID&type=gantt"))),
$productDropdown,
$hasSearch ? li(searchToggle(set::module('projectTask'), set::open($browseType == 'bysearch'))) : null