* Refactor block ui of plan list.

This commit is contained in:
liumengyi
2023-06-29 14:11:21 +08:00
parent 6569f3bb1e
commit c7cb9f141d
3 changed files with 11 additions and 4 deletions
+1
View File
@@ -303,3 +303,4 @@ $config->block->modules['doc']->moreLinkList->projectdoc = 'doc|projectspac
$config->block->size = array();
$config->block->size['product']['list'] = array('2' => '6', '1' => '6');
$config->block->size['product']['story'] = array('2' => '6', '1' => '6');
$config->block->size['product']['plan'] = array('2' => '6', '1' => '6');
+1 -1
View File
@@ -8,7 +8,7 @@ $config->block->plan->dtable->fieldList = array();
$config->block->plan->dtable->fieldList['id'] = array('name' => 'id', 'title' => $lang->idAB, 'type' => 'id', 'sortType' => 1);
$config->block->plan->dtable->fieldList['title'] = array('name' => 'title', 'title' => $lang->productplan->title, 'type' => 'title', 'sortType' => 1, 'flex' => 1);
$config->block->plan->dtable->fieldList['product'] = array('name' => 'product', 'title' => $lang->productplan->product, 'type' => 'text', 'sortType' => 1, 'minWidth' => 100);
$config->block->plan->dtable->fieldList['hour'] = array('name' => 'hour', 'title' => $lang->productplan->hour, 'type' => 'count', 'sortType' => 1);
$config->block->plan->dtable->fieldList['hour'] = array('name' => 'hour', 'title' => $lang->productplan->hour, 'type' => 'text', 'sortType' => 1, 'align' => 'right');
$config->block->plan->dtable->fieldList['bugs'] = array('name' => 'bugs', 'title' => $lang->productplan->bugs, 'type' => 'number', 'sortType' => 1);
$config->block->plan->dtable->fieldList['begin'] = array('name' => 'begin', 'title' => $lang->productplan->begin, 'type' => 'date', 'sortType' => 1);
$config->block->plan->dtable->fieldList['end'] = array('name' => 'end', 'title' => $lang->productplan->end, 'type' => 'date', 'sortType' => 1);
+9 -3
View File
@@ -18,14 +18,20 @@ if(!$longBlock)
unset($config->block->plan->dtable->fieldList['hour']);
unset($config->block->plan->dtable->fieldList['bugs']);
}
foreach($plans as $plan) $plan->product = zget($products, $plan->product);
else
{
$config->block->plan->dtable->fieldList['product']['map'] = $products;
foreach($plans as $plan) $plan->hour .= $config->hourUnit;
}
panel
(
set('class', 'plan-block'),
setClass('p-0 plan-block'),
set::title($block->title),
set::bodyClass('p-0 no-shadow border-t'),
dtable
(
set::fixedLeftWidth($longBlock ? '0.33' : '0.5'),
set::cols(array_values($config->block->plan->dtable->fieldList)),
set::data(array_values($plans))
)