From 00e1922daa260de246c36df463e4ed39ced97e71 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 1 Apr 2021 16:04:40 +0800 Subject: [PATCH 01/10] * Fix error. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index a1fcfd5cdc..c266ce55ac 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -378,7 +378,7 @@ class executionModel extends model $member->hours = $this->config->execution->defaultWorkhours; $this->dao->insert(TABLE_TEAM)->data($member)->exec(); - $this->addExecutionMembers($sprint->project, array($member)); + $this->addProjectMembers($sprint->project, array($member)); } /* Create doc lib. */ From 060ec76000de9aa44ea7316c5d854f79c2831556 Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Thu, 1 Apr 2021 11:07:22 +0300 Subject: [PATCH 02/10] * Fix bug. --- module/automation/config.php | 2 +- module/automation/css/browse.css | 53 ++++++++++++++++++++++++++ module/automation/lang/zh-cn.php | 2 +- module/automation/view/browse.html.php | 46 ---------------------- 4 files changed, 55 insertions(+), 48 deletions(-) create mode 100644 module/automation/css/browse.css diff --git a/module/automation/config.php b/module/automation/config.php index 147463edb4..f74910140d 100644 --- a/module/automation/config.php +++ b/module/automation/config.php @@ -1,5 +1,5 @@ automation->ztfSite = 'http://www.ztesting.net'; +$config->automation->ztfSite = 'https://ztf.im'; $config->automation->ztfDownload = 'https://ztf.im/ztf.html'; $config->automation->ztfManual = 'https://ztf.im/book/ztf/ztf-about-26.html'; $config->automation->zendataSite = 'https://www.zendata.cn'; diff --git a/module/automation/css/browse.css b/module/automation/css/browse.css new file mode 100644 index 0000000000..e49bb0b476 --- /dev/null +++ b/module/automation/css/browse.css @@ -0,0 +1,53 @@ +.ztf-block {width: 100%; margin-top: 22px; background: linear-gradient(to bottom, #deeaf8 , #f4f7fe); display: inline-flex; box-shadow: 2px 2px 5px #e2dede;} +.ztf-logo {width: 40%; height: 190px; display: inline-block; line-height: 190px; text-align: right; padding-right: 65px;} +.ztf-download {width: 45%; height: 190px; display: inline-block;} +.ztf-download-trait {display: inline-block; width: 100%; margin: 45px 0px 6px 0px; font-weight:bold; font-size: 15px; color: #0c4678;} +.ztf-download-trait div {width: 35%; float: left; padding: 8px 0px;} +.ztf-download-button {width: 100%;} +.ztf-download-button a {margin-right: 15px; font-weight:bold; font-size: 14px;} +.dot-symbol{font-size: 12px; margin-right: 5px;} + +.block-content {width: 100%;} +.block-details {width: 49%; display: inline-block; padding: 30px 140px; margin-top: 20px; box-shadow: 2px 2px 5px #e2dede;} +.block-details-right {float: right;} +.block-details p {font-size: 18px; font-weight:bold; margin: 0 0 10px 20px;} +.block-details li {width: 40%; float: left; padding: 6px 0px; font-size: 14px; font-weight:bold; color: #666666; text-align: left; list-style:none;} +.block-details-line li {width: 100%;} + +.zendata-block {width: 100%; margin-top: 40px; background: linear-gradient(to bottom, #deeaf8 , #f4f7fe); display: inline-flex; box-shadow: 2px 2px 5px #e2dede;} +.zendata-logo {width: 40%; height: 170px; display: inline-block; line-height: 170px; text-align: right; padding-right: 90px;} +.zendata-download {width: 45%; height: 170px; display: inline-block;} +.zendata-download-trait {display: inline-block; width: 100%; margin: 60px 0px 6px 0px; font-weight:bold; font-size: 15px; color: #0c4678;} +.zendata-download-trait div {margin-right: 35px; float: left; padding: 8px 0px;} +.zendata-download-button {width: 100%;} +.zendata-download-button a {margin-right: 15px; font-weight:bold; font-size: 14px;} + +.zentata-content {display: table; width: 100%; table-layout: fixed; margin-top: 20px;} +.block-zendata-block {display: table-cell;} +.block-zendata {width: 96%; display: inline-block; padding: 30px 40px; margin-top: 20px; box-shadow: 2px 2px 5px #e2dede;} +.block-zendata p {font-size: 18px; font-weight:bold; margin: 0 0 10px 20px;} +.block-zendata li {width: 100%; float: left; padding: 6px 0px; font-size: 14px; font-weight:bold; color: #666666; text-align: left; list-style:none;} +.qr-code {margin-top: 20px; padding: 20px 0px 20px 58px; box-shadow: 2px 2px 5px #e2dede;} +.qr-code-img {width: 90px; height: 90px; display: inline-block; float: left;} +.qr-code-details {display: inline-block; margin: 10px 0px 0px 10px;} +.qr-code-details div{margin: 5px 0px;} +.qr-code-group {color: #898989;} +@media screen and (max-height: 768px) +{ + .qr-code {padding: 20px 0px 20px 43px;} + .block-details li {width: 50%;} + .block-details-line li {width: 100%;} + .ztf-download-trait div {width: 47%;} + .block-details {padding: 30px 60px;} + .block-zendata {padding: 30px 25px;} +} + +@media screen and (max-height: 720px) +{ + .zendata-download {width: 50%;} + .ztf-download-trait {margin: 35px 0px 6px 0px;} + .block-zendata {padding: 30px 14px;} + .ztf-download {width: 48%;} + .qr-code {padding: 20px 0px 20px 32px;} +} +.btn-automation {background: linear-gradient(to bottom, #0bb6fb, #0d67e1); border: 0px; padding: 8px 12px;} diff --git a/module/automation/lang/zh-cn.php b/module/automation/lang/zh-cn.php index 91eddbefd9..f128edee00 100644 --- a/module/automation/lang/zh-cn.php +++ b/module/automation/lang/zh-cn.php @@ -12,7 +12,7 @@ $lang->automation->common = '自动化测试'; $lang->automation->browse = '首页'; -$lang->automation->title = '自动化测试解决方案——两款工具'; +$lang->automation->title = '自动化测试解决方案'; $lang->automation->ztfSite = '禅道ZTF官网'; $lang->automation->ztfDownload = 'ZTF框架下载'; diff --git a/module/automation/view/browse.html.php b/module/automation/view/browse.html.php index 6d635716bb..b2ee1c9786 100644 --- a/module/automation/view/browse.html.php +++ b/module/automation/view/browse.html.php @@ -11,52 +11,6 @@ */ ?> -
From 7d73cbb545dc681231251e9144d5ac38f8367ffe Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Thu, 1 Apr 2021 16:21:12 +0800 Subject: [PATCH 03/10] * Fix bug #11702. --- module/testtask/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/testtask/control.php b/module/testtask/control.php index d898d073bf..aacf722e68 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -665,7 +665,8 @@ class testtask extends control $this->executeHooks($taskID); - $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->session->testtaskList)); + $link = isonlybody() ? 'parent' : $this->session->testtaskList; + $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $link)); } /* Set menu. */ From 48706314d7c0366aea19f6ed8cedc2fadb6d4bd9 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 1 Apr 2021 16:25:14 +0800 Subject: [PATCH 04/10] * Fix bug. --- module/upgrade/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/upgrade/control.php b/module/upgrade/control.php index 36f44484c7..5eeab871e8 100644 --- a/module/upgrade/control.php +++ b/module/upgrade/control.php @@ -455,7 +455,7 @@ class upgrade extends control if($project) $sprint->projects[$project->id] = $project->name; } - if(!isset($sprint->projects)) $sprint->projects = $this->dao->select('id,name')->from(TABLE_PROJECT)->where('type')->eq('program')->fetchPairs(); + if(!isset($sprint->projects)) $sprint->projects = $this->dao->select('id,name')->from(TABLE_PROJECT)->where('type')->eq('project')->fetchPairs(); } $this->view->noMergedSprints = $noMergedSprints; From de99085844663dd9f4cf7e0ba4872ac974fc5402 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Thu, 1 Apr 2021 16:43:01 +0800 Subject: [PATCH 05/10] * Fix bug #11699. --- module/story/js/common.js | 2 +- module/story/view/batchedit.html.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/js/common.js b/module/story/js/common.js index 6590164006..ae8b0f947b 100644 --- a/module/story/js/common.js +++ b/module/story/js/common.js @@ -4,7 +4,7 @@ $(function() if(typeof(storyType) == 'undefined') storyType = ''; if(typeof(rawModule) == 'undefined') rawModule = 'product'; if(typeof(execution) != 'undefined') rawModule = 'projectstory'; - if(['project', 'projectstory'].indexOf(rawModule) === -1) + if(['project', 'projectstory'].indexOf(rawModule) === -1 && app != 'qa') { $('#navbar .nav li').removeClass('active'); $("#navbar .nav li[data-id=" + storyType + ']').addClass('active'); diff --git a/module/story/view/batchedit.html.php b/module/story/view/batchedit.html.php index 9d003aad3a..1cbef6ed59 100644 --- a/module/story/view/batchedit.html.php +++ b/module/story/view/batchedit.html.php @@ -13,6 +13,7 @@ lang->story->dittoNotice);?> +app->openApp);?>
From 82cc3f6ce4e4841b2a2dcbfeccc14b9b6c1b73e8 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Thu, 1 Apr 2021 17:12:59 +0800 Subject: [PATCH 06/10] * Finish task #37015. --- .../block/view/projectstatisticblock.html.php | 57 +++++++++++-------- module/project/model.php | 5 +- 2 files changed, 37 insertions(+), 25 deletions(-) diff --git a/module/block/view/projectstatisticblock.html.php b/module/block/view/projectstatisticblock.html.php index 31ff3874e9..481ad6f6bb 100644 --- a/module/block/view/projectstatisticblock.html.php +++ b/module/block/view/projectstatisticblock.html.php @@ -22,7 +22,7 @@ html[lang="en"] .product-info .type-info {color: #A6AAB8; text-align: center; po .block-statistic .tile {margin-bottom: 30px;} .block-statistic .tile-title {font-size: 18px; color: #A6AAB8;} .block-statistic .tile-amount {font-size: 48px; margin-bottom: 10px;} -.block-statistic .col-nav {border-right: 1px solid #EBF2FB; width: 260px; padding: 0;} +.block-statistic .col-nav {border-right: 1px solid #EBF2FB; width: 210px; padding: 0;} .block-statistic .nav-secondary > li {position: relative;} .block-statistic .nav-secondary > li > a {font-size: 14px; color: #838A9D; position: relative; box-shadow: none; padding-left: 20px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; transition: all .2s;} .block-statistic .nav-secondary > li > a:first-child {padding-right: 36px;} @@ -64,20 +64,21 @@ html[lang="en"] .product-info .type-info {color: #A6AAB8; text-align: center; po .status-count tr:first-child td:last-child {color: #000; font-weight: bold;} .block-statistic .project-info {margin-left: 3px;} +.block-statistic .project-budget {white-space: nowrap;} .block-statistic .progress-group {margin-top: 10px;} .block-statistic .progress-group .col {padding-left: 0;} -.block-statistic .progress-percent {top: 4px;} +.block-statistic .progress-percent {margin-top: 4px;} .block-statistic .weekly-title {font-weight: bold; color: #3C4253;} .block-statistic .weekly-small {font-size:12px; color: #838A9D;} .block-statistic .weekly-progress {font-weight: bold; font-size:24px;} .block-statistic .weekly-name {font-size: 14px; color: #838A9D;} .block-statistic .weekly-value {font-size: 14px;} .block-statistic .col-12 .stage {margin-left: 10px;} -.block-statistic .col-12 .waterfall-title {padding-top: 5px;} +.block-statistic .col-12 .waterfall-title {padding-top: 3px;} .block-statistic .col-12 .waterfall-value {padding-top: 10px; font-size: 18px; font-weight: 600;} .block-statistic .col-12 .waterfall-title .col {padding-right: 0px; padding-left: 0px;} -.twenty-percent {width: 20%;} +.forty-percent {width: 40%;}