diff --git a/module/execution/model.php b/module/execution/model.php index e9c08da6df..d511c05cee 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -101,7 +101,7 @@ class executionModel extends model */ public function setMenu(int $executionID) { - $execution = $this->fetchByID((int)$executionID); //新手教程模式下将 s% 转成0 + $execution = $this->getByID((int)$executionID); if(!$execution) return; if($execution->type == 'kanban') $this->executionTao->setKanbanMenu(); diff --git a/module/tutorial/config/kanbanProjectManage.php b/module/tutorial/config/kanbanProjectManage.php index f5d674baf9..8bb500031f 100644 --- a/module/tutorial/config/kanbanProjectManage.php +++ b/module/tutorial/config/kanbanProjectManage.php @@ -256,3 +256,49 @@ $kanbanProjectManage->tasks['manageKanban']['steps'][] = array( 'title' => $lang->tutorial->kanbanProjectManage->manageKanban->step19->name, 'desc' => $lang->tutorial->kanbanProjectManage->manageKanban->step19->desc ); + +$kanbanProjectManage->tasks['manageBuild'] = array(); +$kanbanProjectManage->tasks['manageBuild']['name'] = 'manageBuild'; +$kanbanProjectManage->tasks['manageBuild']['title'] = $lang->tutorial->kanbanProjectManage->manageBuild->title; +$kanbanProjectManage->tasks['manageBuild']['startUrl'] = array('execution', 'kanban', 'execution=3'); +$kanbanProjectManage->tasks['manageBuild']['steps'] = array(); + +$kanbanProjectManage->tasks['manageBuild']['steps'][] = array( + 'type' => 'clickNavbar', + 'target' => 'build', + 'page' => 'execution-kanban', + 'app' => 'execution', + 'url' => array('execution', 'kanban', 'executionID=3'), + 'title' => $lang->tutorial->kanbanProjectManage->manageBuild->step1->name, + 'desc' => $lang->tutorial->kanbanProjectManage->manageBuild->step1->desc +); + +$kanbanProjectManage->tasks['manageBuild']['steps'][] = array( + 'type' => 'click', + 'target' => '#actionBar a', + 'page' => 'execution-build', + 'title' => $lang->tutorial->kanbanProjectManage->manageBuild->step2->name, + 'desc' => $lang->tutorial->kanbanProjectManage->manageBuild->step2->desc +); + +$kanbanProjectManage->tasks['manageBuild']['steps'][] = array( + 'type' => 'form', + 'page' => 'build-create', + 'title' => $lang->tutorial->kanbanProjectManage->manageBuild->step3->name +); + +$kanbanProjectManage->tasks['manageBuild']['steps'][] = array( + 'type' => 'saveForm', + 'page' => 'build-create', + 'title' => $lang->tutorial->kanbanProjectManage->manageBuild->step4->name, + 'desc' => $lang->tutorial->kanbanProjectManage->manageBuild->step4->desc +); + +$kanbanProjectManage->tasks['manageBuild']['steps'][] = array( + 'type' => 'clickNavbar', + 'target' => 'CFD', + 'page' => 'execution-build', + 'url' => array('execution', 'build', 'executionID=3'), + 'title' => $lang->tutorial->kanbanProjectManage->manageBuild->step5->name, + 'desc' => $lang->tutorial->kanbanProjectManage->manageBuild->step5->desc +); diff --git a/module/tutorial/lang/zh-cn.php b/module/tutorial/lang/zh-cn.php index fec999f158..ee239583f5 100644 --- a/module/tutorial/lang/zh-cn.php +++ b/module/tutorial/lang/zh-cn.php @@ -761,3 +761,25 @@ $lang->tutorial->kanbanProjectManage->manageKanban->step18->name = '填写表单 $lang->tutorial->kanbanProjectManage->manageKanban->step19 = new stdClass(); $lang->tutorial->kanbanProjectManage->manageKanban->step19->name = '保存表单'; $lang->tutorial->kanbanProjectManage->manageKanban->step19->desc = '可以将Bug添加到Bug泳道中'; + +$lang->tutorial->kanbanProjectManage->manageBuild = new stdClass(); +$lang->tutorial->kanbanProjectManage->manageBuild->title = '版本管理'; + +$lang->tutorial->kanbanProjectManage->manageBuild->step1 = new stdClass(); +$lang->tutorial->kanbanProjectManage->manageBuild->step1->name = '点击版本'; +$lang->tutorial->kanbanProjectManage->manageBuild->step1->desc = '可以在这里进行版本管理'; + +$lang->tutorial->kanbanProjectManage->manageBuild->step2 = new stdClass(); +$lang->tutorial->kanbanProjectManage->manageBuild->step2->name = '点击创建版本'; +$lang->tutorial->kanbanProjectManage->manageBuild->step2->desc = '可以在这里创建新的版本'; + +$lang->tutorial->kanbanProjectManage->manageBuild->step3 = new stdClass(); +$lang->tutorial->kanbanProjectManage->manageBuild->step3->name = '填写表单'; + +$lang->tutorial->kanbanProjectManage->manageBuild->step4 = new stdClass(); +$lang->tutorial->kanbanProjectManage->manageBuild->step4->name = '保存表单'; +$lang->tutorial->kanbanProjectManage->manageBuild->step4->desc = '保存后在版本列表中显示'; + +$lang->tutorial->kanbanProjectManage->manageBuild->step5 = new stdClass(); +$lang->tutorial->kanbanProjectManage->manageBuild->step5->name = '点击累积流图'; +$lang->tutorial->kanbanProjectManage->manageBuild->step5->desc = '可以在这里查看累积流图进行看板跟踪'; diff --git a/module/tutorial/model.php b/module/tutorial/model.php index 688d067472..38a2d79760 100644 --- a/module/tutorial/model.php +++ b/module/tutorial/model.php @@ -430,6 +430,8 @@ class tutorialModel extends model $execution->hasProduct = '1'; $execution->multiple = ''; $execution->colWidth = '200'; + $execution->openedDate = helper::now(); + $execution->closedDate = helper::now(); list($guide, $guideTask, $guideStepIndex) = empty($_SERVER['HTTP_X_ZIN_TUTORIAL']) ? array() : explode('-', $_SERVER['HTTP_X_ZIN_TUTORIAL']); if($guide == 'scrumProjectManage')