From 67cc48e3cb2a9dadf060c86a22cdcb81982abd8f Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Fri, 3 Sep 2021 09:40:11 +0800 Subject: [PATCH 01/15] * Finish task #42144. --- .../execution/view/ajaxgetdropmenu.html.php | 52 ++++++++++--------- module/product/view/ajaxgetdropmenu.html.php | 49 +++++++++-------- module/project/view/ajaxgetdropmenu.html.php | 48 +++++++++-------- 3 files changed, 80 insertions(+), 69 deletions(-) diff --git a/module/execution/view/ajaxgetdropmenu.html.php b/module/execution/view/ajaxgetdropmenu.html.php index d8f5c1957b..c9077726f2 100644 --- a/module/execution/view/ajaxgetdropmenu.html.php +++ b/module/execution/view/ajaxgetdropmenu.html.php @@ -11,17 +11,17 @@ #navTabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {border: none;} #tabContent {margin-top: 10px; z-index: 900;} -#tabContent ul {list-style: none; margin: 0} -#tabContent .tab-pane>ul {padding-left: 7px;} -#tabContent .tab-pane>ul>li>div {display: flex; flex-flow: row nowrap; justify-content: flex-start; align-items: center;} -#tabContent .tab-pane>ul>li label {background: rgba(255,255,255,0.5); line-height: unset; color: #838a9d; border: 1px solid #d8d8d8; border-radius: 2px; padding: 1px 4px;} -#tabContent li a i.icon {font-size: 15px !important;} -#tabContent li a i.icon:before {min-width: 16px !important;} -#tabContent li .label {position: unset; margin-bottom: 0;} -#tabContent li>a, #tabContent li>div>a {display: block; padding: 2px 10px 2px 5px; overflow: hidden; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px;} -#tabContent li>a.selected {color: #e9f2fb; background-color: #0c64eb;} -#tabContent .tree li>.list-toggle {line-height: 24px;} -#tabContent .tree li.has-list.open:before {content: unset;} +.executionTree ul {list-style: none; margin: 0} +.executionTree .executions>ul {padding-left: 7px;} +.executionTree .executions>ul>li>div {display: flex; flex-flow: row nowrap; justify-content: flex-start; align-items: center;} +.executionTree .executions>ul>li label {background: rgba(255,255,255,0.5); line-height: unset; color: #838a9d; border: 1px solid #d8d8d8; border-radius: 2px; padding: 1px 4px;} +.executionTree li a i.icon {font-size: 15px !important;} +.executionTree li a i.icon:before {min-width: 16px !important;} +.executionTree li .label {position: unset; margin-bottom: 0;} +.executionTree li>a, div.hide-in-search>a {display: block; padding: 2px 10px 2px 5px; overflow: hidden; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px;} +.executionTree li>a.selected {color: #e9f2fb; background-color: #0c64eb;} +.executionTree .tree li>.list-toggle {line-height: 24px;} +.executionTree .tree li.has-list.open:before {content: unset;} #swapper li>div.hide-in-search>a:focus, #swapper li>div.hide-in-search>a:hover {color: #838a9d; cursor: default;} a.executionName:focus, a.executionName:hover {background: #0c64eb; color: #fff !important;} @@ -29,12 +29,12 @@ a.executionName:focus, a.executionName:hover {background: #0c64eb; color: #fff ! #swapper li > a {padding-top: 4px; padding-bottom: 4px;} #swapper li {padding-top: 0; padding-bottom: 0;} #swapper .tree li>.list-toggle {top: -1px;} + +.col-right {padding-top: 30px;} $projectExecutions) { $executionCounts[$projectID]['myExecution'] = 0; $executionCounts[$projectID]['others'] = 0; + $executionCounts[$projectID]['closed'] = 0; foreach($projectExecutions as $execution) { if($execution->status != 'done' and $execution->status != 'closed' and ($execution->PM == $this->app->user->account or isset($execution->teams[$this->app->user->account]))) $executionCounts[$projectID]['myExecution'] ++; if($execution->status != 'done' and $execution->status != 'closed' and $execution->PM != $this->app->user->account and !isset($execution->teams[$this->app->user->account])) $executionCounts[$projectID]['others'] ++; - if($execution->status == 'done' or $execution->status == 'closed') $dones ++; + if($execution->status == 'done' or $execution->status == 'closed') $executionCounts[$projectID]['closed'] ++; $executionNames[] = $execution->name; } } $executionsPinYin = common::convert2Pinyin($executionNames); -$myExecutionsHtml = $config->systemMode == 'new' ? '