* Add arrow style to linear task.

This commit is contained in:
sunguangming
2023-07-03 09:46:28 +08:00
parent 16edbf3ca8
commit 59e13c7dc7
4 changed files with 19 additions and 11 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ class execution extends control
}
$sort = common::appendOrder($groupBy);
$tasks = $this->loadModel('task')->getExecutionTasks($executionID, 0, 'all', 0, $sort);
$tasks = $this->loadModel('task')->getExecutionTasks($executionID, 0, 'all', array(), $sort);
$groupBy = str_replace('`', '', $groupBy);
$taskLang = $this->lang->task;
$groupByList = array();
+3 -5
View File
@@ -21,8 +21,6 @@
:root {--modal-base: 45rem;}
.line-arrow {display: inline-block; transform: scaleY(6); font-size: 20px; position: relative; right: 20px; color:#2e7fff;}
.team-index {overflow: hidden}
#teamTable tr:nth-last-child(-n+2) .team-index{overflow:visible; }
#teamTable tr:nth-child(2) .line-arrow{transform: scaleY(4); top: 20px}
#teamTable tr:nth-last-child(-n+2) .line-arrow{bottom:12px; transform: scaleY(2)}
#teamTable tr td:first-child {width: 40px; position: relative;}
#teamTable tr td:first-child .icon{position:absolute; top: 40px; right: 19px;display: block; font-size: 8px; color: #9ea3bd;}
#teamTable tr:nth-last-child(2) td:first-child .icon {display: none;}
+13
View File
@@ -451,6 +451,19 @@ $('#teamTable').on('click.team', '.btn-delete', function()
setLineIndex();
});
/* 切换串行/并行 展示/隐藏工序图标. */
$('#teamTable').on('change.team', '#mode', function()
{
if($(this).val() == 'multi')
{
$('#teamTable td .icon-angle-down').addClass('hidden');
}
else
{
$('#teamTable td .icon-angle-down').removeClass('hidden');
}
});
/**
* Set line number.
*
+2 -5
View File
@@ -133,15 +133,11 @@ for($i = 1; $i <= 3; $i ++)
(
setClass('team-index'),
span
(
setClass("line-arrow"),
'↓'
) ,
span
(
setClass("team-number"),
$i
),
icon('angle-down')
),
h::td
(
@@ -457,6 +453,7 @@ formPanel
set::name("mode"),
set::value("linear"),
set::items($lang->task->modeList),
set::required(true),
),
)
),