From d45bb9c4f26812cabc3faa4c4e7d82b9c08d352a Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 17 Jun 2021 14:57:30 +0800 Subject: [PATCH] * finish task #38726. --- module/personnel/view/invest.html.php | 6 +++++- module/product/view/all.html.php | 8 +++++++- module/program/view/product.html.php | 14 ++++++++++---- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/module/personnel/view/invest.html.php b/module/personnel/view/invest.html.php index 5eb291e263..49ca357588 100644 --- a/module/personnel/view/invest.html.php +++ b/module/personnel/view/invest.html.php @@ -28,7 +28,7 @@ personnel->workingHours;?> personnel->task;?> personnel->bug;?> - personnel->createStories;?> + URAndSR ? "colspan='2'" : "rowspan='2'";?> class="w-150px">personnel->createStories;?> config->maxVersion)): ?> personnel->issue;?> personnel->risk;?> @@ -43,8 +43,10 @@ personnel->created;?> personnel->resolved;?> personnel->wait;?> + config->URAndSR):?> personnel->UR;?> personnel->SR;?> + config->maxVersion)): ?> personnel->created;?> personnel->resolved;?> @@ -70,7 +72,9 @@ + config->URAndSR):?> + config->maxVersion)): ?> diff --git a/module/product/view/all.html.php b/module/product/view/all.html.php index 82868a70a3..ab5f6b4a0e 100644 --- a/module/product/view/all.html.php +++ b/module/product/view/all.html.php @@ -40,7 +40,9 @@ product->name);?> + config->URAndSR):?> story->requirement;?> + story->story;?> bug->common;?> product->release;?> @@ -48,10 +50,12 @@ actions;?> + config->URAndSR):?> story->activate;?> story->close;?> story->draft;?> story->completeRate;?> + story->activate;?> story->close;?> story->draft;?> @@ -69,7 +73,7 @@ ?> > - + @@ -134,10 +138,12 @@ createLink('product', 'browse', 'product=' . $product->id), $product->name);?> + config->URAndSR):?> requirements['active'];?> requirements['closed'];?> requirements['draft'];?> requirements['closed'] / $totalRequirements, 3) * 100;?>% + stories['active'];?> stories['closed'];?> stories['draft'];?> diff --git a/module/program/view/product.html.php b/module/program/view/product.html.php index 387dd97ea9..c1c4d899cd 100644 --- a/module/program/view/product.html.php +++ b/module/program/view/product.html.php @@ -48,18 +48,22 @@ idAB);?> product->name);?> + config->URAndSR):?> story->requirement;?> + story->story;?> bug->common;?> product->release;?> product->plan;?> - actions;?> + actions;?> + config->URAndSR):?> story->activate;?> story->close;?> story->draft;?> story->completeRate;?> + story->activate;?> story->close;?> story->draft;?> @@ -83,10 +87,12 @@ createLink('product', 'browse', 'product=' . $product->id), $product->name);?> + config->URAndSR):?> requirements['active'];?> requirements['closed'];?> requirements['draft'];?> requirements['closed'] / $totalRequirements, 3) * 100;?>% + stories['active'];?> stories['closed'];?> stories['draft'];?> @@ -126,11 +132,11 @@ $(function() { $('#productTableList').on('sort.sortable', function(e, data) - { - var list = ''; + { + var list = ''; for(i = 0; i < data.list.length; i++) list += $(data.list[i].item).attr('data-id') + ','; $.post(createLink('product', 'updateOrder'), {'products' : list, 'orderBy' : orderBy}); - }); + }); });