This commit is contained in:
tianshujie
2024-01-23 10:31:17 +08:00
parent 013bb67842
commit 98e33c5df3
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ global $lang, $config;
$fields = defineFieldList('task');
$fields->field('execution')
->hidden(data('execution.type') == 'kanban' && $config->vision != 'lite')
->hidden((data('execution.type') == 'kanban' && $config->vision != 'lite') || empty(data('execution.multiple')))
->control('picker')
->items(data('executions'))
->value(data('execution.id'));
+2 -2
View File
@@ -68,11 +68,11 @@ $fields->field('assignedToBox')
/* Set name field width. */
$nameWidth = 'w-1/2';
if(empty(data('features.story')) && data('execution.type') != 'kanban') $nameWidth .= ' full:w-full';
if(empty(data('features.story')) && data('execution.type') != 'kanban' && !empty(data('execution.multiple'))) $nameWidth .= ' full:w-full';
if(data('execution.type') == 'kanban') $nameWidth .= ' lite:w-full';
$fields->field('name')->className($nameWidth);
if(!empty(data('features.story')) && data('execution.type') == 'kanban')
if(!empty(data('features.story')) && (data('execution.type') == 'kanban' || empty(data('execution.multiple'))))
{
$fields->field('module')->wrapBefore();
}
+2 -2
View File
@@ -28,14 +28,14 @@ $fields->autoLoad('execution', 'execution,type,name,assignedToBox,region,lane,mo
$fields->orders('name,assignedToBox', 'module,testStoryBox', 'desc,module,storyBox');
$fields->fullModeOrders('type,module,storyBox,testStoryBox', 'desc,files,mailto,keywords');
if($execution->type == 'kanban')
if($execution->type == 'kanban' || empty(data('execution.multiple')))
{
$fields->orders('desc,module,storyBox', 'type,assignedToBox,region,lane');
$fields->fullModeOrders('name,assignedToBox', 'type,module,storyBox,testStoryBox', 'desc,files,mailto,keywords');
if(empty($features['story'])) $fields->fullModeOrders('type,module,storyBox', 'name,assignedToBox', 'desc,files,mailto,keywords');
}
if(empty($features['story']) && $execution->type != 'kanban')
if(empty($features['story']) && $execution->type != 'kanban' && !empty(data('execution.multiple')))
{
$fields->fullModeOrders('type,module,storyBox,testStoryBox,assignedToBox', 'desc,files,mailto,keywords');
}