* Optimize code logic.

This commit is contained in:
tianshujie
2022-03-30 15:22:27 +08:00
parent b452680fb3
commit 4f4dfd990e
3 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -3428,7 +3428,11 @@ class execution extends control
foreach($executionStats as $stage)
{
$stageList[] = $stage;
foreach($stage->children as $child) $stageList[] = $child;
foreach($stage->children as $child)
{
$child->name = $stage->name . '/' . $child->name;
$stageList[] = $child;
}
}
$executionStats = $stageList;
+1 -1
View File
@@ -1,6 +1,6 @@
$(function()
{
if(manageLine && (programID || systemMode == 'classic')) $('#line_chosen').addClass('hidden');
if(manageLinePriv && (programID || systemMode == 'classic')) $('#line_chosen').addClass('hidden');
$('#lineName').css('border-left-color', '');
})
/**
+1 -1
View File
@@ -15,7 +15,7 @@
<?php js::set('noProject', false);?>
<?php js::set('programID', $programID);?>
<?php js::set('systemMode', $this->config->systemMode);?>
<?php js::set('manageLine', common::hasPriv('product', 'manageLine'));?>
<?php js::set('manageLinePriv', common::hasPriv('product', 'manageLine'));?>
<div id="mainContent" class="main-content">
<div class="center-block">
<div class="main-header">